Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.001873/0.001873, allocations: 120.2 kB / 18.5 MB, free: 4.578 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.00236/0.00236, allocations: 205 kB / 21.45 MB, free: 1.629 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.427/1.427, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",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.001915/0.001915, allocations: 67.84 kB / 374.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09952, allocations: 53.33 MB / 427.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2065/0.306, allocations: 13.49 MB / 441.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01821/0.3242, allocations: 15.61 MB / 456.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.3244, allocations: 2.438 kB / 456.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003968/0.3248, allocations: 79.25 kB / 457 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004099/0.3252, allocations: 111.2 kB / 457.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02016/0.3454, allocations: 5.976 MB / 463.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005681/0.3459, allocations: 338.9 kB / 463.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.268e-05/0.346, allocations: 7.188 kB / 463.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004932/0.3465, allocations: 248.4 kB / 463.7 MB, free: 5.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.3467, allocations: 112.9 kB / 463.8 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.3467, allocations: 13.75 kB / 463.8 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01443/0.3611, allocations: 6.774 MB / 470.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.3612, allocations: 45.02 kB / 470.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.3614, allocations: 108.9 kB / 470.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.3724, allocations: 3.917 MB / 474.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3724, allocations: 1.031 kB / 474.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3724, allocations: 0 / 474.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.3724, allocations: 0 / 474.6 MB, free: 15.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.003684/0.3761, allocations: 1.03 MB / 475.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3761, allocations: 10.94 kB / 475.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.632e-05/0.3762, allocations: 51.77 kB / 475.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/0.3776, allocations: 184.1 kB / 475.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.3779, allocations: 260.8 kB / 476.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.3779, allocations: 13.98 kB / 476.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.859e-05/0.378, allocations: 25.44 kB / 476.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003083/0.3811, allocations: 0.9037 MB / 477.1 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.3811, allocations: 3.938 kB / 477.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.3811, allocations: 11.08 kB / 477.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.3811, allocations: 5.594 kB / 477.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003232/0.3843, allocations: 0.9673 MB / 478.1 MB, free: 13.16 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3861, allocations: 1.345 MB / 479.4 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.3886, allocations: 0.7283 MB / 480.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.3889, allocations: 151.7 kB / 480.3 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08507/0.474, allocations: 42.19 MB / 0.5103 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.474, allocations: 34.5 kB / 0.5103 GB, free: 11.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 3.456e-06/0.474, allocations: 0.5625 kB / 0.5103 GB, free: 11.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005248/0.4793, allocations: 1.361 MB / 0.5116 GB, free: 10.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.4793, allocations: 59.41 kB / 0.5117 GB, free: 10.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.4794, allocations: 117.8 kB / 0.5118 GB, free: 10.28 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.107e-05/0.4795, allocations: 33.7 kB / 0.5118 GB, free: 10.24 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.679e-05/0.4796, allocations: 120.8 kB / 0.5119 GB, free: 10.12 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.4797, allocations: 126.9 kB / 0.5121 GB, free: 9.996 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003006/0.48, allocations: 157.6 kB / 0.5122 GB, free: 9.836 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4802, allocations: 330.8 kB / 0.5125 GB, free: 9.504 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000642/0.4808, allocations: 339.6 kB / 0.5129 GB, free: 9.172 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007496/0.4816, allocations: 407.3 kB / 0.5132 GB, free: 8.746 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.4829, allocations: 0.7142 MB / 0.5139 GB, free: 8.004 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.4829, allocations: 4 kB / 0.5139 GB, free: 8 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001911/0.4848, allocations: 0.8683 MB / 0.5148 GB, free: 7.125 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.4849, allocations: 11.94 kB / 0.5148 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4849, allocations: 1.812 kB / 0.5148 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.4849, allocations: 4.25 kB / 0.5148 GB, free: 7.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006807/0.4856, allocations: 179.8 kB / 0.515 GB, free: 6.934 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.4856, allocations: 7.938 kB / 0.515 GB, free: 6.926 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.4859, allocations: 35.77 kB / 0.515 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.4861, allocations: 63.94 kB / 0.5151 GB, free: 6.828 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000269/0.4863, allocations: 142.3 kB / 0.5152 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.4865, allocations: 19.84 kB / 0.5152 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008123/0.4946, allocations: 7.974 MB / 0.523 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.87e-05/0.4946, allocations: 31.89 kB / 0.5231 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.4947, allocations: 0 / 0.5231 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.4947, allocations: 3.984 kB / 0.5231 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003456/0.4981, allocations: 3.596 MB / 0.5266 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.4981, allocations: 3.984 kB / 0.5266 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006466/0.4988, allocations: 111.8 kB / 0.5267 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/0.4988, allocations: 3.938 kB / 0.5267 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.229e-05/0.4988, allocations: 16.86 kB / 0.5267 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.4988, allocations: 4 kB / 0.5267 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4988, allocations: 0 / 0.5267 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00257/0.5014, allocations: 1.835 MB / 0.5285 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.5015, allocations: 148.5 kB / 0.5286 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.393e-05/0.5016, allocations: 11.94 kB / 0.5286 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002834/0.5019, allocations: 12.62 kB / 0.5287 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.502, allocations: 27.95 kB / 0.5287 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.18e-05/0.502, allocations: 19.98 kB / 0.5287 GB, free: 8.551 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.507e-05/0.5021, allocations: 91.27 kB / 0.5288 GB, free: 8.461 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5021, allocations: 0 / 0.5288 GB, free: 8.461 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00362/0.5057, allocations: 1.002 MB / 0.5298 GB, free: 7.457 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * 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 Backend phase and start with SimCode phase: time 0.008579/0.5143, allocations: 3.441 MB / 0.5331 GB, free: 4.004 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.516, allocations: 0.8848 MB / 0.534 GB, free: 3.121 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.516, allocations: 0 / 0.534 GB, free: 3.121 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007735/0.5168, allocations: 0.5127 MB / 0.5345 GB, free: 2.609 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006761/0.5175, allocations: 87.88 kB / 0.5346 GB, free: 2.527 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009359/0.5268, allocations: 4.681 MB / 0.5392 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.5273, allocations: 0.8497 MB / 0.54 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002077/0.5294, allocations: 1.788 MB / 0.5417 GB, free: 11.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005147/0.5299, allocations: 215.3 kB / 0.5419 GB, free: 10.84 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5299, allocations: 0 / 0.5419 GB, free: 10.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08789/0.6178, allocations: 45.78 MB / 0.5866 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.83, allocations: 9.516 kB / 0.5866 GB, free: 13.14 MB / 0.4981 GB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.272406999953091] Failed to read output from testmodel.py, exit status != 0: ['time', 'medium.h', 'medium.p'] 11.92839035205543 11.952385441 11.575602993 Calling exit ...