Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009641/0.0009642, allocations: 88.97 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.001077/0.001077, allocations: 186.9 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.488/1.488, allocations: 205.4 MB / 223.4 MB, free: 5.543 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.0005766/0.0005768, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3154, allocations: 47.58 MB / 327.7 MB, free: 1.25 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01263/0.3281, allocations: 11.75 MB / 339.5 MB, free: 7.617 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02444/0.3526, allocations: 17.07 MB / 356.5 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003906/0.3565, allocations: 31.81 kB / 356.6 MB, free: 6.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004312/0.3609, allocations: 0.9796 MB / 357.5 MB, free: 5.484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01177/0.3727, allocations: 2.115 MB / 359.6 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006884/0.3796, allocations: 1.149 MB / 360.8 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01492/0.3946, allocations: 6.189 MB / 367 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.3959, allocations: 441 kB / 367.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002127/0.398, allocations: 0.8511 MB / 368.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.3997, allocations: 1.021 MB / 369.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001982/0.4, allocations: 44 kB / 369.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005326/0.4053, allocations: 1.214 MB / 370.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005762/0.4059, allocations: 285.8 kB / 370.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001818/0.4077, allocations: 0.6521 MB / 371.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004636/0.4124, allocations: 2.786 MB / 374.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.4124, allocations: 4 kB / 374.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4124, allocations: 0 / 374.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.787e-05/0.4125, allocations: 4 kB / 374.3 MB, free: 4.668 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005645/0.4181, allocations: 3.381 MB / 377.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.4182, allocations: 8.031 kB / 377.7 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004196/0.4186, allocations: 418.9 kB / 378.1 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003777/0.4224, allocations: 2.316 MB / 380.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.641e-05/0.4224, allocations: 37 kB / 380.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.4226, allocations: 52 kB / 380.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.424, allocations: 0.7499 MB / 381.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.424, allocations: 0 / 381.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.446e-05/0.4241, allocations: 20 kB / 381.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.4242, allocations: 19.98 kB / 381.3 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.4258, allocations: 0.8593 MB / 382.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005166/0.4309, allocations: 3.112 MB / 385.2 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.4322, allocations: 0.6297 MB / 385.9 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03136/0.4636, allocations: 30.35 MB / 416.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007512/0.4644, allocations: 385.7 kB / 416.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.4644, allocations: 0 / 416.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002437/0.4669, allocations: 1.493 MB / 418.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.4669, allocations: 63.41 kB / 418.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003673/0.4706, allocations: 3.064 MB / 421.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.373e-05/0.4707, allocations: 37.69 kB / 421.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001305/0.472, allocations: 1.577 MB / 422.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.4722, allocations: 177.6 kB / 423 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.4722, allocations: 16 kB / 423 MB, free: 15.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.4724, allocations: 345.9 kB / 423.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005731/0.473, allocations: 261.9 kB / 423.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007888/0.4738, allocations: 0.6098 MB / 424.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006922/0.4745, allocations: 340.5 kB / 424.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4745, allocations: 4 kB / 424.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002126/0.4766, allocations: 1.284 MB / 425.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.4766, allocations: 8.188 kB / 425.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/0.4768, allocations: 91.98 kB / 425.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.518e-05/0.4768, allocations: 19.95 kB / 426 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007353/0.4776, allocations: 211.6 kB / 426.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.717e-05/0.4776, allocations: 23.92 kB / 426.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009664/0.4786, allocations: 119 kB / 426.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.4787, allocations: 71.98 kB / 426.4 MB, free: 11.9 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007679/0.4795, allocations: 449.5 kB / 426.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000361/0.4798, allocations: 403.1 kB / 427.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.483, allocations: 1.27 MB / 428.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.4831, allocations: 8 kB / 428.5 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.4831, allocations: 3.953 kB / 428.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4831, allocations: 3.938 kB / 428.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.4867, allocations: 2.194 MB / 430.7 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.475e-05/0.4868, allocations: 67.98 kB / 430.7 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005232/0.4874, allocations: 107.9 kB / 430.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/0.4874, allocations: 3.953 kB / 430.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.4874, allocations: 28 kB / 430.9 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.4875, allocations: 11.97 kB / 430.9 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.4875, allocations: 3.938 kB / 430.9 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.4898, allocations: 1.447 MB / 432.3 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008709/0.4907, allocations: 488 kB / 432.8 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/0.491, allocations: 8 kB / 432.8 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/0.4917, allocations: 44.02 kB / 432.9 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.4918, allocations: 59.94 kB / 432.9 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.054e-05/0.4919, allocations: 39.98 kB / 433 MB, free: 5.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002693/0.4946, allocations: 1.98 MB / 435 MB, free: 3.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4946, allocations: 0 / 435 MB, free: 3.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001577/0.4962, allocations: 0.5973 MB / 435.6 MB, free: 2.566 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001152/0.4974, allocations: 0.7455 MB / 436.3 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.499, allocations: 0.8452 MB / 437.1 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.499, allocations: 0 / 437.1 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007495/0.4998, allocations: 467.2 kB / 437.6 MB, free: 476 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.5013, allocations: 0.5148 MB / 438.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006914/0.5082, allocations: 5.127 MB / 443.2 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.5095, allocations: 1.784 MB / 445 MB, free: 8.969 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.5108, allocations: 361.4 kB / 445.4 MB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/0.511, allocations: 151.4 kB / 445.5 MB, free: 8.465 MB / 382.1 MB Notification: Performance of SimCode: time 1.472e-06/0.511, allocations: 0 / 445.5 MB, free: 8.465 MB / 382.1 MB Notification: Performance of Templates: time 0.2396/0.7506, allocations: 29.25 MB / 474.8 MB, free: 102.2 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) Environment - environmentSimulation: