Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.008289/0.008289, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.00185/0.00185, allocations: 191 kB / 16.67 MB, free: 5.969 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.403/1.403, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001207/0.001207, allocations: 58.17 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09564, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02239/0.1181, allocations: 25.34 MB / 398.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03029/0.1484, allocations: 21.33 MB / 419.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008248/0.1567, allocations: 178.5 kB / 420 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005884/0.1626, allocations: 1.734 MB / 421.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01319/0.1759, allocations: 3.16 MB / 424.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006487/0.1824, allocations: 1.564 MB / 426.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02045/0.2029, allocations: 12.4 MB / 438.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.2048, allocations: 0.8632 MB / 439.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003642/0.2085, allocations: 1.87 MB / 441.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003669/0.2122, allocations: 2.061 MB / 443.7 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004695/0.2127, allocations: 132 kB / 443.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004908/0.2176, allocations: 1.214 MB / 445 MB, free: 9.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007091/0.2183, allocations: 0.6049 MB / 445.6 MB, free: 8.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003525/0.2219, allocations: 2.635 MB / 448.3 MB, free: 5.871 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2061/0.428, allocations: 6.672 MB / 454.9 MB, free: 27.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.428, allocations: 0.6562 kB / 454.9 MB, free: 27.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.428, allocations: 0 / 454.9 MB, free: 27.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002719/0.4283, allocations: 0 / 454.9 MB, free: 27.38 MB / 382.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.01355/0.4419, allocations: 6.722 MB / 461.6 MB, free: 23.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.4419, allocations: 14.58 kB / 461.7 MB, free: 23.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.4434, allocations: 0.7491 MB / 462.4 MB, free: 23.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008837/0.4523, allocations: 4.621 MB / 467 MB, free: 22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.496e-05/0.4524, allocations: 62.91 kB / 467.1 MB, free: 22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000299/0.4527, allocations: 103.1 kB / 467.2 MB, free: 21.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002313/0.455, allocations: 1.304 MB / 468.5 MB, free: 21.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.4551, allocations: 5.125 kB / 468.5 MB, free: 21.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.4552, allocations: 36.75 kB / 468.5 MB, free: 21.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-05/0.4553, allocations: 38.44 kB / 468.6 MB, free: 21.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002789/0.4581, allocations: 1.487 MB / 470.1 MB, free: 21.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/0.4692, allocations: 5.64 MB / 475.7 MB, free: 21.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.4709, allocations: 0.9899 MB / 476.7 MB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.4724, allocations: 1.221 MB / 477.9 MB, free: 20.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05691/0.5293, allocations: 59.94 MB / 0.5252 GB, free: 7.324 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.5304, allocations: 0.5482 MB / 0.5258 GB, free: 6.758 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.666e-06/0.5304, allocations: 0 / 0.5258 GB, free: 6.758 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.004235/0.5346, allocations: 1.885 MB / 0.5276 GB, free: 4.871 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.5347, allocations: 59.97 kB / 0.5277 GB, free: 4.797 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007589/0.5423, allocations: 5.632 MB / 0.5332 GB, free: 15.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002694/0.5426, allocations: 45.69 kB / 0.5332 GB, free: 15.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00239/0.545, allocations: 2.938 MB / 0.5361 GB, free: 12.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005362/0.5455, allocations: 291.4 kB / 0.5364 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005943/0.5462, allocations: 426.5 kB / 0.5368 GB, free: 11.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.5463, allocations: 301.1 kB / 0.5371 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009177/0.5472, allocations: 407.8 kB / 0.5375 GB, free: 10.81 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.5485, allocations: 1.087 MB / 0.5385 GB, free: 9.395 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/0.5508, allocations: 1.612 MB / 0.5401 GB, free: 7.562 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.5508, allocations: 8 kB / 0.5401 GB, free: 7.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004257/0.5551, allocations: 2.214 MB / 0.5423 GB, free: 5.473 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.5551, allocations: 16 kB / 0.5423 GB, free: 5.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002207/0.5553, allocations: 160 kB / 0.5424 GB, free: 5.301 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.833e-05/0.5554, allocations: 44 kB / 0.5425 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.5566, allocations: 353.4 kB / 0.5428 GB, free: 4.938 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.07e-05/0.5566, allocations: 52.72 kB / 0.5429 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/0.559, allocations: 188.1 kB / 0.543 GB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001931/0.5592, allocations: 128 kB / 0.5432 GB, free: 4.59 MB / 446.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 (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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001341/0.5606, allocations: 0.716 MB / 0.5439 GB, free: 3.891 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/0.5616, allocations: 0.7179 MB / 0.5446 GB, free: 3.164 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.5661, allocations: 2.165 MB / 0.5467 GB, free: 1.016 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.5661, allocations: 11.98 kB / 0.5467 GB, free: 1.004 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5662, allocations: 4 kB / 0.5467 GB, free: 1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.5662, allocations: 5.953 kB / 0.5467 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006499/0.5727, allocations: 3.632 MB / 0.5502 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002006/0.5729, allocations: 140 kB / 0.5504 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.5737, allocations: 150.3 kB / 0.5505 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.5737, allocations: 8.062 kB / 0.5505 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/0.5739, allocations: 59.98 kB / 0.5506 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.5739, allocations: 4.938 kB / 0.5506 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5739, allocations: 3.938 kB / 0.5506 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003601/0.5775, allocations: 2.161 MB / 0.5527 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/0.5797, allocations: 0.8223 MB / 0.5535 GB, free: 9.941 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000612/0.5803, allocations: 16 kB / 0.5535 GB, free: 9.926 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.5814, allocations: 35.97 kB / 0.5536 GB, free: 9.891 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.5817, allocations: 92.48 kB / 0.5536 GB, free: 9.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.5818, allocations: 76.92 kB / 0.5537 GB, free: 9.727 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004843/0.5866, allocations: 3.629 MB / 0.5573 GB, free: 6.129 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5867, allocations: 0 / 0.5573 GB, free: 6.129 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002709/0.5894, allocations: 1.089 MB / 0.5583 GB, free: 5.039 MB / 462.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 (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.001553/0.5909, allocations: 1.183 MB / 0.5595 GB, free: 4.086 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.5934, allocations: 1.438 MB / 0.5609 GB, free: 2.676 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5935, allocations: 2.406 kB / 0.5609 GB, free: 2.676 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.5946, allocations: 0.7722 MB / 0.5616 GB, free: 1.871 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/0.598, allocations: 0.9906 MB / 0.5626 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.6089, allocations: 8.128 MB / 0.5705 GB, free: 8.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/0.6107, allocations: 2.6 MB / 0.5731 GB, free: 6.125 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002009/0.6128, allocations: 0.6927 MB / 0.5738 GB, free: 5.43 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004016/0.6132, allocations: 279.4 kB / 0.574 GB, free: 5.156 MB / 478.1 MB Notification: Performance of SimCode: time 7.71e-07/0.6132, allocations: 4 kB / 0.574 GB, free: 5.152 MB / 478.1 MB Notification: Performance of Templates: time 0.0946/0.7078, allocations: 55.61 MB / 0.6283 GB, free: 13.72 MB / 0.5294 GB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)