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.001119/0.001119, allocations: 100.1 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.001103/0.001103, allocations: 177.3 kB / 15.95 MB, free: 216 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.684/1.684, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004746/0.0004747, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2635, allocations: 47.58 MB / 326.4 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01824/0.2818, allocations: 20.31 MB / 346.7 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02619/0.3081, allocations: 18.77 MB / 365.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005905/0.314, allocations: 55.69 kB / 365.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004959/0.319, allocations: 1.274 MB / 366.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01126/0.3303, allocations: 2.988 MB / 369.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005993/0.3363, allocations: 1.282 MB / 371.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02134/0.3577, allocations: 11.88 MB / 383 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001725/0.3595, allocations: 0.795 MB / 383.8 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002826/0.3624, allocations: 1.558 MB / 385.3 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003043/0.3654, allocations: 1.871 MB / 387.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000396/0.3658, allocations: 80 kB / 387.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005177/0.371, allocations: 1.246 MB / 388.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006418/0.3717, allocations: 0.5078 MB / 389.1 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001784/0.3735, allocations: 1.178 MB / 390.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005732/0.3792, allocations: 4.648 MB / 394.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3792, allocations: 0 / 394.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3792, allocations: 0 / 394.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002188/0.3795, allocations: 0 / 394.9 MB, free: 14.88 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.01012/0.3896, allocations: 5.866 MB / 400.7 MB, free: 8.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.3897, allocations: 8.031 kB / 400.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008937/0.3906, allocations: 0.7487 MB / 401.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008968/0.3995, allocations: 4.321 MB / 405.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.97e-05/0.3997, allocations: 66 kB / 405.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002911/0.4, allocations: 99.89 kB / 406 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002364/0.4023, allocations: 1.313 MB / 407.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.4024, allocations: 3.984 kB / 407.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.4025, allocations: 36 kB / 407.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.444e-05/0.4025, allocations: 39.98 kB / 407.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00258/0.4051, allocations: 1.519 MB / 408.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/0.4161, allocations: 5.634 MB / 414.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001758/0.4179, allocations: 1.032 MB / 415.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2374/0.6554, allocations: 60.23 MB / 475.8 MB, free: 95.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009269/0.6564, allocations: 0.5719 MB / 476.4 MB, free: 95.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 2.895e-06/0.6564, allocations: 3.188 kB / 476.4 MB, free: 95.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.002906/0.6593, allocations: 2.579 MB / 478.9 MB, free: 93.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.6594, allocations: 59.59 kB / 479 MB, free: 93.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005205/0.6646, allocations: 5.553 MB / 484.6 MB, free: 88.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001494/0.6648, allocations: 41.7 kB / 484.6 MB, free: 88.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00165/0.6664, allocations: 2.945 MB / 487.5 MB, free: 85.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002676/0.6667, allocations: 292 kB / 487.8 MB, free: 85.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.508e-05/0.6668, allocations: 32 kB / 487.9 MB, free: 85.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.007e-05/0.6669, allocations: 372.9 kB / 488.2 MB, free: 85.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007219/0.6676, allocations: 420.7 kB / 488.6 MB, free: 84.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008985/0.6685, allocations: 1.099 MB / 489.7 MB, free: 83.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008282/0.6693, allocations: 0.5782 MB / 490.3 MB, free: 82.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.6693, allocations: 8 kB / 490.3 MB, free: 82.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002983/0.6723, allocations: 2.237 MB / 492.6 MB, free: 80.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.6724, allocations: 16 kB / 492.6 MB, free: 80.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/0.6725, allocations: 160 kB / 492.7 MB, free: 80.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.885e-05/0.6726, allocations: 39.98 kB / 492.8 MB, free: 80.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.6737, allocations: 371 kB / 493.1 MB, free: 80.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.823e-05/0.6737, allocations: 47.17 kB / 493.2 MB, free: 80.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.6755, allocations: 194.2 kB / 493.4 MB, free: 79.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.6756, allocations: 124 kB / 493.5 MB, free: 79.8 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.001246/0.6769, allocations: 0.7236 MB / 494.2 MB, free: 79.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006102/0.6775, allocations: 0.7179 MB / 494.9 MB, free: 78.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004599/0.6821, allocations: 2.24 MB / 497.2 MB, free: 76.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.6821, allocations: 11.7 kB / 497.2 MB, free: 76.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.6821, allocations: 0 / 497.2 MB, free: 76.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.6822, allocations: 7.984 kB / 497.2 MB, free: 76.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005005/0.6872, allocations: 3.655 MB / 0.4891 GB, free: 72.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001376/0.6873, allocations: 140 kB / 0.4892 GB, free: 72.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006991/0.688, allocations: 163.9 kB / 0.4894 GB, free: 72.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.084e-05/0.6881, allocations: 4 kB / 0.4894 GB, free: 72.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.972e-05/0.6881, allocations: 59.98 kB / 0.4894 GB, free: 72.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.6882, allocations: 3.938 kB / 0.4895 GB, free: 72.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.6882, allocations: 9.391 kB / 0.4895 GB, free: 72.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002954/0.6911, allocations: 2.316 MB / 0.4917 GB, free: 69.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/0.6924, allocations: 0.812 MB / 0.4925 GB, free: 68.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004931/0.6929, allocations: 12 kB / 0.4925 GB, free: 68.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.694, allocations: 39.97 kB / 0.4926 GB, free: 68.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.6942, allocations: 108.4 kB / 0.4927 GB, free: 68.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.6943, allocations: 71.98 kB / 0.4927 GB, free: 68.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003847/0.6981, allocations: 3.563 MB / 0.4962 GB, free: 65.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6982, allocations: 0 / 0.4962 GB, free: 65.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002359/0.7005, allocations: 1.084 MB / 0.4973 GB, free: 64.11 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.001263/0.7018, allocations: 1.112 MB / 0.4984 GB, free: 63.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.7039, allocations: 1.471 MB / 0.4998 GB, free: 61.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.7039, allocations: 0 / 0.4998 GB, free: 61.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008599/0.7047, allocations: 0.7864 MB / 0.5006 GB, free: 60.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002519/0.7073, allocations: 0.9256 MB / 0.5015 GB, free: 59.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009391/0.7167, allocations: 9.233 MB / 0.5105 GB, free: 50.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/0.718, allocations: 2.722 MB / 0.5131 GB, free: 47.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002158/0.7202, allocations: 0.6888 MB / 0.5138 GB, free: 47.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.7205, allocations: 283.4 kB / 0.5141 GB, free: 46.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7205, allocations: 0 / 0.5141 GB, free: 46.98 MB / 382.1 MB Notification: Performance of Templates: time 0.0757/0.7962, allocations: 50.54 MB / 0.5634 GB, free: 12.36 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: