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.001052/0.001052, allocations: 86.83 kB / 16.31 MB, free: 6.449 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.001104/0.001104, allocations: 181 kB / 17.21 MB, free: 6.32 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.7/1.7, allocations: 205.4 MB / 223.4 MB, free: 5.512 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.0004518/0.0004519, allocations: 12 kB / 280.1 MB, free: 12.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2385, allocations: 47.59 MB / 327.7 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02132/0.2599, allocations: 22.49 MB / 350.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02631/0.2862, allocations: 19.5 MB / 369.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004605/0.2909, allocations: 59.62 kB / 369.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004982/0.2959, allocations: 1.243 MB / 371 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.3067, allocations: 2.584 MB / 373.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005151/0.3119, allocations: 1.194 MB / 374.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02112/0.333, allocations: 11.57 MB / 386.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002583/0.3356, allocations: 0.7949 MB / 387.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00317/0.3388, allocations: 1.601 MB / 388.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003292/0.3421, allocations: 1.871 MB / 390.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000836/0.343, allocations: 76 kB / 390.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005818/0.3488, allocations: 1.105 MB / 391.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001185/0.35, allocations: 0.5039 MB / 392.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003099/0.3532, allocations: 1.186 MB / 393.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008052/0.3612, allocations: 4.806 MB / 398.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3613, allocations: 0 / 398.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3613, allocations: 0 / 398.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003682/0.3617, allocations: 0 / 398.3 MB, free: 12.65 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.0112/0.3729, allocations: 5.901 MB / 404.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.3729, allocations: 12.03 kB / 404.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001478/0.3744, allocations: 0.7487 MB / 405 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008515/0.383, allocations: 4.336 MB / 409.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.195e-05/0.3831, allocations: 66 kB / 409.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006188/0.3837, allocations: 99.89 kB / 409.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00354/0.3873, allocations: 1.313 MB / 410.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.3873, allocations: 0 / 410.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001644/0.3875, allocations: 39.98 kB / 410.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.123e-05/0.3875, allocations: 35.98 kB / 410.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002681/0.3902, allocations: 1.523 MB / 412.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/0.402, allocations: 5.681 MB / 418.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00185/0.4039, allocations: 1.033 MB / 419.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/0.4057, allocations: 1.243 MB / 420.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2284/0.6341, allocations: 59.96 MB / 480.3 MB, free: 92.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008474/0.635, allocations: 0.5773 MB / 480.9 MB, free: 91.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 2.655e-06/0.635, allocations: 0 / 480.9 MB, free: 91.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.002817/0.6378, allocations: 1.948 MB / 482.8 MB, free: 91.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.6379, allocations: 63.06 kB / 482.9 MB, free: 91.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00507/0.6429, allocations: 5.558 MB / 488.4 MB, free: 85.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.638e-05/0.643, allocations: 37.7 kB / 488.5 MB, free: 85.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001814/0.6449, allocations: 2.938 MB / 491.4 MB, free: 82.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.6451, allocations: 306.3 kB / 491.7 MB, free: 82.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.6452, allocations: 28 kB / 491.7 MB, free: 82.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.6453, allocations: 361.9 kB / 492.1 MB, free: 82.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007247/0.646, allocations: 422.9 kB / 492.5 MB, free: 81.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008977/0.6469, allocations: 1.104 MB / 493.6 MB, free: 80.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008094/0.6478, allocations: 0.5658 MB / 494.2 MB, free: 79.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.6478, allocations: 11.94 kB / 494.2 MB, free: 79.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002806/0.6506, allocations: 2.241 MB / 496.4 MB, free: 77.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.6506, allocations: 15.31 kB / 496.5 MB, free: 77.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001839/0.6508, allocations: 168 kB / 496.6 MB, free: 77.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.753e-05/0.6509, allocations: 36 kB / 496.7 MB, free: 77.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009907/0.6519, allocations: 367.3 kB / 497 MB, free: 77.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.182e-05/0.6519, allocations: 51.78 kB / 497.1 MB, free: 77.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.6534, allocations: 194.2 kB / 497.2 MB, free: 76.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/0.6535, allocations: 131.6 kB / 497.4 MB, free: 76.76 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.001155/0.6547, allocations: 0.7082 MB / 498.1 MB, free: 76.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004659/0.6552, allocations: 0.7179 MB / 498.8 MB, free: 75.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004426/0.6596, allocations: 2.215 MB / 0.4893 GB, free: 73.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.6596, allocations: 11.94 kB / 0.4893 GB, free: 73.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.6596, allocations: 0 / 0.4893 GB, free: 73.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.6597, allocations: 3.984 kB / 0.4893 GB, free: 73.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004441/0.6641, allocations: 3.661 MB / 0.4929 GB, free: 69.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001634/0.6643, allocations: 140 kB / 0.493 GB, free: 69.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000654/0.6649, allocations: 163.9 kB / 0.4932 GB, free: 69.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.665, allocations: 8 kB / 0.4932 GB, free: 69.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.143e-05/0.6651, allocations: 63.94 kB / 0.4932 GB, free: 69.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.6651, allocations: 0 / 0.4932 GB, free: 69.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.6651, allocations: 7.938 kB / 0.4932 GB, free: 69.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/0.6677, allocations: 2.219 MB / 0.4954 GB, free: 66.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.6688, allocations: 0.816 MB / 0.4962 GB, free: 66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004961/0.6693, allocations: 23.98 kB / 0.4962 GB, free: 65.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009755/0.6703, allocations: 48.8 kB / 0.4963 GB, free: 65.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.6705, allocations: 100.5 kB / 0.4964 GB, free: 65.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.6706, allocations: 68 kB / 0.4964 GB, free: 65.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003899/0.6745, allocations: 3.559 MB / 0.4999 GB, free: 62.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6745, allocations: 0 / 0.4999 GB, free: 62.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002228/0.6767, allocations: 1.088 MB / 0.501 GB, free: 61.19 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.001521/0.6783, allocations: 1.124 MB / 0.5021 GB, free: 60.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.6804, allocations: 1.471 MB / 0.5035 GB, free: 58.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6804, allocations: 0 / 0.5035 GB, free: 58.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008925/0.6813, allocations: 0.7933 MB / 0.5043 GB, free: 57.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003037/0.6843, allocations: 0.9451 MB / 0.5052 GB, free: 57.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009722/0.694, allocations: 9.232 MB / 0.5142 GB, free: 47.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.6954, allocations: 2.604 MB / 0.5168 GB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002289/0.6977, allocations: 0.6888 MB / 0.5174 GB, free: 44.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/0.698, allocations: 283.4 kB / 0.5177 GB, free: 44.15 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6981, allocations: 3.938 kB / 0.5177 GB, free: 44.15 MB / 382.1 MB Notification: Performance of Templates: time 0.08052/0.7786, allocations: 51.91 MB / 0.5684 GB, free: 8.172 MB / 398.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)