Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.001741/0.001741, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.366/1.366, allocations: 205.1 MB / 223.7 MB, free: 12.35 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.001964/0.001965, allocations: 56.39 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1082, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00836/0.1166, allocations: 7.722 MB / 334.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02099/0.1376, allocations: 18.51 MB / 352.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.1389, allocations: 31.75 kB / 352.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.1414, allocations: 0.8323 MB / 353.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005793/0.1472, allocations: 1.766 MB / 355.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005201/0.1524, allocations: 1.287 MB / 356.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005127/0.1575, allocations: 3.175 MB / 359.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003943/0.1579, allocations: 224.6 kB / 360.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006686/0.1586, allocations: 0.4937 MB / 360.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005933/0.1592, allocations: 0.5513 MB / 361.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.1593, allocations: 40 kB / 361.2 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003737/0.1631, allocations: 1.12 MB / 362.4 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.1633, allocations: 182.8 kB / 362.5 MB, free: 380 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006635/0.1639, allocations: 0.6909 MB / 363.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002939/0.1669, allocations: 2.211 MB / 365.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1669, allocations: 0 / 365.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1669, allocations: 0 / 365.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.1669, allocations: 0 / 365.4 MB, free: 13.46 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002985/0.1699, allocations: 2.02 MB / 367.5 MB, free: 11.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.17, allocations: 8.031 kB / 367.5 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002435/0.1702, allocations: 193.7 kB / 367.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.1721, allocations: 1.377 MB / 369 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.1721, allocations: 16.56 kB / 369.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.233e-05/0.1722, allocations: 39.89 kB / 369.1 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009141/0.1732, allocations: 425.2 kB / 369.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1732, allocations: 0 / 369.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.566e-05/0.1732, allocations: 15.98 kB / 369.5 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1733, allocations: 8 kB / 369.5 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.1743, allocations: 478 kB / 370 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00266/0.177, allocations: 1.619 MB / 371.6 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009072/0.1779, allocations: 387.2 kB / 372 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000705/0.1786, allocations: 405.8 kB / 372.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1862/0.3648, allocations: 15.22 MB / 387.6 MB, free: 48.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006649/0.3655, allocations: 261.3 kB / 387.9 MB, free: 48.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.294e-06/0.3655, allocations: 1.125 kB / 387.9 MB, free: 48.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002154/0.3677, allocations: 0.8407 MB / 388.7 MB, free: 47.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.3677, allocations: 57.25 kB / 388.8 MB, free: 47.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001919/0.3697, allocations: 1.462 MB / 390.2 MB, free: 47.19 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.3697, allocations: 33.23 kB / 390.3 MB, free: 47.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005314/0.3702, allocations: 0.7272 MB / 391 MB, free: 46.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.639e-05/0.3703, allocations: 97.14 kB / 391.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.3705, allocations: 130.9 kB / 391.2 MB, free: 46.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.369e-05/0.3706, allocations: 323.9 kB / 391.5 MB, free: 46.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/0.3711, allocations: 159.9 kB / 391.7 MB, free: 46.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.3716, allocations: 366.5 kB / 392 MB, free: 45.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009008/0.3725, allocations: 0.5272 MB / 392.6 MB, free: 45.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3725, allocations: 2.875 kB / 392.6 MB, free: 45.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001386/0.3739, allocations: 0.7574 MB / 393.3 MB, free: 45.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3739, allocations: 6.969 kB / 393.3 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.259e-05/0.374, allocations: 47.39 kB / 393.4 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003121/0.3743, allocations: 128.6 kB / 393.5 MB, free: 45.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.3747, allocations: 106.9 kB / 393.6 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005038/0.3752, allocations: 0.6891 MB / 394.3 MB, free: 44.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/0.3758, allocations: 67.52 kB / 394.4 MB, free: 44.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.099e-05/0.3758, allocations: 34.84 kB / 394.4 MB, free: 44.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000334/0.3762, allocations: 279 kB / 394.7 MB, free: 44.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.3764, allocations: 185.6 kB / 394.9 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.3781, allocations: 0.7467 MB / 395.6 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.3781, allocations: 7.047 kB / 395.6 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3781, allocations: 2.375 kB / 395.6 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.3781, allocations: 4.656 kB / 395.6 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.38, allocations: 1.315 MB / 396.9 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.142e-05/0.3801, allocations: 37.2 kB / 397 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.3803, allocations: 46.05 kB / 397 MB, free: 43.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002158/0.3806, allocations: 126.2 kB / 397.1 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.3806, allocations: 17.09 kB / 397.2 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004137/0.381, allocations: 0.6682 MB / 397.8 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3811, allocations: 5.719 kB / 397.8 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.3822, allocations: 0.7169 MB / 398.5 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.3825, allocations: 282 kB / 398.8 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.3827, allocations: 8.125 kB / 398.8 MB, free: 41.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004131/0.3831, allocations: 33.59 kB / 398.9 MB, free: 41.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3832, allocations: 41.95 kB / 398.9 MB, free: 41.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.3833, allocations: 21.88 kB / 398.9 MB, free: 41.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001128/0.3844, allocations: 0.9689 MB / 399.9 MB, free: 41.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3844, allocations: 0 / 399.9 MB, free: 41.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008336/0.3852, allocations: 332 kB / 400.2 MB, free: 41.16 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006541/0.3859, allocations: 0.5769 MB / 400.8 MB, free: 40.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.3871, allocations: 0.5153 MB / 401.3 MB, free: 40.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3871, allocations: 4.125 kB / 401.3 MB, free: 40.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000595/0.3877, allocations: 292.1 kB / 401.6 MB, free: 40.51 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008655/0.3885, allocations: 260.7 kB / 401.9 MB, free: 40.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.3911, allocations: 2.266 MB / 404.1 MB, free: 38.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.3915, allocations: 1.149 MB / 405.3 MB, free: 37.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005335/0.392, allocations: 202.9 kB / 405.5 MB, free: 37.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.3921, allocations: 91.38 kB / 405.6 MB, free: 37.12 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3921, allocations: 0 / 405.6 MB, free: 37.12 MB / 318.1 MB Notification: Performance of Templates: time 0.02623/0.4184, allocations: 19.8 MB / 425.4 MB, free: 17.33 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)