Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009019/0.0009019, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.0009066/0.0009066, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0008387/0.0008388, allocations: 12 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2639, allocations: 47.58 MB / 326.4 MB, free: 1.641 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01863/0.2826, allocations: 20.3 MB / 346.7 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02699/0.3096, allocations: 18.77 MB / 365.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006856/0.3165, allocations: 59.62 kB / 365.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006182/0.3227, allocations: 1.278 MB / 366.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.3371, allocations: 2.988 MB / 369.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006466/0.3436, allocations: 1.274 MB / 371.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02676/0.3704, allocations: 12.03 MB / 383.1 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002684/0.3732, allocations: 0.7949 MB / 383.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003604/0.3768, allocations: 1.559 MB / 385.5 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004267/0.3811, allocations: 1.875 MB / 387.4 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009574/0.3821, allocations: 76 kB / 387.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006432/0.3886, allocations: 1.249 MB / 388.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001093/0.3897, allocations: 0.5039 MB / 389.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002407/0.3921, allocations: 1.182 MB / 390.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006465/0.3986, allocations: 4.652 MB / 395 MB, free: 14.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3986, allocations: 0 / 395 MB, free: 14.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3986, allocations: 0 / 395 MB, free: 14.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000225/0.3989, allocations: 0 / 395 MB, free: 14.89 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009945/0.4088, allocations: 5.87 MB / 400.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.4089, allocations: 8.031 kB / 400.9 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000946/0.4098, allocations: 0.7448 MB / 401.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007277/0.4171, allocations: 4.317 MB / 406 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.483e-05/0.4172, allocations: 66 kB / 406 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002197/0.4174, allocations: 99.91 kB / 406.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002156/0.4196, allocations: 1.309 MB / 407.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.4196, allocations: 3.938 kB / 407.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.4197, allocations: 36 kB / 407.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.84e-05/0.4198, allocations: 39.97 kB / 407.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002414/0.4222, allocations: 1.527 MB / 409 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009103/0.4313, allocations: 5.63 MB / 414.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.4329, allocations: 1.029 MB / 415.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2196/0.6525, allocations: 60.23 MB / 475.9 MB, free: 95.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008865/0.6535, allocations: 0.5796 MB / 476.5 MB, free: 95.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.336e-06/0.6535, allocations: 0 / 476.5 MB, free: 95.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.002843/0.6563, allocations: 2.571 MB / 479.1 MB, free: 94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.086e-05/0.6564, allocations: 60.81 kB / 479.1 MB, free: 93.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004977/0.6614, allocations: 5.558 MB / 484.7 MB, free: 89.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.6615, allocations: 40.98 kB / 484.7 MB, free: 89.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/0.6632, allocations: 2.937 MB / 487.7 MB, free: 86.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.6634, allocations: 302.6 kB / 488 MB, free: 85.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.6635, allocations: 28 kB / 488 MB, free: 85.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.865e-05/0.6636, allocations: 369.9 kB / 488.4 MB, free: 85.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007237/0.6643, allocations: 419.7 kB / 488.8 MB, free: 85.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009222/0.6652, allocations: 1.099 MB / 489.9 MB, free: 83.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00085/0.6661, allocations: 0.568 MB / 490.4 MB, free: 83.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.6661, allocations: 8 kB / 490.4 MB, free: 83.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002979/0.6691, allocations: 2.244 MB / 492.7 MB, free: 80.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.6691, allocations: 19.84 kB / 492.7 MB, free: 80.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.6693, allocations: 168 kB / 492.9 MB, free: 80.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.889e-05/0.6693, allocations: 36 kB / 492.9 MB, free: 80.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.6704, allocations: 368.1 kB / 493.3 MB, free: 80.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-05/0.6705, allocations: 47.8 kB / 493.3 MB, free: 80.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.6722, allocations: 190.2 kB / 493.5 MB, free: 80.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.6723, allocations: 128 kB / 493.6 MB, free: 80 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001265/0.6736, allocations: 0.7157 MB / 494.3 MB, free: 79.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005192/0.6741, allocations: 0.7179 MB / 495.1 MB, free: 78.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004622/0.6788, allocations: 2.251 MB / 497.3 MB, free: 76.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.6788, allocations: 8 kB / 497.3 MB, free: 76.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.6788, allocations: 0 / 497.3 MB, free: 76.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.036e-06/0.6788, allocations: 7.984 kB / 497.3 MB, free: 76.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/0.6835, allocations: 3.658 MB / 0.4892 GB, free: 72.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001403/0.6837, allocations: 136 kB / 0.4894 GB, free: 72.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007107/0.6844, allocations: 163.9 kB / 0.4895 GB, free: 72.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.6844, allocations: 0 / 0.4895 GB, free: 72.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.658e-05/0.6845, allocations: 65.17 kB / 0.4896 GB, free: 72.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.6845, allocations: 4 kB / 0.4896 GB, free: 72.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.6845, allocations: 7.938 kB / 0.4896 GB, free: 72.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.6873, allocations: 2.32 MB / 0.4919 GB, free: 69.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.6886, allocations: 0.8081 MB / 0.4926 GB, free: 69.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005391/0.6892, allocations: 20 kB / 0.4927 GB, free: 69.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.6903, allocations: 43.95 kB / 0.4927 GB, free: 69.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.6905, allocations: 100.5 kB / 0.4928 GB, free: 68.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.6906, allocations: 71.98 kB / 0.4929 GB, free: 68.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003941/0.6945, allocations: 3.559 MB / 0.4964 GB, free: 65.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6945, allocations: 0 / 0.4964 GB, free: 65.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002275/0.6968, allocations: 1.084 MB / 0.4974 GB, free: 64.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001239/0.6981, allocations: 1.103 MB / 0.4985 GB, free: 63.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.7001, allocations: 1.471 MB / 0.4999 GB, free: 61.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.7001, allocations: 0 / 0.4999 GB, free: 61.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008676/0.701, allocations: 0.7864 MB / 0.5007 GB, free: 61.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002539/0.7035, allocations: 0.9295 MB / 0.5016 GB, free: 60.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009092/0.7126, allocations: 9.237 MB / 0.5106 GB, free: 50.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/0.714, allocations: 2.722 MB / 0.5133 GB, free: 48.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002244/0.7162, allocations: 0.685 MB / 0.5139 GB, free: 47.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003246/0.7166, allocations: 283.4 kB / 0.5142 GB, free: 47.19 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7166, allocations: 0 / 0.5142 GB, free: 47.19 MB / 382.1 MB Notification: Performance of Templates: time 0.07664/0.7932, allocations: 50.53 MB / 0.5636 GB, free: 12.58 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) Environment - environmentSimulation: