Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008458/0.008458, allocations: 100.1 kB / 15.73 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.002065/0.002065, allocations: 201.6 kB / 16.68 MB, free: 6.352 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.392/1.392, allocations: 205.1 MB / 222.5 MB, free: 4.48 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.001169/0.001169, allocations: 54.25 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1041, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008742/0.1129, allocations: 7.711 MB / 380.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02301/0.136, allocations: 18.51 MB / 399.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.1377, allocations: 63.44 kB / 399.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002592/0.1404, allocations: 0.8321 MB / 400.3 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006712/0.1471, allocations: 1.801 MB / 402.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006553/0.1537, allocations: 1.283 MB / 403.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006135/0.1599, allocations: 3.187 MB / 406.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004939/0.1604, allocations: 224.5 kB / 406.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008217/0.1612, allocations: 0.5172 MB / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005632/0.1618, allocations: 0.5512 MB / 407.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.459e-05/0.1619, allocations: 40 kB / 407.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004288/0.1662, allocations: 1.128 MB / 409 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.1664, allocations: 170.8 kB / 409.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006201/0.167, allocations: 0.6793 MB / 409.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003039/0.1701, allocations: 2.227 MB / 412.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1701, allocations: 0 / 412.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1701, allocations: 0 / 412.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.1701, allocations: 0 / 412.1 MB, free: 10.21 MB / 350.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.002817/0.1729, allocations: 2.023 MB / 414.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.173, allocations: 8.031 kB / 414.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.1732, allocations: 201.7 kB / 414.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.1749, allocations: 1.366 MB / 415.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.1749, allocations: 20.56 kB / 415.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.728e-05/0.175, allocations: 24 kB / 415.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009078/0.1759, allocations: 433.2 kB / 416.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1759, allocations: 0 / 416.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.561e-05/0.176, allocations: 12 kB / 416.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.176, allocations: 11.98 kB / 416.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.1771, allocations: 474.1 kB / 416.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.1799, allocations: 1.627 MB / 418.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009078/0.1809, allocations: 379.2 kB / 418.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007105/0.1816, allocations: 409.8 kB / 419 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0148/0.1964, allocations: 15.24 MB / 434.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006553/0.1971, allocations: 255 kB / 434.5 MB, free: 1.469 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.314e-06/0.1971, allocations: 4 kB / 434.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.00217/0.1993, allocations: 0.8368 MB / 435.3 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.1993, allocations: 67.38 kB / 435.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.201, allocations: 1.464 MB / 436.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.2011, allocations: 33.64 kB / 436.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005401/0.2016, allocations: 0.7188 MB / 437.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.769e-05/0.2017, allocations: 94.8 kB / 437.7 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.202, allocations: 126 kB / 437.8 MB, free: 14.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2021, allocations: 330 kB / 438.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.2026, allocations: 157 kB / 438.3 MB, free: 13.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.2031, allocations: 359.5 kB / 438.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009966/0.2041, allocations: 0.5332 MB / 439.2 MB, free: 12.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.2042, allocations: 4 kB / 439.2 MB, free: 12.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001512/0.2057, allocations: 0.7546 MB / 440 MB, free: 11.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.2057, allocations: 9.938 kB / 440 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.624e-05/0.2058, allocations: 44 kB / 440 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.2061, allocations: 132.8 kB / 440.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.2065, allocations: 107.8 kB / 440.2 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005635/0.2071, allocations: 0.6889 MB / 440.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006141/0.2077, allocations: 71.34 kB / 441 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.685e-05/0.2078, allocations: 40 kB / 441 MB, free: 10.6 MB / 382.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.0004664/0.2083, allocations: 273.5 kB / 441.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/0.2085, allocations: 189.7 kB / 441.5 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001763/0.2103, allocations: 0.7433 MB / 442.2 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.2103, allocations: 8 kB / 442.2 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2103, allocations: 0 / 442.2 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2103, allocations: 0 / 442.2 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002211/0.2125, allocations: 1.308 MB / 443.6 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.542e-05/0.2126, allocations: 39.98 kB / 443.6 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.2129, allocations: 47.89 kB / 443.6 MB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002469/0.2131, allocations: 128.9 kB / 443.8 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.2132, allocations: 23.98 kB / 443.8 MB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005816/0.2138, allocations: 0.6733 MB / 444.5 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.2138, allocations: 0 / 444.5 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.2152, allocations: 0.7201 MB / 445.2 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003973/0.2156, allocations: 286.6 kB / 445.5 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.2157, allocations: 3.938 kB / 445.5 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004198/0.2161, allocations: 27.97 kB / 445.5 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.2163, allocations: 43.95 kB / 445.5 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.249e-05/0.2163, allocations: 20 kB / 445.6 MB, free: 5.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001285/0.2176, allocations: 0.9653 MB / 446.5 MB, free: 4.926 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2176, allocations: 7.938 kB / 446.5 MB, free: 4.918 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001043/0.2187, allocations: 335.8 kB / 446.9 MB, free: 4.59 MB / 382.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.001058/0.2198, allocations: 0.5738 MB / 447.4 MB, free: 4.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.2211, allocations: 0.5161 MB / 448 MB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2212, allocations: 0 / 448 MB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006279/0.2218, allocations: 291.5 kB / 448.2 MB, free: 3.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009451/0.2228, allocations: 270.9 kB / 448.5 MB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.226, allocations: 2.21 MB / 450.7 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2085/0.4345, allocations: 1.149 MB / 451.9 MB, free: 74.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000951/0.4356, allocations: 199.2 kB / 452.1 MB, free: 74.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002518/0.4358, allocations: 91.38 kB / 452.1 MB, free: 74.75 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4358, allocations: 0 / 452.1 MB, free: 74.75 MB / 382.1 MB Notification: Performance of Templates: time 0.03542/0.4713, allocations: 19.87 MB / 472 MB, free: 66 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)