Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001293/0.001293, allocations: 91.73 kB / 16.3 MB, free: 6.453 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.001402/0.001402, allocations: 185.4 kB / 17.2 MB, free: 6.34 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.536/1.536, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.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.0005071/0.000507, allocations: 12 kB / 280.1 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1184, allocations: 47.58 MB / 327.7 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01881/0.1373, allocations: 20.31 MB / 348 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02814/0.1655, allocations: 18.76 MB / 366.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005638/0.1712, allocations: 63.56 kB / 366.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005896/0.1771, allocations: 1.267 MB / 368.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01567/0.1928, allocations: 2.991 MB / 371.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00639/0.1992, allocations: 1.282 MB / 372.4 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1913/0.3906, allocations: 11.84 MB / 384.2 MB, free: 16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001718/0.3924, allocations: 0.7969 MB / 385 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003563/0.3959, allocations: 1.553 MB / 386.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003903/0.3999, allocations: 1.871 MB / 388.4 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006519/0.4005, allocations: 81.28 kB / 388.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006329/0.4069, allocations: 1.248 MB / 389.7 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009757/0.4079, allocations: 0.5071 MB / 390.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003154/0.411, allocations: 1.177 MB / 391.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006865/0.4179, allocations: 4.652 MB / 396.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.4179, allocations: 0 / 396.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.418, allocations: 2.25 kB / 396.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002547/0.4182, allocations: 0 / 396.1 MB, free: 14.84 MB / 318.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.009451/0.4277, allocations: 5.869 MB / 401.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4277, allocations: 8.781 kB / 402 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008549/0.4286, allocations: 0.7521 MB / 402.7 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007052/0.4357, allocations: 4.313 MB / 407 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.987e-05/0.4357, allocations: 68.16 kB / 407.1 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001962/0.4359, allocations: 98.81 kB / 407.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.4378, allocations: 1.315 MB / 408.5 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.4379, allocations: 0 / 408.5 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.438, allocations: 39.55 kB / 408.5 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.052e-05/0.438, allocations: 36.55 kB / 408.6 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.4401, allocations: 1.524 MB / 410.1 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008696/0.4488, allocations: 5.628 MB / 415.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.4502, allocations: 1.036 MB / 416.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05548/0.5057, allocations: 60.24 MB / 477 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009621/0.5067, allocations: 0.5721 MB / 477.6 MB, free: 5.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.637e-06/0.5067, allocations: 0 / 477.6 MB, free: 5.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.003679/0.5104, allocations: 2.576 MB / 480.2 MB, free: 2.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.5105, allocations: 59.97 kB / 480.2 MB, free: 2.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006868/0.5174, allocations: 5.557 MB / 485.8 MB, free: 14.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.5175, allocations: 40.14 kB / 485.8 MB, free: 14.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002357/0.5198, allocations: 2.946 MB / 488.8 MB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003201/0.5202, allocations: 297.4 kB / 489 MB, free: 12.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.32e-05/0.5203, allocations: 32 kB / 489.1 MB, free: 12.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.5204, allocations: 365.9 kB / 489.4 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008456/0.5213, allocations: 419.8 kB / 489.8 MB, free: 11.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.5226, allocations: 1.102 MB / 490.9 MB, free: 9.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.5237, allocations: 0.5684 MB / 491.5 MB, free: 9.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.5237, allocations: 4 kB / 491.5 MB, free: 9.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00389/0.5276, allocations: 2.241 MB / 493.8 MB, free: 7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.5276, allocations: 16 kB / 493.8 MB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002141/0.5279, allocations: 160 kB / 493.9 MB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.937e-05/0.5279, allocations: 39.98 kB / 494 MB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.5291, allocations: 372 kB / 494.3 MB, free: 6.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.176e-05/0.5291, allocations: 43.86 kB / 494.4 MB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.5315, allocations: 208.2 kB / 494.6 MB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/0.5317, allocations: 124 kB / 494.7 MB, free: 6.062 MB / 398.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.001602/0.5333, allocations: 0.7159 MB / 495.4 MB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007624/0.534, allocations: 0.7178 MB / 496.1 MB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005044/0.5391, allocations: 2.241 MB / 498.4 MB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.5391, allocations: 11.98 kB / 498.4 MB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5391, allocations: 4 kB / 498.4 MB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.5391, allocations: 3.984 kB / 498.4 MB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005729/0.5449, allocations: 3.653 MB / 0.4903 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001619/0.5451, allocations: 136 kB / 0.4904 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.5458, allocations: 167.8 kB / 0.4906 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.5458, allocations: 4 kB / 0.4906 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.781e-05/0.5459, allocations: 63.98 kB / 0.4906 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.5459, allocations: 0 / 0.4906 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.5459, allocations: 7.953 kB / 0.4906 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003118/0.5491, allocations: 2.309 MB / 0.4929 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/0.5506, allocations: 0.8143 MB / 0.4937 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005788/0.5512, allocations: 12 kB / 0.4937 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.5523, allocations: 51.91 kB / 0.4938 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.5525, allocations: 100.5 kB / 0.4939 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.5526, allocations: 67.98 kB / 0.4939 GB, free: 10.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004611/0.5573, allocations: 3.559 MB / 0.4974 GB, free: 7.328 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5573, allocations: 0 / 0.4974 GB, free: 7.328 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002467/0.5597, allocations: 1.089 MB / 0.4985 GB, free: 6.238 MB / 414.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.00143/0.5612, allocations: 1.111 MB / 0.4995 GB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.5636, allocations: 1.467 MB / 0.501 GB, free: 3.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5636, allocations: 4 kB / 0.501 GB, free: 3.828 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.5647, allocations: 0.7864 MB / 0.5017 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.5676, allocations: 0.9302 MB / 0.5027 GB, free: 2.059 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/0.5793, allocations: 9.229 MB / 0.5117 GB, free: 8.797 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001862/0.5812, allocations: 2.718 MB / 0.5143 GB, free: 6.051 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002429/0.5837, allocations: 0.6888 MB / 0.515 GB, free: 5.359 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003944/0.5841, allocations: 283.4 kB / 0.5153 GB, free: 5.082 MB / 430.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5841, allocations: 0 / 0.5153 GB, free: 5.082 MB / 430.1 MB Notification: Performance of Templates: time 0.2479/0.832, allocations: 50.54 MB / 0.5646 GB, free: 153.8 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) Environment - environmentSimulation: