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.00119/0.00119, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 197 kB / 16.53 MB, free: 6.664 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.322/1.322, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001145/0.001145, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1835, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02123/0.2047, allocations: 25.35 MB / 350.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02575/0.2305, allocations: 21.35 MB / 372 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003976/0.2345, allocations: 59.69 kB / 372.1 MB, free: 5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004234/0.2388, allocations: 1.724 MB / 373.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009304/0.2481, allocations: 3.168 MB / 376.9 MB, free: 76 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004269/0.2524, allocations: 1.56 MB / 378.5 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0179/0.2703, allocations: 12.35 MB / 390.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.2717, allocations: 0.8668 MB / 391.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.2741, allocations: 1.842 MB / 393.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002106/0.2762, allocations: 2.049 MB / 395.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003481/0.2766, allocations: 140 kB / 395.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003855/0.2805, allocations: 1.222 MB / 397 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005855/0.2811, allocations: 0.6165 MB / 397.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00243/0.2835, allocations: 2.639 MB / 400.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007265/0.2908, allocations: 6.618 MB / 406.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.2908, allocations: 3.984 kB / 406.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2908, allocations: 0 / 406.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001095/0.2909, allocations: 4 kB / 406.9 MB, free: 2.004 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.009103/0.3001, allocations: 6.737 MB / 413.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3001, allocations: 8.031 kB / 413.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007766/0.3009, allocations: 0.7487 MB / 414.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006462/0.3074, allocations: 4.668 MB / 419 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.953e-05/0.3074, allocations: 66 kB / 419.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.3076, allocations: 99.89 kB / 419.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002174/0.3098, allocations: 1.297 MB / 420.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.3098, allocations: 0 / 420.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.31, allocations: 39.98 kB / 420.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.256e-05/0.31, allocations: 47.86 kB / 420.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002479/0.3125, allocations: 1.488 MB / 422 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009132/0.3217, allocations: 5.646 MB / 427.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.3234, allocations: 0.9927 MB / 428.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.325, allocations: 1.223 MB / 429.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1841/0.5091, allocations: 59.91 MB / 489.8 MB, free: 82.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008859/0.51, allocations: 0.5653 MB / 490.4 MB, free: 81.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.246e-06/0.51, allocations: 0 / 490.4 MB, free: 81.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.00275/0.5128, allocations: 1.89 MB / 492.3 MB, free: 80.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.5129, allocations: 62.03 kB / 492.3 MB, free: 80.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005082/0.5179, allocations: 5.628 MB / 498 MB, free: 74.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.857e-05/0.518, allocations: 37.7 kB / 498 MB, free: 74.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.5196, allocations: 2.931 MB / 0.4892 GB, free: 71.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.5198, allocations: 300.9 kB / 0.4895 GB, free: 71.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003995/0.5202, allocations: 430.5 kB / 0.4899 GB, free: 70.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.185e-05/0.5203, allocations: 301.7 kB / 0.4902 GB, free: 70.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007301/0.521, allocations: 402.8 kB / 0.4906 GB, free: 70.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000912/0.5219, allocations: 1.086 MB / 0.4916 GB, free: 68.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.5237, allocations: 1.615 MB / 0.4932 GB, free: 67.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.5237, allocations: 4 kB / 0.4932 GB, free: 67.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002694/0.5264, allocations: 2.216 MB / 0.4954 GB, free: 64.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.5264, allocations: 16 kB / 0.4954 GB, free: 64.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001626/0.5266, allocations: 164 kB / 0.4955 GB, free: 64.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.5266, allocations: 39.94 kB / 0.4956 GB, free: 64.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.5277, allocations: 351.4 kB / 0.4959 GB, free: 64.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.751e-05/0.5277, allocations: 51.77 kB / 0.496 GB, free: 64.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.5292, allocations: 190.1 kB / 0.4961 GB, free: 64.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.5294, allocations: 132 kB / 0.4963 GB, free: 63.88 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 (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.0009305/0.5303, allocations: 0.7082 MB / 0.497 GB, free: 63.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004565/0.5308, allocations: 0.7255 MB / 0.4977 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004256/0.535, allocations: 2.163 MB / 0.4998 GB, free: 60.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.5351, allocations: 8 kB / 0.4998 GB, free: 60.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.5351, allocations: 3.938 kB / 0.4998 GB, free: 60.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.5351, allocations: 3.984 kB / 0.4998 GB, free: 60.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004217/0.5393, allocations: 3.628 MB / 0.5033 GB, free: 56.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001524/0.5395, allocations: 140 kB / 0.5035 GB, free: 56.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000738/0.5402, allocations: 156.8 kB / 0.5036 GB, free: 56.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.5402, allocations: 0 / 0.5036 GB, free: 56.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.545e-05/0.5403, allocations: 60 kB / 0.5037 GB, free: 56.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.5403, allocations: 4 kB / 0.5037 GB, free: 56.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.5403, allocations: 0.75 kB / 0.5037 GB, free: 56.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.543, allocations: 2.169 MB / 0.5058 GB, free: 54.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009515/0.544, allocations: 0.8239 MB / 0.5066 GB, free: 53.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005263/0.5445, allocations: 16.88 kB / 0.5066 GB, free: 53.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.5456, allocations: 35.95 kB / 0.5067 GB, free: 53.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.5458, allocations: 96.48 kB / 0.5067 GB, free: 53.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.584e-05/0.5459, allocations: 72 kB / 0.5068 GB, free: 53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003449/0.5494, allocations: 3.633 MB / 0.5104 GB, free: 49.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5494, allocations: 3.938 kB / 0.5104 GB, free: 49.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001839/0.5512, allocations: 1.088 MB / 0.5114 GB, free: 48.35 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 (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.001313/0.5525, allocations: 1.181 MB / 0.5126 GB, free: 47.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002362/0.5549, allocations: 1.463 MB / 0.514 GB, free: 45.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5549, allocations: 4.125 kB / 0.514 GB, free: 45.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009186/0.5559, allocations: 0.7705 MB / 0.5148 GB, free: 44.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.5586, allocations: 0.9881 MB / 0.5157 GB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008556/0.5672, allocations: 8.278 MB / 0.5238 GB, free: 35.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.5685, allocations: 2.6 MB / 0.5264 GB, free: 32.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00237/0.5709, allocations: 0.6927 MB / 0.527 GB, free: 32.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005389/0.5714, allocations: 287.4 kB / 0.5273 GB, free: 31.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5714, allocations: 4 kB / 0.5273 GB, free: 31.98 MB / 382.1 MB Notification: Performance of Templates: time 0.08326/0.6547, allocations: 55.41 MB / 0.5814 GB, free: 8.488 MB / 414.1 MB 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)