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.001345/0.001345, allocations: 105.1 kB / 21.23 MB, free: 0.5039 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.001575/0.001575, allocations: 209.9 kB / 24.54 MB, free: 3.863 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.418/1.418, allocations: 230.6 MB / 258.3 MB, free: 8.074 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.001932/0.001932, allocations: 68.55 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2859, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02772/0.3136, allocations: 26.83 MB / 458.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0336/0.3472, allocations: 22.45 MB / 481.2 MB, free: 5.418 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006966/0.3542, allocations: 269.1 kB / 481.5 MB, free: 5.152 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006197/0.3604, allocations: 1.78 MB / 483.2 MB, free: 3.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.3747, allocations: 3.326 MB / 486.6 MB, free: 12 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007497/0.3822, allocations: 1.636 MB / 488.2 MB, free: 14.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02358/0.4058, allocations: 12.92 MB / 0.4894 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.4074, allocations: 0.5082 MB / 0.4899 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004487/0.4119, allocations: 2.189 MB / 0.492 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004257/0.4161, allocations: 2.103 MB / 0.4941 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007153/0.4169, allocations: 136 kB / 0.4942 GB, free: 12.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006178/0.423, allocations: 1.537 MB / 0.4957 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009422/0.424, allocations: 0.5932 MB / 0.4963 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004333/0.4283, allocations: 2.627 MB / 0.4988 GB, free: 7.648 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.4402, allocations: 6.663 MB / 0.5053 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.4402, allocations: 4 kB / 0.5053 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4402, allocations: 0 / 0.5053 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002175/0.4404, allocations: 0 / 0.5053 GB, free: 0.9492 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.01247/0.4529, allocations: 6.859 MB / 0.512 GB, free: 10 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.4529, allocations: 8.031 kB / 0.512 GB, free: 9.996 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002435/0.4532, allocations: 161.2 kB / 0.5122 GB, free: 9.828 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001464/0.4546, allocations: 0.7764 MB / 0.513 GB, free: 9.047 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008517/0.4631, allocations: 4.382 MB / 0.5172 GB, free: 4.543 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.739e-05/0.4632, allocations: 66 kB / 0.5173 GB, free: 4.477 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002537/0.4635, allocations: 107.8 kB / 0.5174 GB, free: 4.371 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002587/0.4661, allocations: 1.305 MB / 0.5187 GB, free: 3.051 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.4661, allocations: 0 / 0.5187 GB, free: 3.051 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.4662, allocations: 36 kB / 0.5187 GB, free: 3.016 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.902e-05/0.4662, allocations: 43.97 kB / 0.5188 GB, free: 2.973 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002733/0.469, allocations: 1.492 MB / 0.5202 GB, free: 1.477 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01139/0.4804, allocations: 5.554 MB / 0.5256 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.4821, allocations: 0.8757 MB / 0.5265 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/0.4839, allocations: 1.059 MB / 0.5275 GB, free: 9.906 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2984/0.7823, allocations: 27.16 MB / 0.5541 GB, free: 95.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009891/0.7832, allocations: 0.5672 MB / 0.5546 GB, free: 95.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 6.042e-06/0.7832, allocations: 2.344 kB / 0.5546 GB, free: 95.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003694/0.7869, allocations: 1.903 MB / 0.5565 GB, free: 93.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.787, allocations: 69.55 kB / 0.5565 GB, free: 93.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006576/0.7936, allocations: 5.588 MB / 0.562 GB, free: 88.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002283/0.7938, allocations: 41.7 kB / 0.562 GB, free: 88.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.7958, allocations: 2.965 MB / 0.5649 GB, free: 85.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003727/0.7961, allocations: 316 kB / 0.5652 GB, free: 85.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000497/0.7966, allocations: 419 kB / 0.5656 GB, free: 84.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.733e-05/0.7967, allocations: 301.1 kB / 0.5659 GB, free: 84.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007323/0.7974, allocations: 407.2 kB / 0.5663 GB, free: 83.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009641/0.7984, allocations: 1.091 MB / 0.5674 GB, free: 82.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.8001, allocations: 1.625 MB / 0.569 GB, free: 80.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.8001, allocations: 9.188 kB / 0.569 GB, free: 80.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003618/0.8038, allocations: 2.232 MB / 0.5711 GB, free: 78.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.8038, allocations: 18.16 kB / 0.5712 GB, free: 78.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001993/0.804, allocations: 164 kB / 0.5713 GB, free: 78.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.811e-05/0.804, allocations: 32 kB / 0.5713 GB, free: 78.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.8051, allocations: 357.8 kB / 0.5717 GB, free: 77.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.646e-05/0.8052, allocations: 51.8 kB / 0.5717 GB, free: 77.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003134/0.8083, allocations: 191.8 kB / 0.5719 GB, free: 77.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/0.8085, allocations: 123.8 kB / 0.572 GB, free: 77.54 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.001519/0.81, allocations: 0.7123 MB / 0.5727 GB, free: 76.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009995/0.811, allocations: 0.7492 MB / 0.5735 GB, free: 76.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003753/0.8148, allocations: 2.155 MB / 0.5756 GB, free: 73.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.8148, allocations: 4 kB / 0.5756 GB, free: 73.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.8148, allocations: 7.312 kB / 0.5756 GB, free: 73.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.8148, allocations: 3.984 kB / 0.5756 GB, free: 73.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005199/0.82, allocations: 3.584 MB / 0.5791 GB, free: 70.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001512/0.8202, allocations: 141.3 kB / 0.5792 GB, free: 70.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006749/0.8208, allocations: 155.8 kB / 0.5794 GB, free: 70.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.8209, allocations: 0 / 0.5794 GB, free: 70.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.88e-05/0.8209, allocations: 63.98 kB / 0.5794 GB, free: 69.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.8209, allocations: 4 kB / 0.5794 GB, free: 69.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8209, allocations: 0 / 0.5794 GB, free: 69.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002979/0.8239, allocations: 2.201 MB / 0.5816 GB, free: 67.74 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/0.8257, allocations: 0.7742 MB / 0.5823 GB, free: 66.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005435/0.8263, allocations: 16 kB / 0.5824 GB, free: 66.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.8273, allocations: 31.97 kB / 0.5824 GB, free: 66.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.8275, allocations: 100.5 kB / 0.5825 GB, free: 66.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.8276, allocations: 67.98 kB / 0.5825 GB, free: 66.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004577/0.8322, allocations: 3.612 MB / 0.5861 GB, free: 63.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8322, allocations: 4 kB / 0.5861 GB, free: 63.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003037/0.8352, allocations: 1.087 MB / 0.5871 GB, free: 62.15 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.004619/0.8398, allocations: 3.836 MB / 0.5909 GB, free: 58.35 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002414/0.8423, allocations: 1.37 MB / 0.5922 GB, free: 56.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.8423, allocations: 0 / 0.5922 GB, free: 56.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009873/0.8433, allocations: 0.732 MB / 0.5929 GB, free: 56.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00508/0.8483, allocations: 1.174 MB / 0.5941 GB, free: 54.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04481/0.8931, allocations: 30.57 MB / 0.6239 GB, free: 23.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/0.896, allocations: 2.592 MB / 0.6265 GB, free: 21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002364/0.8984, allocations: 0.6807 MB / 0.6271 GB, free: 20.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002248/0.9006, allocations: 2.389 MB / 0.6295 GB, free: 17.93 MB / 446.1 MB Notification: Performance of SimCode: time 2.745e-06/0.9006, allocations: 0 / 0.6295 GB, free: 17.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2333/1.134, allocations: 112.4 MB / 0.7392 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.25/28.38, allocations: 6.938 kB / 0.7392 GB, free: 2.125 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.2425769129768] 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.539322757162154 28.820336652 28.377192341 Calling exit ...