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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001372/0.001372, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.001995/0.001995, allocations: 68.77 kB / 378.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2752, allocations: 53.37 MB / 431.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02866/0.3039, allocations: 26.82 MB / 458.7 MB, free: 12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03337/0.3372, allocations: 22.44 MB / 481.2 MB, free: 5.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006969/0.3442, allocations: 265.1 kB / 481.4 MB, free: 5.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006138/0.3503, allocations: 1.792 MB / 483.2 MB, free: 3.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01463/0.365, allocations: 3.326 MB / 486.6 MB, free: 56 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006927/0.3719, allocations: 1.636 MB / 488.2 MB, free: 14.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0235/0.3954, allocations: 12.92 MB / 0.4894 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001975/0.3974, allocations: 0.5004 MB / 0.4898 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004676/0.4021, allocations: 2.193 MB / 0.492 GB, free: 14.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004479/0.4065, allocations: 2.103 MB / 0.494 GB, free: 12.61 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00065/0.4072, allocations: 132 kB / 0.4942 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005971/0.4132, allocations: 1.541 MB / 0.4957 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.4145, allocations: 0.601 MB / 0.4963 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004726/0.4192, allocations: 2.62 MB / 0.4988 GB, free: 7.695 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01274/0.4319, allocations: 6.671 MB / 0.5053 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4319, allocations: 0 / 0.5053 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4319, allocations: 0 / 0.5053 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002405/0.4322, allocations: 0 / 0.5053 GB, free: 0.9922 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.01181/0.444, allocations: 6.859 MB / 0.512 GB, free: 10.05 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/0.444, allocations: 11.97 kB / 0.512 GB, free: 10.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000251/0.4443, allocations: 161.2 kB / 0.5122 GB, free: 9.867 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001326/0.4456, allocations: 0.7764 MB / 0.513 GB, free: 9.086 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008562/0.4542, allocations: 4.383 MB / 0.5172 GB, free: 4.582 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.444e-05/0.4543, allocations: 66 kB / 0.5173 GB, free: 4.516 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002785/0.4545, allocations: 107.8 kB / 0.5174 GB, free: 4.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002438/0.457, allocations: 1.305 MB / 0.5187 GB, free: 3.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.457, allocations: 0 / 0.5187 GB, free: 3.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.4571, allocations: 36 kB / 0.5187 GB, free: 3.055 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.225e-05/0.4571, allocations: 39.97 kB / 0.5188 GB, free: 3.016 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002651/0.4598, allocations: 1.488 MB / 0.5202 GB, free: 1.523 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01104/0.4708, allocations: 5.562 MB / 0.5256 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001827/0.4727, allocations: 0.868 MB / 0.5265 GB, free: 11.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/0.4743, allocations: 1.067 MB / 0.5275 GB, free: 9.945 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.263/0.7373, allocations: 27.16 MB / 0.554 GB, free: 95.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008712/0.7382, allocations: 0.5586 MB / 0.5546 GB, free: 95.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.347e-06/0.7382, allocations: 0.9375 kB / 0.5546 GB, free: 95.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002784/0.741, allocations: 1.91 MB / 0.5565 GB, free: 93.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.741, allocations: 66.31 kB / 0.5565 GB, free: 93.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005218/0.7462, allocations: 5.594 MB / 0.562 GB, free: 88.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.7463, allocations: 41.7 kB / 0.562 GB, free: 88.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00161/0.748, allocations: 2.963 MB / 0.5649 GB, free: 85.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.7482, allocations: 312 kB / 0.5652 GB, free: 85.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004014/0.7486, allocations: 421.7 kB / 0.5656 GB, free: 84.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.387e-05/0.7486, allocations: 305.1 kB / 0.5659 GB, free: 84.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007195/0.7494, allocations: 405.7 kB / 0.5663 GB, free: 83.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008795/0.7502, allocations: 1.095 MB / 0.5674 GB, free: 82.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001662/0.7519, allocations: 1.615 MB / 0.5689 GB, free: 80.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.7519, allocations: 4 kB / 0.5689 GB, free: 80.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00292/0.7548, allocations: 2.241 MB / 0.5711 GB, free: 78.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.7548, allocations: 19.98 kB / 0.5712 GB, free: 78.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001804/0.755, allocations: 163.6 kB / 0.5713 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.751e-05/0.7551, allocations: 32 kB / 0.5713 GB, free: 78.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.7561, allocations: 355.4 kB / 0.5717 GB, free: 77.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.787e-05/0.7561, allocations: 47.84 kB / 0.5717 GB, free: 77.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.7578, allocations: 197.5 kB / 0.5719 GB, free: 77.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.7579, allocations: 124 kB / 0.572 GB, free: 77.6 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.001102/0.759, allocations: 0.7137 MB / 0.5727 GB, free: 76.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004915/0.7595, allocations: 0.7531 MB / 0.5735 GB, free: 76.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003551/0.7631, allocations: 2.155 MB / 0.5756 GB, free: 74.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.7631, allocations: 8 kB / 0.5756 GB, free: 74.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.7631, allocations: 0 / 0.5756 GB, free: 74.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.7631, allocations: 3.984 kB / 0.5756 GB, free: 74.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00445/0.7675, allocations: 3.582 MB / 0.5791 GB, free: 70.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001488/0.7677, allocations: 140 kB / 0.5792 GB, free: 70.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006372/0.7683, allocations: 151.8 kB / 0.5794 GB, free: 70.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.7683, allocations: 4 kB / 0.5794 GB, free: 70.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-05/0.7684, allocations: 71.42 kB / 0.5794 GB, free: 70.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.7684, allocations: 4 kB / 0.5794 GB, free: 70.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.7684, allocations: 0 / 0.5794 GB, free: 70.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.7709, allocations: 2.197 MB / 0.5816 GB, free: 67.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.7721, allocations: 0.7703 MB / 0.5823 GB, free: 67.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005124/0.7726, allocations: 19.98 kB / 0.5823 GB, free: 66.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.7736, allocations: 39.48 kB / 0.5824 GB, free: 66.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.7738, allocations: 104.5 kB / 0.5825 GB, free: 66.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.7739, allocations: 64 kB / 0.5825 GB, free: 66.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003843/0.7777, allocations: 3.608 MB / 0.5861 GB, free: 63.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7777, allocations: 0 / 0.5861 GB, free: 63.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002205/0.7799, allocations: 1.086 MB / 0.5871 GB, free: 62.2 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.004072/0.784, allocations: 3.843 MB / 0.5909 GB, free: 58.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002012/0.786, allocations: 1.37 MB / 0.5922 GB, free: 56.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.786, allocations: 0 / 0.5922 GB, free: 56.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008825/0.7869, allocations: 0.7361 MB / 0.5929 GB, free: 56.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003888/0.7908, allocations: 1.169 MB / 0.5941 GB, free: 55.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03705/0.8278, allocations: 30.56 MB / 0.6239 GB, free: 23.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/0.8292, allocations: 2.592 MB / 0.6265 GB, free: 21.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001827/0.831, allocations: 0.6885 MB / 0.6271 GB, free: 20.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.8326, allocations: 2.393 MB / 0.6295 GB, free: 17.96 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.8326, allocations: 0 / 0.6295 GB, free: 17.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2123/1.045, allocations: 112.4 MB / 0.7392 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.91/27.95, allocations: 0 / 0.7392 GB, free: 2.156 MB / 0.5294 GB " [Timeout remaining time 632] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 30.76348037784919] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'mp3.S.v', 'mp4.S.v', 'v.p.v'] 28.103513033594936 28.35778643 27.92275924 Calling exit ...