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.00157/0.00157, 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.001798/0.001798, 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.363/1.363, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 64.14 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09936, 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.1992/0.2986, allocations: 26.72 MB / 385.6 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02837/0.327, allocations: 22.38 MB / 408 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005456/0.3325, allocations: 174.5 kB / 408.2 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004898/0.3375, allocations: 1.772 MB / 409.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01325/0.3507, allocations: 3.216 MB / 413.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005676/0.3564, allocations: 1.626 MB / 414.8 MB, free: 240 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02012/0.3766, allocations: 12.83 MB / 427.6 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.3782, allocations: 0.8712 MB / 428.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003371/0.3816, allocations: 2.061 MB / 430.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003115/0.3847, allocations: 2.1 MB / 432.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003782/0.3851, allocations: 136 kB / 432.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004603/0.3897, allocations: 1.533 MB / 434.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006188/0.3904, allocations: 0.6126 MB / 434.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002762/0.3931, allocations: 2.612 MB / 437.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007551/0.4007, allocations: 6.641 MB / 444.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4007, allocations: 0 / 444.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4007, allocations: 0 / 444.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001314/0.4009, allocations: 0 / 444.2 MB, free: 5.422 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.00939/0.4103, allocations: 6.67 MB / 450.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.4103, allocations: 11.97 kB / 450.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007723/0.4111, allocations: 0.741 MB / 451.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00653/0.4176, allocations: 4.586 MB / 456.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.908e-05/0.4177, allocations: 66 kB / 456.2 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.4179, allocations: 115.8 kB / 456.3 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.4201, allocations: 1.301 MB / 457.6 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.4201, allocations: 0 / 457.6 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.4202, allocations: 36 kB / 457.7 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/0.4203, allocations: 39.97 kB / 457.7 MB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/0.4226, allocations: 1.484 MB / 459.2 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008969/0.4316, allocations: 5.624 MB / 464.8 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.4333, allocations: 0.9789 MB / 465.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.4349, allocations: 1.231 MB / 467 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07419/0.5091, allocations: 61.05 MB / 0.5157 GB, free: 8.695 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001783/0.5109, allocations: 0.5598 MB / 0.5163 GB, free: 8.121 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 5.861e-06/0.5109, allocations: 0 / 0.5163 GB, free: 8.121 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.006511/0.5175, allocations: 1.875 MB / 0.5181 GB, free: 6.234 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/0.5176, allocations: 59.97 kB / 0.5182 GB, free: 6.164 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01364/0.5312, allocations: 5.59 MB / 0.5236 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002571/0.5315, allocations: 41.7 kB / 0.5236 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2245/0.756, allocations: 2.943 MB / 0.5265 GB, free: 150.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005763/0.7567, allocations: 298.5 kB / 0.5268 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001018/0.7577, allocations: 418.3 kB / 0.5272 GB, free: 150 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.264e-05/0.7578, allocations: 302.1 kB / 0.5275 GB, free: 149.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.7588, allocations: 401.7 kB / 0.5279 GB, free: 149.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.7601, allocations: 1.09 MB / 0.5289 GB, free: 148.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002069/0.7621, allocations: 1.613 MB / 0.5305 GB, free: 147.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.656e-05/0.7622, allocations: 10.42 kB / 0.5305 GB, free: 147.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00356/0.7657, allocations: 2.207 MB / 0.5327 GB, free: 146.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.7658, allocations: 16.28 kB / 0.5327 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002055/0.766, allocations: 161.9 kB / 0.5329 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.558e-05/0.7661, allocations: 36.56 kB / 0.5329 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.7672, allocations: 362.9 kB / 0.5332 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.919e-05/0.7673, allocations: 45.72 kB / 0.5333 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.7691, allocations: 186.4 kB / 0.5335 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/0.7693, allocations: 124.4 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.001155/0.7704, allocations: 0.7154 MB / 0.5343 GB, free: 145.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007723/0.7712, allocations: 0.7141 MB / 0.535 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004081/0.7753, allocations: 2.16 MB / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.7753, allocations: 14.81 kB / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7753, allocations: 1.062 kB / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.7753, allocations: 3.469 kB / 0.5371 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005545/0.7809, allocations: 3.596 MB / 0.5406 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001702/0.7811, allocations: 139.1 kB / 0.5407 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007189/0.7818, allocations: 155 kB / 0.5409 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-06/0.7818, allocations: 3.625 kB / 0.5409 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.349e-05/0.7819, allocations: 61.88 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.7819, allocations: 2.312 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.782, allocations: 5.969 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.7851, allocations: 2.148 MB / 0.5431 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/0.7868, allocations: 0.8215 MB / 0.5439 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005378/0.7873, allocations: 13.69 kB / 0.5439 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.7884, allocations: 41.19 kB / 0.5439 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.7886, allocations: 101.3 kB / 0.544 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.7888, allocations: 70.53 kB / 0.5441 GB, free: 141.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005515/0.7943, allocations: 3.606 MB / 0.5476 GB, free: 140.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7943, allocations: 0 / 0.5476 GB, free: 140.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002578/0.7969, allocations: 1.08 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.001456/0.7984, allocations: 1.181 MB / 0.5498 GB, free: 140 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002213/0.8006, allocations: 1.429 MB / 0.5512 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.8006, allocations: 0 / 0.5512 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008961/0.8015, allocations: 0.7746 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.004417/0.8059, allocations: 1.203 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.008389/0.8144, allocations: 8.073 MB / 0.561 GB, free: 131.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.8156, allocations: 2.598 MB / 0.5636 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001795/0.8174, 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.0003269/0.8178, allocations: 283.4 kB / 0.5645 GB, free: 127.9 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.8178, allocations: 0 / 0.5645 GB, free: 127.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07574/0.8935, allocations: 55.31 MB / 0.6185 GB, free: 72.81 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 cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)