Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001748/0.001748, allocations: 113.4 kB / 18.78 MB, free: 3.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001671/0.001671, allocations: 219.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.443/1.443, allocations: 230.4 MB / 251.1 MB, free: 8.438 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 67.83 kB / 368.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2585, allocations: 53.32 MB / 422.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02794/0.2864, allocations: 26.81 MB / 449.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03354/0.3199, allocations: 22.42 MB / 471.5 MB, free: 6.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006208/0.3261, allocations: 178.5 kB / 471.7 MB, free: 6.133 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00575/0.3319, allocations: 1.784 MB / 473.4 MB, free: 4.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01243/0.3443, allocations: 3.317 MB / 476.8 MB, free: 1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007179/0.3515, allocations: 1.636 MB / 478.4 MB, free: 15.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02228/0.3738, allocations: 12.87 MB / 491.3 MB, free: 2.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001444/0.3752, allocations: 0.5078 MB / 491.8 MB, free: 1.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003714/0.3789, allocations: 2.103 MB / 493.9 MB, free: 15.78 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004139/0.3831, allocations: 2.111 MB / 496 MB, free: 13.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005655/0.3836, allocations: 136 kB / 496.1 MB, free: 13.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00529/0.3889, allocations: 1.541 MB / 497.7 MB, free: 11.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008091/0.3897, allocations: 0.5971 MB / 498.3 MB, free: 11.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003851/0.3936, allocations: 2.624 MB / 0.4892 GB, free: 8.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.4046, allocations: 6.671 MB / 0.4957 GB, free: 2.035 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4046, allocations: 0 / 0.4957 GB, free: 2.035 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4046, allocations: 0 / 0.4957 GB, free: 2.035 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001982/0.4048, allocations: 0 / 0.4957 GB, free: 2.035 MB / 414.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.01117/0.416, allocations: 6.934 MB / 0.5024 GB, free: 11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.416, allocations: 8.031 kB / 0.5024 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.4172, allocations: 0.7764 MB / 0.5032 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00793/0.4251, allocations: 4.667 MB / 0.5078 GB, free: 5.461 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.758e-05/0.4252, allocations: 66 kB / 0.5078 GB, free: 5.395 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002661/0.4254, allocations: 103.9 kB / 0.5079 GB, free: 5.293 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.4278, allocations: 1.297 MB / 0.5092 GB, free: 3.98 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.4279, allocations: 4 kB / 0.5092 GB, free: 3.977 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.428, allocations: 39.98 kB / 0.5092 GB, free: 3.938 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.312e-05/0.428, allocations: 35.98 kB / 0.5093 GB, free: 3.902 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00258/0.4306, allocations: 1.484 MB / 0.5107 GB, free: 2.414 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01094/0.4415, allocations: 5.625 MB / 0.5162 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.4433, allocations: 0.864 MB / 0.5171 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001648/0.4449, allocations: 1.063 MB / 0.5181 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2535/0.6984, allocations: 61.06 MB / 0.5777 GB, free: 86.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008739/0.6993, allocations: 0.5634 MB / 0.5783 GB, free: 86.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.176e-06/0.6993, allocations: 0.9375 kB / 0.5783 GB, free: 86.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002602/0.7019, allocations: 1.91 MB / 0.5801 GB, free: 85.17 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.7019, allocations: 67.62 kB / 0.5802 GB, free: 85.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004726/0.7066, allocations: 5.584 MB / 0.5857 GB, free: 79.56 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.661e-05/0.7067, allocations: 45.69 kB / 0.5857 GB, free: 79.51 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/0.7083, allocations: 2.962 MB / 0.5886 GB, free: 76.62 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/0.7085, allocations: 316 kB / 0.5889 GB, free: 76.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003815/0.7089, allocations: 423 kB / 0.5893 GB, free: 75.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.324e-05/0.7089, allocations: 305.1 kB / 0.5896 GB, free: 75.63 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007162/0.7096, allocations: 399 kB / 0.59 GB, free: 75.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008965/0.7105, allocations: 1.099 MB / 0.591 GB, free: 73.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001618/0.7121, allocations: 1.6 MB / 0.5926 GB, free: 71.97 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.7121, allocations: 11.62 kB / 0.5926 GB, free: 71.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002712/0.7148, allocations: 2.24 MB / 0.5948 GB, free: 69.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.7149, allocations: 16 kB / 0.5948 GB, free: 69.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/0.715, allocations: 166.5 kB / 0.595 GB, free: 69.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.298e-05/0.7151, allocations: 36 kB / 0.595 GB, free: 69.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.7161, allocations: 355.1 kB / 0.5953 GB, free: 69.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.626e-05/0.7161, allocations: 47.8 kB / 0.5954 GB, free: 69.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.7177, allocations: 198 kB / 0.5956 GB, free: 68.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.7179, allocations: 128 kB / 0.5957 GB, free: 68.86 MB / 462.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.001047/0.7189, allocations: 0.7048 MB / 0.5964 GB, free: 68.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/0.7194, allocations: 0.753 MB / 0.5971 GB, free: 67.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.7229, allocations: 2.155 MB / 0.5992 GB, free: 65.28 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.946e-06/0.7229, allocations: 11.94 kB / 0.5992 GB, free: 65.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.7229, allocations: 0 / 0.5992 GB, free: 65.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.7229, allocations: 3.984 kB / 0.5992 GB, free: 65.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/0.727, allocations: 3.613 MB / 0.6028 GB, free: 61.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001471/0.7271, allocations: 140 kB / 0.6029 GB, free: 61.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006897/0.7278, allocations: 155.8 kB / 0.6031 GB, free: 61.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.7278, allocations: 7.938 kB / 0.6031 GB, free: 61.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.292e-05/0.7279, allocations: 56 kB / 0.6031 GB, free: 61.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.7279, allocations: 12.05 kB / 0.6031 GB, free: 61.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7279, allocations: 0 / 0.6031 GB, free: 61.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.7304, allocations: 2.186 MB / 0.6053 GB, free: 59.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009674/0.7314, allocations: 0.8495 MB / 0.6061 GB, free: 58.17 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005173/0.7319, allocations: 20 kB / 0.6061 GB, free: 58.15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.733, allocations: 39.95 kB / 0.6061 GB, free: 58.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.7332, allocations: 96.48 kB / 0.6062 GB, free: 58.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.923e-05/0.7333, allocations: 64 kB / 0.6063 GB, free: 57.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003538/0.7369, allocations: 3.608 MB / 0.6098 GB, free: 54.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7369, allocations: 0 / 0.6098 GB, free: 54.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002051/0.7389, allocations: 1.086 MB / 0.6109 GB, free: 53.36 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.001358/0.7403, allocations: 1.189 MB / 0.612 GB, free: 52.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.7424, allocations: 1.366 MB / 0.6134 GB, free: 50.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.7424, allocations: 0 / 0.6134 GB, free: 50.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008887/0.7433, allocations: 0.7354 MB / 0.6141 GB, free: 50.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004365/0.7477, allocations: 1.205 MB / 0.6153 GB, free: 48.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009553/0.7572, allocations: 8.272 MB / 0.6234 GB, free: 40.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.7586, allocations: 2.595 MB / 0.6259 GB, free: 37.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002004/0.7606, allocations: 0.6884 MB / 0.6266 GB, free: 37.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003737/0.7609, allocations: 283.4 kB / 0.6268 GB, free: 36.94 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/0.7609, allocations: 3.938 kB / 0.6268 GB, free: 36.93 MB / 462.1 MB Notification: Performance of Templates: time 0.09328/0.8542, allocations: 56.18 MB / 0.6817 GB, free: 13.12 MB / 494.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480]