Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 57.62 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08606/0.0872, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1548/0.242, allocations: 26.72 MB / 385.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02591/0.268, allocations: 22.38 MB / 408 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005008/0.273, allocations: 174.4 kB / 408.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004666/0.2777, allocations: 1.767 MB / 409.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01244/0.2902, allocations: 3.224 MB / 413.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005785/0.296, allocations: 1.622 MB / 414.8 MB, free: 236 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01928/0.3153, allocations: 12.82 MB / 427.6 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001633/0.317, allocations: 0.8669 MB / 428.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003434/0.3204, allocations: 2.061 MB / 430.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002769/0.3232, allocations: 2.107 MB / 432.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003083/0.3235, allocations: 136 kB / 432.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004519/0.328, allocations: 1.533 MB / 434.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006428/0.3287, allocations: 0.6009 MB / 434.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.3316, allocations: 2.624 MB / 437.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008024/0.3396, allocations: 6.638 MB / 444.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3396, allocations: 0 / 444.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3396, allocations: 0 / 444.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.584e-05/0.3397, allocations: 0 / 444.2 MB, free: 5.418 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01017/0.3499, allocations: 6.678 MB / 450.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.35, allocations: 8.031 kB / 450.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009054/0.3509, allocations: 0.7409 MB / 451.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006913/0.3578, allocations: 4.594 MB / 456.2 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.973e-05/0.3579, allocations: 66 kB / 456.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002316/0.3581, allocations: 95.91 kB / 456.3 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0022/0.3603, allocations: 1.309 MB / 457.6 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.3603, allocations: 0 / 457.6 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001104/0.3605, allocations: 35.98 kB / 457.7 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.385e-05/0.3605, allocations: 39.97 kB / 457.7 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/0.3629, allocations: 1.484 MB / 459.2 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009608/0.3726, allocations: 5.624 MB / 464.8 MB, free: 452 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.3743, allocations: 0.9906 MB / 465.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.3759, allocations: 1.22 MB / 467 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05893/0.4348, allocations: 61.07 MB / 0.5157 GB, free: 8.684 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000977/0.4359, allocations: 0.5482 MB / 0.5163 GB, free: 8.121 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.025e-06/0.4359, allocations: 0 / 0.5163 GB, free: 8.121 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003355/0.4392, allocations: 1.879 MB / 0.5181 GB, free: 6.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.4393, allocations: 67.97 kB / 0.5182 GB, free: 6.152 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006972/0.4463, allocations: 5.59 MB / 0.5236 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.4465, allocations: 37.7 kB / 0.5237 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1709/0.6174, allocations: 2.938 MB / 0.5265 GB, free: 150.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004379/0.6178, allocations: 297.7 kB / 0.5268 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006115/0.6185, allocations: 422.6 kB / 0.5272 GB, free: 150 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.303e-05/0.6185, allocations: 302.8 kB / 0.5275 GB, free: 149.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009003/0.6194, allocations: 402.6 kB / 0.5279 GB, free: 149.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.6205, allocations: 1.094 MB / 0.5289 GB, free: 148.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/0.6226, allocations: 1.613 MB / 0.5305 GB, free: 147.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-05/0.6226, allocations: 6.781 kB / 0.5305 GB, free: 147.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004161/0.6268, allocations: 2.203 MB / 0.5327 GB, free: 146.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.227e-05/0.6268, allocations: 16.16 kB / 0.5327 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002312/0.6271, allocations: 164.6 kB / 0.5329 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.285e-05/0.6271, allocations: 37.3 kB / 0.5329 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.6283, allocations: 359.2 kB / 0.5332 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-05/0.6284, allocations: 43.56 kB / 0.5333 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/0.6306, allocations: 191.4 kB / 0.5335 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.6308, allocations: 127.2 kB / 0.5336 GB, free: 146.3 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.001358/0.6322, allocations: 0.7117 MB / 0.5343 GB, free: 145.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008742/0.6331, allocations: 0.7112 MB / 0.535 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00433/0.6374, allocations: 2.159 MB / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.6375, allocations: 15.73 kB / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.6375, allocations: 0 / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.6375, allocations: 4.578 kB / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006388/0.6439, allocations: 3.6 MB / 0.5406 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001815/0.6441, allocations: 142.2 kB / 0.5407 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007749/0.6449, allocations: 159.1 kB / 0.5409 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.6449, allocations: 3.531 kB / 0.5409 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.645, allocations: 61.23 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.217e-06/0.645, allocations: 3.969 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.645, allocations: 4.969 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003504/0.6486, allocations: 2.145 MB / 0.5431 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/0.6502, allocations: 0.8224 MB / 0.5439 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005419/0.6508, allocations: 17.73 kB / 0.5439 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.6519, allocations: 36.83 kB / 0.5439 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002274/0.6522, allocations: 97.84 kB / 0.544 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.6523, allocations: 71.3 kB / 0.5441 GB, free: 141.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004826/0.6571, allocations: 3.608 MB / 0.5476 GB, free: 140.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6571, allocations: 0 / 0.5476 GB, free: 140.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002159/0.6593, allocations: 1.079 MB / 0.5487 GB, free: 140.3 MB / 446.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.001541/0.6609, allocations: 1.178 MB / 0.5498 GB, free: 140 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002358/0.6632, allocations: 1.431 MB / 0.5512 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.6632, allocations: 0 / 0.5512 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009403/0.6642, allocations: 0.7694 MB / 0.552 GB, free: 139 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004404/0.6686, allocations: 1.212 MB / 0.5531 GB, free: 138.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00876/0.6774, allocations: 8.066 MB / 0.561 GB, free: 131.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/0.6787, allocations: 2.593 MB / 0.5635 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001918/0.6806, allocations: 0.6846 MB / 0.5642 GB, free: 128.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003439/0.681, allocations: 287.4 kB / 0.5645 GB, free: 127.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.681, allocations: 0 / 0.5645 GB, free: 127.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07708/0.7581, allocations: 55.32 MB / 0.6185 GB, free: 72.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)