Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001487/0.001487, allocations: 117.6 kB / 17.83 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001732, allocations: 203.9 kB / 18.79 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.461/1.461, allocations: 230.4 MB / 250 MB, free: 9.039 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 63.84 kB / 367.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2654, allocations: 53.32 MB / 420.7 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01622/0.2816, allocations: 15.35 MB / 436 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02624/0.3079, allocations: 20.84 MB / 456.8 MB, free: 4.168 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002207/0.3101, allocations: 91.25 kB / 456.9 MB, free: 4.078 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003223/0.3133, allocations: 1.264 MB / 458.2 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009264/0.3226, allocations: 2.41 MB / 460.6 MB, free: 388 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005139/0.3277, allocations: 1.452 MB / 462.1 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01382/0.3415, allocations: 6.71 MB / 468.8 MB, free: 8.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007701/0.3423, allocations: 273.7 kB / 469 MB, free: 7.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001943/0.3442, allocations: 1.135 MB / 470.2 MB, free: 6.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/0.3457, allocations: 1.153 MB / 471.3 MB, free: 5.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001832/0.3459, allocations: 76 kB / 471.4 MB, free: 5.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003825/0.3497, allocations: 1.479 MB / 472.9 MB, free: 4.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000379/0.3501, allocations: 337.5 kB / 473.2 MB, free: 3.707 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00168/0.3518, allocations: 1.428 MB / 474.6 MB, free: 2.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005617/0.3574, allocations: 4.005 MB / 478.6 MB, free: 14.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3574, allocations: 4 kB / 478.6 MB, free: 14.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3574, allocations: 0 / 478.6 MB, free: 14.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.488e-05/0.3575, allocations: 4 kB / 478.6 MB, free: 14.24 MB / 398.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.005985/0.3635, allocations: 3.954 MB / 482.6 MB, free: 10.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3635, allocations: 12.03 kB / 482.6 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005059/0.364, allocations: 429.3 kB / 483 MB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003641/0.3676, allocations: 2.506 MB / 485.5 MB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.689e-05/0.3677, allocations: 33 kB / 485.6 MB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.3678, allocations: 63.95 kB / 485.6 MB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.3693, allocations: 0.7303 MB / 486.4 MB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3693, allocations: 0 / 486.4 MB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.3694, allocations: 20 kB / 486.4 MB, free: 6.332 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/0.3694, allocations: 19.98 kB / 486.4 MB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.3711, allocations: 0.8202 MB / 487.2 MB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005703/0.3768, allocations: 3.11 MB / 490.3 MB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.378, allocations: 0.5165 MB / 490.8 MB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.3791, allocations: 0.5657 MB / 491.4 MB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03506/0.4142, allocations: 30.76 MB / 0.5099 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008351/0.415, allocations: 361.7 kB / 0.5103 GB, free: 13.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 3.106e-06/0.415, allocations: 0 / 0.5103 GB, free: 13.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.002657/0.4177, allocations: 1.13 MB / 0.5114 GB, free: 12.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.4178, allocations: 59.34 kB / 0.5114 GB, free: 12.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004065/0.4218, allocations: 3.09 MB / 0.5145 GB, free: 9.523 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.419e-05/0.4219, allocations: 37.7 kB / 0.5145 GB, free: 9.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/0.4235, allocations: 1.582 MB / 0.516 GB, free: 7.891 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.4237, allocations: 178.5 kB / 0.5162 GB, free: 7.715 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.424, allocations: 230.4 kB / 0.5164 GB, free: 7.484 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4242, allocations: 337.9 kB / 0.5168 GB, free: 7.148 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006047/0.4248, allocations: 241.9 kB / 0.517 GB, free: 6.914 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000914/0.4257, allocations: 0.602 MB / 0.5176 GB, free: 6.137 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001587/0.4273, allocations: 0.8974 MB / 0.5185 GB, free: 5.062 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/0.4273, allocations: 7.938 kB / 0.5185 GB, free: 5.055 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002634/0.4299, allocations: 1.263 MB / 0.5197 GB, free: 3.785 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.43, allocations: 12.03 kB / 0.5197 GB, free: 3.773 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001339/0.4301, allocations: 80 kB / 0.5198 GB, free: 3.695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.565e-05/0.4301, allocations: 20 kB / 0.5198 GB, free: 3.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007409/0.4309, allocations: 203.6 kB / 0.52 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.74e-05/0.4309, allocations: 23.92 kB / 0.52 GB, free: 3.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.4319, allocations: 115.3 kB / 0.5201 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.432, allocations: 64 kB / 0.5202 GB, free: 3.277 MB / 446.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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008355/0.4329, allocations: 457.1 kB / 0.5206 GB, free: 2.824 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004497/0.4333, allocations: 421.3 kB / 0.521 GB, free: 2.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.436, allocations: 1.207 MB / 0.5222 GB, free: 1.188 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.436, allocations: 4 kB / 0.5222 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.436, allocations: 0 / 0.5222 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.436, allocations: 11.92 kB / 0.5222 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003618/0.4396, allocations: 2.143 MB / 0.5243 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001138/0.4398, allocations: 68 kB / 0.5244 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004891/0.4403, allocations: 95.91 kB / 0.5245 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.4403, allocations: 4 kB / 0.5245 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-05/0.4403, allocations: 35.98 kB / 0.5245 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.4403, allocations: 4 kB / 0.5245 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4403, allocations: 0 / 0.5245 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002393/0.4427, allocations: 1.343 MB / 0.5258 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007934/0.4435, allocations: 0.5061 MB / 0.5263 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002887/0.4438, allocations: 16.06 kB / 0.5263 GB, free: 12.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006676/0.4445, allocations: 31.97 kB / 0.5264 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.4447, allocations: 67.81 kB / 0.5264 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.826e-05/0.4447, allocations: 36 kB / 0.5265 GB, free: 12.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002929/0.4477, allocations: 2.007 MB / 0.5284 GB, free: 10.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4477, allocations: 3.938 kB / 0.5284 GB, free: 10.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001413/0.4491, allocations: 0.5969 MB / 0.529 GB, free: 10.11 MB / 462.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001184/0.4503, allocations: 0.7807 MB / 0.5298 GB, free: 9.324 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.4519, allocations: 0.7671 MB / 0.5305 GB, free: 8.531 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4519, allocations: 0 / 0.5305 GB, free: 8.531 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007803/0.4527, allocations: 435 kB / 0.5309 GB, free: 8.082 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/0.4551, allocations: 0.6394 MB / 0.5316 GB, free: 7.438 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006662/0.4618, allocations: 4.606 MB / 0.5361 GB, free: 2.785 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.4631, allocations: 1.718 MB / 0.5377 GB, free: 1.039 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001101/0.4642, allocations: 357.3 kB / 0.5381 GB, free: 0.6836 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.4644, allocations: 155.4 kB / 0.5382 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4644, allocations: 0 / 0.5382 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of Templates: time 0.2375/0.702, allocations: 32.43 MB / 0.5699 GB, free: 99.68 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)