Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.008902/0.008902, allocations: 102 kB / 15.73 MB, free: 6.051 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.001669/0.001669, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.485/1.485, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001217/0.001217, allocations: 50.58 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.08504, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02123/0.1063, allocations: 25.34 MB / 398.5 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02586/0.1322, allocations: 21.33 MB / 419.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005208/0.1374, allocations: 182.4 kB / 420 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004855/0.1424, allocations: 1.734 MB / 421.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01046/0.1529, allocations: 3.199 MB / 425 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005255/0.1581, allocations: 1.572 MB / 426.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01797/0.1761, allocations: 12.39 MB / 438.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001399/0.1776, allocations: 0.8632 MB / 439.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.1802, allocations: 1.924 MB / 441.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002475/0.1827, allocations: 2.057 MB / 443.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003517/0.1831, allocations: 136 kB / 443.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003988/0.1871, allocations: 1.21 MB / 445.1 MB, free: 9.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006231/0.1877, allocations: 0.6087 MB / 445.7 MB, free: 8.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003081/0.1908, allocations: 2.635 MB / 448.3 MB, free: 5.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2094/0.4002, allocations: 6.671 MB / 455 MB, free: 27.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4003, allocations: 1.266 kB / 455 MB, free: 27.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4003, allocations: 0.5 kB / 455 MB, free: 27.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000272/0.4006, allocations: 0 / 455 MB, free: 27.89 MB / 382.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.01124/0.4118, allocations: 6.72 MB / 461.7 MB, free: 24.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.4119, allocations: 10.48 kB / 461.8 MB, free: 24.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.4131, allocations: 0.753 MB / 462.5 MB, free: 23.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006804/0.4199, allocations: 4.624 MB / 467.1 MB, free: 22.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.708e-05/0.4199, allocations: 70.91 kB / 467.2 MB, free: 22.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002779/0.4202, allocations: 96.25 kB / 467.3 MB, free: 22.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.4226, allocations: 1.298 MB / 468.6 MB, free: 22.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.4226, allocations: 5.812 kB / 468.6 MB, free: 22.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.4227, allocations: 33.62 kB / 468.6 MB, free: 22.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.962e-05/0.4228, allocations: 40.72 kB / 468.7 MB, free: 22.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002543/0.4253, allocations: 1.485 MB / 470.2 MB, free: 22.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009989/0.4353, allocations: 5.64 MB / 475.8 MB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.4369, allocations: 0.985 MB / 476.8 MB, free: 21.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.4382, allocations: 1.228 MB / 478 MB, free: 20.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05708/0.4953, allocations: 59.94 MB / 0.5253 GB, free: 7.453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.4965, allocations: 0.556 MB / 0.5259 GB, free: 6.879 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 5.04e-06/0.4965, allocations: 0 / 0.5259 GB, free: 6.879 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.00487/0.5014, allocations: 1.891 MB / 0.5277 GB, free: 4.996 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.5015, allocations: 63.97 kB / 0.5278 GB, free: 4.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/0.5127, allocations: 5.628 MB / 0.5333 GB, free: 15.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002935/0.513, allocations: 41.69 kB / 0.5333 GB, free: 15.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002995/0.516, allocations: 2.93 MB / 0.5362 GB, free: 12.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006537/0.5167, allocations: 294.9 kB / 0.5365 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009203/0.5177, allocations: 426.5 kB / 0.5369 GB, free: 11.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.5178, allocations: 301.1 kB / 0.5372 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000982/0.5188, allocations: 407.8 kB / 0.5376 GB, free: 10.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.5202, allocations: 1.083 MB / 0.5386 GB, free: 9.523 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/0.5228, allocations: 1.615 MB / 0.5402 GB, free: 7.688 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.066e-05/0.5228, allocations: 8 kB / 0.5402 GB, free: 7.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004825/0.5276, allocations: 2.212 MB / 0.5424 GB, free: 5.602 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.5277, allocations: 20.25 kB / 0.5424 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002698/0.528, allocations: 160 kB / 0.5425 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.074e-05/0.528, allocations: 39.92 kB / 0.5426 GB, free: 5.387 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.5293, allocations: 364.6 kB / 0.5429 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.785e-05/0.5293, allocations: 45.55 kB / 0.543 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/0.5321, allocations: 186.2 kB / 0.5431 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/0.5324, allocations: 125.1 kB / 0.5433 GB, free: 4.719 MB / 446.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.001771/0.5342, allocations: 0.7196 MB / 0.544 GB, free: 4.016 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001959/0.5361, allocations: 0.7179 MB / 0.5447 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005263/0.5414, allocations: 2.165 MB / 0.5468 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.5414, allocations: 22.38 kB / 0.5468 GB, free: 1.125 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.5414, allocations: 0 / 0.5468 GB, free: 1.125 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.5415, allocations: 0 / 0.5468 GB, free: 1.125 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00848/0.5499, allocations: 3.628 MB / 0.5503 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002024/0.5502, allocations: 136 kB / 0.5505 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000749/0.5509, allocations: 160.5 kB / 0.5506 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.228e-05/0.551, allocations: 7.875 kB / 0.5506 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.5511, allocations: 63.98 kB / 0.5507 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.545e-06/0.5511, allocations: 4 kB / 0.5507 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.5511, allocations: 0 / 0.5507 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004587/0.5557, allocations: 2.161 MB / 0.5528 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/0.5581, allocations: 0.828 MB / 0.5536 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001334/0.5595, allocations: 12 kB / 0.5536 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/0.5618, allocations: 31.97 kB / 0.5537 GB, free: 10.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.5621, allocations: 96.48 kB / 0.5537 GB, free: 9.926 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/0.5623, allocations: 71.98 kB / 0.5538 GB, free: 9.855 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00703/0.5693, allocations: 3.633 MB / 0.5574 GB, free: 6.254 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5693, allocations: 3.281 kB / 0.5574 GB, free: 6.254 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003743/0.5731, allocations: 1.085 MB / 0.5584 GB, free: 5.168 MB / 462.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.002293/0.5754, allocations: 1.185 MB / 0.5596 GB, free: 4.207 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002838/0.5782, allocations: 1.427 MB / 0.561 GB, free: 2.805 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5783, allocations: 0 / 0.561 GB, free: 2.805 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.5795, allocations: 0.7727 MB / 0.5617 GB, free: 2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005382/0.5849, allocations: 0.9989 MB / 0.5627 GB, free: 1.004 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/0.5995, allocations: 8.119 MB / 0.5706 GB, free: 8.883 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002922/0.6025, allocations: 2.604 MB / 0.5732 GB, free: 6.254 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002374/0.6049, allocations: 0.6888 MB / 0.5738 GB, free: 5.562 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005925/0.6055, allocations: 287.4 kB / 0.5741 GB, free: 5.281 MB / 478.1 MB Notification: Performance of SimCode: time 1.132e-06/0.6055, allocations: 0 / 0.5741 GB, free: 5.281 MB / 478.1 MB Notification: Performance of Templates: time 0.1028/0.7083, allocations: 55.61 MB / 0.6284 GB, free: 13.86 MB / 0.5294 GB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)