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.008964/0.008964, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001718/0.001718, allocations: 198.2 kB / 16.67 MB, free: 5.977 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.387/1.387, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.002219/0.00222, allocations: 51.19 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1172, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02455/0.1418, allocations: 25.35 MB / 398.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02783/0.1696, allocations: 21.32 MB / 419.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005819/0.1755, allocations: 182.5 kB / 420 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005185/0.1808, allocations: 1.726 MB / 421.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.1913, allocations: 3.168 MB / 424.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005144/0.1965, allocations: 1.568 MB / 426.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01879/0.2153, allocations: 12.39 MB / 438.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.217, allocations: 0.8631 MB / 439.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002624/0.2196, allocations: 1.913 MB / 441.6 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002592/0.2222, allocations: 2.057 MB / 443.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003487/0.2226, allocations: 136 kB / 443.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003746/0.2263, allocations: 1.218 MB / 445.1 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006882/0.2271, allocations: 0.5971 MB / 445.7 MB, free: 8.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00305/0.2301, allocations: 2.643 MB / 448.3 MB, free: 5.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1959/0.426, allocations: 6.665 MB / 455 MB, free: 27.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4261, allocations: 0 / 455 MB, free: 27.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4261, allocations: 0.5 kB / 455 MB, free: 27.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002232/0.4263, allocations: 0.5312 kB / 455 MB, free: 27.39 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.01192/0.4382, allocations: 6.727 MB / 461.7 MB, free: 23.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4383, allocations: 10.52 kB / 461.7 MB, free: 23.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001549/0.4398, allocations: 0.749 MB / 462.4 MB, free: 23.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008419/0.4483, allocations: 4.628 MB / 467.1 MB, free: 22.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-05/0.4484, allocations: 66.94 kB / 467.1 MB, free: 22.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004448/0.4489, allocations: 101.7 kB / 467.2 MB, free: 22.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003015/0.4519, allocations: 1.299 MB / 468.5 MB, free: 21.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/0.4519, allocations: 2.062 kB / 468.5 MB, free: 21.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.4521, allocations: 35.38 kB / 468.6 MB, free: 21.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.556e-05/0.4522, allocations: 42.77 kB / 468.6 MB, free: 21.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002634/0.4548, allocations: 1.488 MB / 470.1 MB, free: 21.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01252/0.4673, allocations: 5.634 MB / 475.7 MB, free: 21.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.469, allocations: 0.9826 MB / 476.7 MB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.4703, allocations: 1.225 MB / 477.9 MB, free: 20.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05642/0.5268, allocations: 59.94 MB / 0.5253 GB, free: 7.312 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001083/0.5279, allocations: 0.556 MB / 0.5258 GB, free: 6.738 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.597e-06/0.5279, allocations: 2.812 kB / 0.5258 GB, free: 6.738 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.004047/0.532, allocations: 1.886 MB / 0.5277 GB, free: 4.852 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.532, allocations: 63.97 kB / 0.5277 GB, free: 4.773 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007539/0.5396, allocations: 5.624 MB / 0.5332 GB, free: 15.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002764/0.5399, allocations: 41.7 kB / 0.5333 GB, free: 15.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002447/0.5423, allocations: 2.934 MB / 0.5361 GB, free: 12.19 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004475/0.5428, allocations: 297.3 kB / 0.5364 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005411/0.5433, allocations: 422.5 kB / 0.5368 GB, free: 11.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5435, allocations: 305.1 kB / 0.5371 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009133/0.5444, allocations: 399.8 kB / 0.5375 GB, free: 10.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.5458, allocations: 1.094 MB / 0.5386 GB, free: 9.379 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/0.5482, allocations: 1.613 MB / 0.5401 GB, free: 7.543 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.5482, allocations: 4 kB / 0.5401 GB, free: 7.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004483/0.5527, allocations: 2.215 MB / 0.5423 GB, free: 5.457 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.5528, allocations: 17.09 kB / 0.5423 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002095/0.553, allocations: 164 kB / 0.5425 GB, free: 5.281 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.104e-05/0.553, allocations: 35.94 kB / 0.5425 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.5543, allocations: 357.4 kB / 0.5428 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-05/0.5543, allocations: 53.77 kB / 0.5429 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002631/0.557, allocations: 192.3 kB / 0.5431 GB, free: 4.695 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002125/0.5572, allocations: 124 kB / 0.5432 GB, free: 4.574 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.001421/0.5586, allocations: 0.7148 MB / 0.5439 GB, free: 3.875 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/0.5597, allocations: 0.7179 MB / 0.5446 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00429/0.564, allocations: 2.174 MB / 0.5467 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.564, allocations: 9.969 kB / 0.5467 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5641, allocations: 0 / 0.5467 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.5641, allocations: 3.984 kB / 0.5467 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006548/0.5706, allocations: 3.625 MB / 0.5503 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000179/0.5708, allocations: 143.9 kB / 0.5504 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/0.5716, allocations: 158.5 kB / 0.5506 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.5716, allocations: 0 / 0.5506 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.99e-05/0.5717, allocations: 63.98 kB / 0.5506 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.5718, allocations: 4 kB / 0.5506 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5718, allocations: 0 / 0.5506 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003945/0.5757, allocations: 2.168 MB / 0.5527 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002043/0.5778, allocations: 0.8184 MB / 0.5535 GB, free: 9.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005827/0.5784, allocations: 16.55 kB / 0.5536 GB, free: 9.914 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.5795, allocations: 35.97 kB / 0.5536 GB, free: 9.879 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.5797, allocations: 92.48 kB / 0.5537 GB, free: 9.789 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.5798, allocations: 71.98 kB / 0.5538 GB, free: 9.719 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004969/0.5848, allocations: 3.633 MB / 0.5573 GB, free: 6.117 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5848, allocations: 4 kB / 0.5573 GB, free: 6.113 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003022/0.5879, allocations: 1.085 MB / 0.5584 GB, free: 5.027 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.001792/0.5897, allocations: 1.186 MB / 0.5595 GB, free: 4.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.5923, allocations: 1.428 MB / 0.5609 GB, free: 2.672 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5923, allocations: 6.406 kB / 0.5609 GB, free: 2.668 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.5934, allocations: 0.772 MB / 0.5617 GB, free: 1.863 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003936/0.5973, allocations: 0.9915 MB / 0.5626 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/0.6099, allocations: 8.132 MB / 0.5706 GB, free: 8.734 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002139/0.612, allocations: 2.604 MB / 0.5731 GB, free: 6.109 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002236/0.6143, allocations: 0.685 MB / 0.5738 GB, free: 5.422 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004844/0.6148, allocations: 287.4 kB / 0.5741 GB, free: 5.141 MB / 478.1 MB Notification: Performance of SimCode: time 2.164e-06/0.6148, allocations: 3.938 kB / 0.5741 GB, free: 5.137 MB / 478.1 MB Notification: Performance of Templates: time 0.09529/0.7101, allocations: 56.68 MB / 0.6294 GB, free: 12.63 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)