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.001294/0.001294, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001102/0.001103, allocations: 194.5 kB / 16.25 MB, free: 6.617 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.319/1.319, allocations: 205.1 MB / 222.1 MB, free: 4.734 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.001621/0.001621, allocations: 51.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2087, allocations: 46.62 MB / 324.8 MB, free: 1.883 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02059/0.2293, allocations: 25.04 MB / 349.9 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.025/0.2544, allocations: 21.11 MB / 371 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006104/0.2605, allocations: 59.69 kB / 371.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005105/0.2657, allocations: 1.462 MB / 372.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.2766, allocations: 2.725 MB / 375.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004968/0.2816, allocations: 1.363 MB / 376.6 MB, free: 144 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01779/0.2994, allocations: 12.51 MB / 389.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001496/0.3009, allocations: 0.8551 MB / 390 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002932/0.3038, allocations: 1.873 MB / 391.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002244/0.3061, allocations: 2.049 MB / 393.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003202/0.3064, allocations: 140 kB / 394 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.3098, allocations: 1.226 MB / 395.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005133/0.3103, allocations: 0.6049 MB / 395.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002385/0.3127, allocations: 2.651 MB / 398.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007299/0.32, allocations: 6.602 MB / 405.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3201, allocations: 4 kB / 405.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3201, allocations: 4 kB / 405.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.11e-05/0.3202, allocations: 0 / 405.1 MB, free: 3.473 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.008707/0.3289, allocations: 6.733 MB / 411.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.3289, allocations: 12.03 kB / 411.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008004/0.3297, allocations: 0.7487 MB / 412.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006502/0.3363, allocations: 4.668 MB / 417.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.562e-05/0.3363, allocations: 66 kB / 417.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002419/0.3366, allocations: 95.91 kB / 417.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/0.3388, allocations: 1.301 MB / 418.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.3388, allocations: 4 kB / 418.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.3389, allocations: 36 kB / 418.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.67e-05/0.339, allocations: 47.89 kB / 418.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.3413, allocations: 1.48 MB / 420.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008885/0.3502, allocations: 5.646 MB / 426 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.3518, allocations: 0.9935 MB / 426.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.3534, allocations: 1.22 MB / 428.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1859/0.5393, allocations: 59.92 MB / 488.1 MB, free: 84.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008197/0.5401, allocations: 0.5622 MB / 488.7 MB, free: 83.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 2.585e-06/0.5401, allocations: 0 / 488.7 MB, free: 83.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.002446/0.5426, allocations: 1.878 MB / 490.5 MB, free: 82.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.673e-05/0.5426, allocations: 63.97 kB / 490.6 MB, free: 82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004599/0.5472, allocations: 5.629 MB / 496.2 MB, free: 76.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.11e-05/0.5473, allocations: 41.7 kB / 496.3 MB, free: 76.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/0.5488, allocations: 2.943 MB / 499.2 MB, free: 73.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.5489, allocations: 295 kB / 499.5 MB, free: 73.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003665/0.5493, allocations: 422.5 kB / 499.9 MB, free: 72.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.171e-05/0.5493, allocations: 301.8 kB / 0.4885 GB, free: 72.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006776/0.55, allocations: 407.4 kB / 0.4889 GB, free: 72.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008608/0.5509, allocations: 1.096 MB / 0.4899 GB, free: 70.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.5525, allocations: 1.611 MB / 0.4915 GB, free: 68.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.5525, allocations: 8 kB / 0.4915 GB, free: 68.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002492/0.555, allocations: 2.213 MB / 0.4937 GB, free: 66.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.5551, allocations: 14.16 kB / 0.4937 GB, free: 66.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/0.5552, allocations: 164 kB / 0.4938 GB, free: 66.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/0.5553, allocations: 36 kB / 0.4939 GB, free: 66.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.5563, allocations: 354.6 kB / 0.4942 GB, free: 66.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.677e-05/0.5563, allocations: 51.47 kB / 0.4943 GB, free: 65.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.5578, allocations: 190.1 kB / 0.4944 GB, free: 65.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.558, allocations: 124 kB / 0.4946 GB, free: 65.65 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.0008871/0.5589, allocations: 0.7158 MB / 0.4953 GB, free: 64.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004454/0.5593, allocations: 0.7217 MB / 0.496 GB, free: 64.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.5635, allocations: 2.174 MB / 0.4981 GB, free: 62.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.5636, allocations: 11.94 kB / 0.4981 GB, free: 62.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.5636, allocations: 0 / 0.4981 GB, free: 62.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.5636, allocations: 7.984 kB / 0.4981 GB, free: 62.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004248/0.5678, allocations: 3.618 MB / 0.5016 GB, free: 58.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001397/0.568, allocations: 148 kB / 0.5018 GB, free: 58.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006806/0.5687, allocations: 147.8 kB / 0.5019 GB, free: 58.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.5687, allocations: 4 kB / 0.5019 GB, free: 58.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.089e-05/0.5688, allocations: 56 kB / 0.502 GB, free: 58.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.5688, allocations: 7.984 kB / 0.502 GB, free: 58.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5688, allocations: 3.938 kB / 0.502 GB, free: 58.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.5714, allocations: 2.165 MB / 0.5041 GB, free: 55.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009728/0.5724, allocations: 0.8201 MB / 0.5049 GB, free: 54.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005224/0.573, allocations: 16 kB / 0.5049 GB, free: 54.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.574, allocations: 35.95 kB / 0.505 GB, free: 54.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.5742, allocations: 108.4 kB / 0.5051 GB, free: 54.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5743, allocations: 66.5 kB / 0.5051 GB, free: 54.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003482/0.5778, allocations: 3.629 MB / 0.5087 GB, free: 51.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.5778, allocations: 0 / 0.5087 GB, free: 51.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001798/0.5796, allocations: 1.092 MB / 0.5097 GB, free: 50.12 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.001359/0.581, allocations: 1.187 MB / 0.5109 GB, free: 48.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.5832, allocations: 1.46 MB / 0.5123 GB, free: 47.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5833, allocations: 0 / 0.5123 GB, free: 47.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008658/0.5841, allocations: 0.7744 MB / 0.5131 GB, free: 46.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/0.5868, allocations: 0.9858 MB / 0.514 GB, free: 45.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008885/0.5957, allocations: 9.813 MB / 0.5236 GB, free: 35.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.597, allocations: 2.604 MB / 0.5262 GB, free: 33.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002174/0.5992, allocations: 0.6888 MB / 0.5268 GB, free: 32.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.5995, allocations: 283.4 kB / 0.5271 GB, free: 32.21 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5995, allocations: 4 kB / 0.5271 GB, free: 32.21 MB / 382.1 MB Notification: Performance of Templates: time 0.08094/0.6804, allocations: 55.14 MB / 0.581 GB, free: 8.98 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)