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.001178/0.001178, allocations: 109.3 kB / 16.62 MB, free: 6.812 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.001371/0.001371, allocations: 186 kB / 17.55 MB, free: 5.934 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.365/1.365, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001132/0.001132, allocations: 55.91 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08158/0.08272, allocations: 46.64 MB / 326.1 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01988/0.1026, allocations: 25.04 MB / 351.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02411/0.1268, allocations: 21.09 MB / 372.3 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005171/0.132, allocations: 67.62 kB / 372.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005985/0.138, allocations: 1.461 MB / 373.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01208/0.1502, allocations: 2.721 MB / 376.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005304/0.1555, allocations: 1.371 MB / 377.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1817/0.3373, allocations: 12.49 MB / 390.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.3388, allocations: 0.8796 MB / 391.3 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003029/0.3418, allocations: 1.856 MB / 393.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.3439, allocations: 2.052 MB / 395.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003471/0.3442, allocations: 138.5 kB / 395.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003429/0.3477, allocations: 1.224 MB / 396.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004869/0.3482, allocations: 0.6043 MB / 397.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002477/0.3507, allocations: 2.653 MB / 399.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005863/0.3565, allocations: 6.6 MB / 406.4 MB, free: 9.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3566, allocations: 4 kB / 406.4 MB, free: 9.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3566, allocations: 4 kB / 406.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.275e-05/0.3567, allocations: 0 / 406.4 MB, free: 9.191 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.007216/0.3639, allocations: 6.742 MB / 413.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.3639, allocations: 16.03 kB / 413.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005654/0.3645, allocations: 0.7481 MB / 413.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005687/0.3702, allocations: 4.657 MB / 418.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.78e-05/0.3703, allocations: 69.98 kB / 418.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002152/0.3705, allocations: 99.91 kB / 418.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002156/0.3727, allocations: 1.304 MB / 420 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.3727, allocations: 0.75 kB / 420 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.3728, allocations: 36 kB / 420.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.3729, allocations: 45.66 kB / 420.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/0.3752, allocations: 1.484 MB / 421.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009493/0.3847, allocations: 5.642 MB / 427.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/0.3864, allocations: 0.9893 MB / 428.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.388, allocations: 1.231 MB / 429.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05276/0.4407, allocations: 59.93 MB / 489.4 MB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.4418, allocations: 0.5637 MB / 489.9 MB, free: 14.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.166e-06/0.4418, allocations: 3.938 kB / 490 MB, free: 14.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003454/0.4453, allocations: 1.878 MB / 491.8 MB, free: 12.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.4454, allocations: 67.95 kB / 491.9 MB, free: 12.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007585/0.453, allocations: 5.632 MB / 497.5 MB, free: 6.684 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.4532, allocations: 41.7 kB / 497.6 MB, free: 6.637 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002382/0.4556, allocations: 2.93 MB / 0.4888 GB, free: 3.699 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004022/0.456, allocations: 294.8 kB / 0.4891 GB, free: 3.414 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005428/0.4566, allocations: 418.5 kB / 0.4895 GB, free: 3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4567, allocations: 313.1 kB / 0.4897 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000845/0.4575, allocations: 403.8 kB / 0.4901 GB, free: 2.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.4588, allocations: 1.09 MB / 0.4912 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.4608, allocations: 1.617 MB / 0.4928 GB, free: 14.95 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.4608, allocations: 8 kB / 0.4928 GB, free: 14.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003525/0.4644, allocations: 2.209 MB / 0.4949 GB, free: 12.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.4644, allocations: 16 kB / 0.495 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002344/0.4646, allocations: 164.9 kB / 0.4951 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.71e-05/0.4647, allocations: 32 kB / 0.4951 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.4658, allocations: 363.4 kB / 0.4955 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.828e-05/0.4659, allocations: 43.86 kB / 0.4955 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/0.4681, allocations: 190.1 kB / 0.4957 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/0.4684, allocations: 127.9 kB / 0.4958 GB, free: 11.81 MB / 430.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.001502/0.4699, allocations: 0.7122 MB / 0.4965 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009381/0.4708, allocations: 0.7256 MB / 0.4972 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005193/0.476, allocations: 2.167 MB / 0.4994 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.476, allocations: 8 kB / 0.4994 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4761, allocations: 0 / 0.4994 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.4761, allocations: 3.984 kB / 0.4994 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006127/0.4822, allocations: 3.624 MB / 0.5029 GB, free: 4.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001718/0.4824, allocations: 140 kB / 0.503 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007399/0.4831, allocations: 155.8 kB / 0.5032 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.4832, allocations: 4 kB / 0.5032 GB, free: 4.207 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.108e-05/0.4833, allocations: 60.06 kB / 0.5033 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.4833, allocations: 4 kB / 0.5033 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4833, allocations: 0 / 0.5033 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003467/0.4867, allocations: 2.164 MB / 0.5054 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/0.4883, allocations: 0.8239 MB / 0.5062 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005832/0.4889, allocations: 20 kB / 0.5062 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.49, allocations: 35.95 kB / 0.5062 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.4903, allocations: 96.5 kB / 0.5063 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.4904, allocations: 67.98 kB / 0.5064 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00471/0.4951, allocations: 3.629 MB / 0.5099 GB, free: 13.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4951, allocations: 0 / 0.5099 GB, free: 13.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002244/0.4974, allocations: 1.089 MB / 0.511 GB, free: 12.2 MB / 446.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.001674/0.4991, allocations: 1.193 MB / 0.5122 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00274/0.5018, allocations: 1.467 MB / 0.5136 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5018, allocations: 0 / 0.5136 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.5029, allocations: 0.7706 MB / 0.5143 GB, free: 8.875 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003944/0.5069, allocations: 0.9905 MB / 0.5153 GB, free: 7.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/0.5195, allocations: 9.802 MB / 0.5249 GB, free: 14.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.5214, allocations: 2.608 MB / 0.5274 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002451/0.5239, allocations: 0.6888 MB / 0.5281 GB, free: 10.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.5242, allocations: 287.4 kB / 0.5284 GB, free: 10.45 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5243, allocations: 0 / 0.5284 GB, free: 10.45 MB / 462.1 MB Notification: Performance of Templates: time 0.236/0.7602, allocations: 55.14 MB / 0.5822 GB, free: 153.4 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (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)