Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008118/0.008118, allocations: 104.8 kB / 15.73 MB, free: 6.035 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.001585/0.001585, allocations: 199.2 kB / 16.67 MB, free: 5.969 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.395/1.395, allocations: 205.1 MB / 222.5 MB, free: 4.398 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.001121/0.001121, allocations: 50.52 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1104, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01879/0.1293, allocations: 14.6 MB / 387.8 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.1514, allocations: 19.8 MB / 407.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002689/0.1542, allocations: 95.25 kB / 407.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00323/0.1575, allocations: 1.236 MB / 408.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007039/0.1645, allocations: 2.336 MB / 411.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004231/0.1688, allocations: 1.389 MB / 412.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009949/0.1788, allocations: 6.453 MB / 419.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000807/0.1796, allocations: 481.6 kB / 419.5 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001417/0.181, allocations: 1.038 MB / 420.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.1822, allocations: 1.114 MB / 421.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.1823, allocations: 76 kB / 421.8 MB, free: 472 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003448/0.1858, allocations: 1.163 MB / 422.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003299/0.1861, allocations: 341.5 kB / 423.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001351/0.1875, allocations: 1.436 MB / 424.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005145/0.1927, allocations: 4.008 MB / 428.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1927, allocations: 0 / 428.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1927, allocations: 0 / 428.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.31e-05/0.1928, allocations: 0 / 428.7 MB, free: 9.492 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005887/0.1987, allocations: 3.838 MB / 432.5 MB, free: 5.578 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1987, allocations: 11.97 kB / 432.6 MB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000425/0.1992, allocations: 422.9 kB / 433 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.2022, allocations: 2.487 MB / 435.5 MB, free: 2.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.2023, allocations: 40.94 kB / 435.5 MB, free: 2.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.2024, allocations: 51.91 kB / 435.5 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.2039, allocations: 0.7303 MB / 436.3 MB, free: 1.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2039, allocations: 0 / 436.3 MB, free: 1.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.766e-05/0.2041, allocations: 24 kB / 436.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.2041, allocations: 23.98 kB / 436.3 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002214/0.2063, allocations: 0.8124 MB / 437.1 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00752/0.2139, allocations: 3.126 MB / 440.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.2157, allocations: 0.5752 MB / 440.8 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/0.2172, allocations: 0.6438 MB / 441.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2152/0.4323, allocations: 30.17 MB / 471.7 MB, free: 59.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000768/0.4332, allocations: 363.3 kB / 472 MB, free: 59.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.327e-06/0.4332, allocations: 0 / 472 MB, free: 59.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002295/0.4355, allocations: 1.123 MB / 473.1 MB, free: 58.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.4355, allocations: 60.7 kB / 473.2 MB, free: 58.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003477/0.439, allocations: 3.108 MB / 476.3 MB, free: 57.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.4391, allocations: 39.02 kB / 476.3 MB, free: 57.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008662/0.44, allocations: 1.57 MB / 477.9 MB, free: 55.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.4401, allocations: 170.9 kB / 478.1 MB, free: 55.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.4403, allocations: 232.2 kB / 478.3 MB, free: 55.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.58e-05/0.4404, allocations: 333.9 kB / 478.6 MB, free: 55.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005054/0.4409, allocations: 249.6 kB / 478.9 MB, free: 55.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006114/0.4415, allocations: 0.6017 MB / 479.5 MB, free: 54.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.4427, allocations: 0.9014 MB / 480.4 MB, free: 53.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.4427, allocations: 3.875 kB / 480.4 MB, free: 53.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001784/0.4445, allocations: 1.239 MB / 481.6 MB, free: 53.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.4445, allocations: 11.84 kB / 481.6 MB, free: 53.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.938e-05/0.4446, allocations: 82.81 kB / 481.7 MB, free: 53.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.4447, allocations: 23.62 kB / 481.7 MB, free: 53.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006686/0.4453, allocations: 200.5 kB / 481.9 MB, free: 53.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.032e-05/0.4454, allocations: 31.52 kB / 482 MB, free: 53.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.4464, allocations: 110.2 kB / 482.1 MB, free: 53.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.4466, allocations: 62.91 kB / 482.1 MB, free: 53.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0006742/0.4472, allocations: 465.6 kB / 482.6 MB, free: 52.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.4476, allocations: 403.9 kB / 483 MB, free: 52.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.4499, allocations: 1.221 MB / 484.2 MB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.4499, allocations: 6.5 kB / 484.2 MB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4499, allocations: 0 / 484.2 MB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4499, allocations: 3.438 kB / 484.2 MB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.4528, allocations: 2.155 MB / 486.4 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.428e-05/0.4529, allocations: 69.25 kB / 486.4 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004704/0.4534, allocations: 99.88 kB / 486.5 MB, free: 50.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.4534, allocations: 3.75 kB / 486.5 MB, free: 50.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.4534, allocations: 31.56 kB / 486.6 MB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.4535, allocations: 3.906 kB / 486.6 MB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4535, allocations: 0 / 486.6 MB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.4554, allocations: 1.334 MB / 487.9 MB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005068/0.4559, allocations: 492 kB / 488.4 MB, free: 48.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000287/0.4562, allocations: 11.98 kB / 488.4 MB, free: 48.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006705/0.4569, allocations: 31.59 kB / 488.4 MB, free: 48.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.457, allocations: 63.94 kB / 488.5 MB, free: 48.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/0.4571, allocations: 36 kB / 488.5 MB, free: 48.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002087/0.4592, allocations: 2.023 MB / 490.5 MB, free: 46.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4592, allocations: 4.062 kB / 490.5 MB, free: 46.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001147/0.4603, allocations: 0.5957 MB / 491.1 MB, free: 46.08 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0008977/0.4612, allocations: 0.7748 MB / 491.9 MB, free: 45.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.4627, allocations: 0.8218 MB / 492.7 MB, free: 44.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4627, allocations: 0 / 492.7 MB, free: 44.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006461/0.4634, allocations: 447.2 kB / 493.2 MB, free: 44.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.465, allocations: 0.5409 MB / 493.7 MB, free: 43.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005112/0.4702, allocations: 4.528 MB / 498.2 MB, free: 39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007608/0.471, allocations: 1.714 MB / 500 MB, free: 37.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009066/0.4719, allocations: 362.5 kB / 0.4886 GB, free: 36.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.4721, allocations: 155.4 kB / 0.4887 GB, free: 36.76 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4721, allocations: 0 / 0.4887 GB, free: 36.76 MB / 382.1 MB Notification: Performance of Templates: time 0.04426/0.5163, allocations: 32.17 MB / 0.5202 GB, free: 4.547 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)