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.001799/0.001799, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.002892/0.002892, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.58/1.58, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.002169/0.002169, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1137, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2503/0.364, allocations: 26.81 MB / 453.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03595/0.4, allocations: 22.42 MB / 476.2 MB, free: 9.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008002/0.408, allocations: 268.5 kB / 476.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007052/0.415, allocations: 1.788 MB / 478.3 MB, free: 8.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01623/0.4313, allocations: 3.249 MB / 481.5 MB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008565/0.4398, allocations: 1.631 MB / 483.2 MB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02608/0.4659, allocations: 12.87 MB / 496 MB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.4677, allocations: 0.5193 MB / 496.6 MB, free: 11.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005086/0.4728, allocations: 2.182 MB / 498.7 MB, free: 8.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004586/0.4774, allocations: 2.107 MB / 0.4891 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005779/0.478, allocations: 136 kB / 0.4892 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007409/0.4854, allocations: 1.533 MB / 0.4907 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001036/0.4864, allocations: 0.601 MB / 0.4913 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005542/0.492, allocations: 2.62 MB / 0.4939 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01506/0.507, allocations: 6.663 MB / 0.5004 GB, free: 11.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.5071, allocations: 0 / 0.5004 GB, free: 11.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5071, allocations: 0 / 0.5004 GB, free: 11.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002668/0.5073, allocations: 4 kB / 0.5004 GB, free: 11.23 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.01321/0.5205, allocations: 6.934 MB / 0.5072 GB, free: 4.195 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.5206, allocations: 8.031 kB / 0.5072 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002692/0.5208, allocations: 165.2 kB / 0.5073 GB, free: 4.016 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001429/0.5223, allocations: 0.7764 MB / 0.5081 GB, free: 3.234 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008497/0.5308, allocations: 4.659 MB / 0.5126 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.316e-05/0.5308, allocations: 66 kB / 0.5127 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002901/0.5311, allocations: 107.8 kB / 0.5128 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002689/0.5338, allocations: 1.297 MB / 0.5141 GB, free: 13.01 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.5338, allocations: 4 kB / 0.5141 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001321/0.534, allocations: 36 kB / 0.5141 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.544e-05/0.534, allocations: 39.97 kB / 0.5141 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002836/0.5369, allocations: 1.48 MB / 0.5156 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01236/0.5492, allocations: 5.627 MB / 0.5211 GB, free: 5.727 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.5512, allocations: 0.864 MB / 0.5219 GB, free: 4.852 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/0.553, allocations: 1.055 MB / 0.523 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06991/0.6229, allocations: 61.07 MB / 0.5826 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.6241, allocations: 0.5521 MB / 0.5831 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=85): time 3.957e-06/0.6241, allocations: 4 kB / 0.5831 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85): time 0.004542/0.6287, allocations: 1.914 MB / 0.585 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.6288, allocations: 67.95 kB / 0.5851 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009552/0.6383, allocations: 5.586 MB / 0.5905 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002312/0.6386, allocations: 37.7 kB / 0.5906 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003249/0.6418, allocations: 2.965 MB / 0.5935 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006659/0.6425, allocations: 317.3 kB / 0.5938 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007121/0.6432, allocations: 427 kB / 0.5942 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.6433, allocations: 309.1 kB / 0.5945 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000999/0.6443, allocations: 399.8 kB / 0.5948 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.646, allocations: 1.091 MB / 0.5959 GB, free: 256 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002721/0.6487, allocations: 1.615 MB / 0.5975 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.667e-05/0.6487, allocations: 7.938 kB / 0.5975 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005045/0.6538, allocations: 2.239 MB / 0.5997 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.6538, allocations: 16 kB / 0.5997 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002525/0.6541, allocations: 167.9 kB / 0.5999 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.547e-05/0.6541, allocations: 32 kB / 0.5999 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.6555, allocations: 355.4 kB / 0.6002 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.405e-05/0.6555, allocations: 51.92 kB / 0.6003 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/0.6581, allocations: 191.5 kB / 0.6005 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002438/0.6583, allocations: 124 kB / 0.6006 GB, free: 11.14 MB / 0.5137 GB 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.001815/0.6601, allocations: 0.7081 MB / 0.6013 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001575/0.6617, allocations: 0.7492 MB / 0.602 GB, free: 9.664 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005921/0.6676, allocations: 2.159 MB / 0.6041 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.6676, allocations: 8 kB / 0.6041 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.6676, allocations: 0 / 0.6041 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.6676, allocations: 7.984 kB / 0.6041 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007896/0.6755, allocations: 3.617 MB / 0.6077 GB, free: 3.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002374/0.6758, allocations: 136 kB / 0.6078 GB, free: 3.664 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008286/0.6766, allocations: 151.8 kB / 0.6079 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.6766, allocations: 4 kB / 0.6079 GB, free: 3.512 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.6767, allocations: 63.98 kB / 0.608 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.814e-06/0.6767, allocations: 4 kB / 0.608 GB, free: 3.445 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6767, allocations: 4.031 kB / 0.608 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004827/0.6816, allocations: 2.189 MB / 0.6101 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002212/0.6838, allocations: 0.8553 MB / 0.611 GB, free: 356 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000974/0.6848, allocations: 16 kB / 0.611 GB, free: 340 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.686, allocations: 31.97 kB / 0.611 GB, free: 308 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/0.6862, allocations: 100.6 kB / 0.6111 GB, free: 208 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/0.6864, allocations: 75.97 kB / 0.6112 GB, free: 132 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.007398/0.6938, allocations: 3.604 MB / 0.6147 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6938, allocations: 0 / 0.6147 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003587/0.6974, allocations: 1.085 MB / 0.6158 GB, free: 11.47 MB / 0.5294 GB 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.007083/0.7044, allocations: 3.852 MB / 0.6195 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002886/0.7073, allocations: 1.365 MB / 0.6209 GB, free: 6.172 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.7073, allocations: 0 / 0.6209 GB, free: 6.172 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.7087, allocations: 0.7365 MB / 0.6216 GB, free: 5.387 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006373/0.715, allocations: 1.173 MB / 0.6227 GB, free: 4.219 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2993/1.014, allocations: 30.56 MB / 0.6526 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002912/1.017, allocations: 2.593 MB / 0.6551 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002499/1.02, allocations: 0.685 MB / 0.6558 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002531/1.022, allocations: 2.397 MB / 0.6581 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of SimCode: time 2.415e-06/1.022, allocations: 0 / 0.6581 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1741/1.196, allocations: 111.4 MB / 0.7669 GB, free: 66.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.76/28.96, allocations: 14.12 kB / 0.767 GB, free: 66.36 MB / 0.5294 GB " [Timeout remaining time 631] (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: 31.787652373779565] 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'] 29.11268547270447 29.123020777 28.613242472 Calling exit ...