Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 92.41 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 184.4 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.4 MB / 223.4 MB, free: 5.531 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000503/0.000503, allocations: 16 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3004, allocations: 47.57 MB / 327.7 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005727/0.3062, allocations: 4.141 MB / 331.8 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.3167, allocations: 7.437 MB / 339.3 MB, free: 7.926 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008654/0.3176, allocations: 19.88 kB / 339.3 MB, free: 7.906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.3189, allocations: 310.5 kB / 339.6 MB, free: 7.602 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0034/0.3223, allocations: 0.7362 MB / 340.3 MB, free: 6.863 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001944/0.3243, allocations: 458.8 kB / 340.8 MB, free: 6.414 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003273/0.3276, allocations: 1.591 MB / 342.4 MB, free: 4.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.3279, allocations: 135.1 kB / 342.5 MB, free: 4.676 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.3282, allocations: 246.8 kB / 342.7 MB, free: 4.434 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.3286, allocations: 286.3 kB / 343 MB, free: 4.152 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.449e-05/0.3287, allocations: 23.92 kB / 343 MB, free: 4.129 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001595/0.3303, allocations: 0.5426 MB / 343.6 MB, free: 3.586 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.113e-05/0.3304, allocations: 83.39 kB / 343.7 MB, free: 3.504 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.3306, allocations: 193.2 kB / 343.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.3317, allocations: 0.8452 MB / 344.7 MB, free: 2.461 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3317, allocations: 4 kB / 344.7 MB, free: 2.457 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.3317, allocations: 0 / 344.7 MB, free: 2.457 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.3317, allocations: 3.938 kB / 344.7 MB, free: 2.453 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001978/0.3337, allocations: 1.143 MB / 345.9 MB, free: 1.258 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.3338, allocations: 8.031 kB / 345.9 MB, free: 1.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.3339, allocations: 114.7 kB / 346 MB, free: 1.137 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.3352, allocations: 0.8129 MB / 346.8 MB, free: 276 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.3352, allocations: 20.56 kB / 346.8 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.751e-05/0.3353, allocations: 24 kB / 346.8 MB, free: 232 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/0.3358, allocations: 311.6 kB / 347.1 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3359, allocations: 3.938 kB / 347.1 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.3359, allocations: 12 kB / 347.2 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.3359, allocations: 11.98 kB / 347.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004025/0.3363, allocations: 238.1 kB / 347.4 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.3381, allocations: 1.198 MB / 348.6 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.3385, allocations: 198.6 kB / 348.8 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009023/0.3476, allocations: 8.609 MB / 357.4 MB, free: 4.168 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.3476, allocations: 42.52 kB / 357.4 MB, free: 4.117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.705e-06/0.3477, allocations: 0 / 357.4 MB, free: 4.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001589/0.3492, allocations: 0.6427 MB / 358.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.3493, allocations: 81.11 kB / 358.2 MB, free: 3.348 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009325/0.3503, allocations: 0.7908 MB / 359 MB, free: 2.539 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.3503, allocations: 33.7 kB / 359 MB, free: 2.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003545/0.3507, allocations: 444.7 kB / 359.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.22e-05/0.3507, allocations: 82.69 kB / 359.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.3508, allocations: 4 kB / 359.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3509, allocations: 317.9 kB / 359.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.351, allocations: 68.2 kB / 359.9 MB, free: 1.594 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.3512, allocations: 146.6 kB / 360 MB, free: 1.418 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.3514, allocations: 92.42 kB / 360.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3514, allocations: 4 kB / 360.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005764/0.352, allocations: 405.1 kB / 360.5 MB, free: 0.918 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.352, allocations: 4 kB / 360.5 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.972e-05/0.3521, allocations: 20 kB / 360.5 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003595/0.3524, allocations: 136.7 kB / 360.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.3526, allocations: 40.12 kB / 360.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006091/0.3532, allocations: 0.7113 MB / 361.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.3535, allocations: 27.73 kB / 361.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.3536, allocations: 15.94 kB / 361.5 MB, free: 15.94 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002484/0.3538, allocations: 197.8 kB / 361.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3539, allocations: 106.7 kB / 361.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008644/0.3548, allocations: 419.4 kB / 362.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3548, allocations: 4 kB / 362.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3548, allocations: 0 / 362.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3548, allocations: 0 / 362.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005939/0.3554, allocations: 0.5111 MB / 362.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.062e-05/0.3555, allocations: 12 kB / 362.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.3556, allocations: 19.98 kB / 362.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002826/0.3559, allocations: 140.7 kB / 362.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.3559, allocations: 4 kB / 362.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005726/0.3565, allocations: 0.705 MB / 363.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3565, allocations: 0 / 363.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.3571, allocations: 452.2 kB / 364 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002134/0.3573, allocations: 167.9 kB / 364.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.5e-05/0.3574, allocations: 8.016 kB / 364.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.3576, allocations: 15.98 kB / 364.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.504e-05/0.3577, allocations: 11.98 kB / 364.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.3577, allocations: 12 kB / 364.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006209/0.3583, allocations: 0.5266 MB / 364.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3583, allocations: 3.938 kB / 364.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006182/0.3589, allocations: 195.8 kB / 364.9 MB, free: 12.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004642/0.3594, allocations: 287.9 kB / 365.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000604/0.36, allocations: 279.2 kB / 365.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.86e-06/0.3601, allocations: 0 / 365.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002797/0.3603, allocations: 188.4 kB / 365.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.3608, allocations: 136.3 kB / 365.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.3627, allocations: 1.391 MB / 367.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.3632, allocations: 0.9646 MB / 368.2 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003905/0.3636, allocations: 106.7 kB / 368.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.866e-05/0.3636, allocations: 47.44 kB / 368.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3637, allocations: 0 / 368.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of Templates: time 0.017/0.3807, allocations: 8.115 MB / 376.4 MB, free: 0.7227 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) Environment - environmentSimulation: