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.001257/0.001257, allocations: 105.1 kB / 21.22 MB, free: 0.5117 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.0014/0.0014, allocations: 213.7 kB / 24.54 MB, free: 3.875 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.444/1.444, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.002004/0.002004, allocations: 68.77 kB / 379.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2583, allocations: 53.36 MB / 432.8 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01794/0.2763, allocations: 13.55 MB / 446.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02007/0.2963, allocations: 15.66 MB / 462 MB, free: 9.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.2965, allocations: 0 / 462 MB, free: 9.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003582/0.2969, allocations: 83.47 kB / 462.1 MB, free: 9.188 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003617/0.2973, allocations: 115.3 kB / 462.2 MB, free: 9.074 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01646/0.3137, allocations: 5.996 MB / 468.2 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006232/0.3143, allocations: 338.6 kB / 468.5 MB, free: 2.754 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.382e-05/0.3144, allocations: 13.8 kB / 468.5 MB, free: 2.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005474/0.315, allocations: 235 kB / 468.7 MB, free: 2.508 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.3152, allocations: 115.6 kB / 468.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.3152, allocations: 16 kB / 468.9 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01418/0.3294, allocations: 6.782 MB / 475.6 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.3295, allocations: 43.89 kB / 475.7 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.3297, allocations: 107.5 kB / 475.8 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.34, allocations: 3.913 MB / 479.7 MB, free: 7.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.34, allocations: 4 kB / 479.7 MB, free: 7.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.34, allocations: 0 / 479.7 MB, free: 7.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.34, allocations: 0 / 479.7 MB, free: 7.516 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.002881/0.3429, allocations: 0.9389 MB / 480.6 MB, free: 6.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3429, allocations: 16.02 kB / 480.7 MB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.14e-05/0.343, allocations: 58.73 kB / 480.7 MB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.3444, allocations: 180.5 kB / 480.9 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003343/0.3447, allocations: 206.2 kB / 481.1 MB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.3448, allocations: 16.81 kB / 481.1 MB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.364e-05/0.3448, allocations: 27.94 kB / 481.1 MB, free: 6.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003271/0.3481, allocations: 0.9051 MB / 482 MB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.3481, allocations: 3.984 kB / 482.1 MB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.3482, allocations: 12 kB / 482.1 MB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.3482, allocations: 4 kB / 482.1 MB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003327/0.3515, allocations: 0.9656 MB / 483 MB, free: 4.105 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.001824/0.3533, allocations: 1.311 MB / 484.3 MB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002704/0.356, allocations: 0.7285 MB / 485.1 MB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003238/0.3563, allocations: 153.6 kB / 485.2 MB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06884/0.4252, allocations: 20.55 MB / 0.4939 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.781e-05/0.4252, allocations: 38.5 kB / 0.494 GB, free: 13.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.464e-06/0.4252, allocations: 0 / 0.494 GB, free: 13.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005357/0.4306, allocations: 1.356 MB / 0.4953 GB, free: 11.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.4306, allocations: 55.41 kB / 0.4953 GB, free: 11.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.4308, allocations: 121.7 kB / 0.4955 GB, free: 11.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.219e-05/0.4308, allocations: 37.7 kB / 0.4955 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.775e-05/0.4309, allocations: 120.8 kB / 0.4956 GB, free: 11.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.4311, allocations: 122.9 kB / 0.4957 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002771/0.4313, allocations: 165.6 kB / 0.4959 GB, free: 11.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.4315, allocations: 322.8 kB / 0.4962 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006608/0.4321, allocations: 343.6 kB / 0.4965 GB, free: 10.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007311/0.4329, allocations: 407.5 kB / 0.4969 GB, free: 10.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.4342, allocations: 0.7075 MB / 0.4976 GB, free: 9.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.4342, allocations: 0 / 0.4976 GB, free: 9.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001912/0.4362, allocations: 0.8758 MB / 0.4984 GB, free: 8.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.4362, allocations: 11.94 kB / 0.4985 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.4362, allocations: 0 / 0.4985 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.4362, allocations: 4 kB / 0.4985 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006976/0.4369, allocations: 175.8 kB / 0.4986 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.4369, allocations: 4.25 kB / 0.4986 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.4373, allocations: 35.84 kB / 0.4987 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.4374, allocations: 63.92 kB / 0.4987 GB, free: 8.148 MB / 414.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.0002354/0.4376, allocations: 141.7 kB / 0.4989 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.4377, allocations: 19.84 kB / 0.4989 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008965/0.4467, allocations: 8.513 MB / 0.5072 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-05/0.4467, allocations: 23.95 kB / 0.5072 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4467, allocations: 4.375 kB / 0.5072 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.4468, allocations: 11.97 kB / 0.5072 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003756/0.4505, allocations: 3.771 MB / 0.5109 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4505, allocations: 0 / 0.5109 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006307/0.4511, allocations: 111.7 kB / 0.511 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.4512, allocations: 7.938 kB / 0.511 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.4512, allocations: 8 kB / 0.511 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.4512, allocations: 4 kB / 0.511 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4512, allocations: 0 / 0.511 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002641/0.4538, allocations: 1.886 MB / 0.5129 GB, free: 9.348 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.529e-05/0.4539, allocations: 63.39 kB / 0.5129 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.551e-05/0.454, allocations: 11.94 kB / 0.513 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.4543, allocations: 20.05 kB / 0.513 GB, free: 9.254 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.26e-05/0.4544, allocations: 31.94 kB / 0.513 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.4544, allocations: 15.98 kB / 0.513 GB, free: 9.207 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.694e-05/0.4545, allocations: 87.28 kB / 0.5131 GB, free: 9.121 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4545, allocations: 0 / 0.5131 GB, free: 9.121 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002714/0.4572, allocations: 1.006 MB / 0.5141 GB, free: 8.113 MB / 430.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.00749/0.4647, allocations: 3.478 MB / 0.5175 GB, free: 4.605 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001803/0.4665, allocations: 0.8954 MB / 0.5184 GB, free: 3.711 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4665, allocations: 0.5 kB / 0.5184 GB, free: 3.711 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008046/0.4673, allocations: 0.5283 MB / 0.5189 GB, free: 3.184 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006358/0.4679, allocations: 87.31 kB / 0.519 GB, free: 3.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008375/0.4763, allocations: 4.708 MB / 0.5236 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/0.4768, allocations: 0.8536 MB / 0.5244 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00213/0.4789, allocations: 1.784 MB / 0.5261 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004887/0.4794, allocations: 219.3 kB / 0.5263 GB, free: 11.38 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4794, allocations: 0 / 0.5263 GB, free: 11.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2802/0.7596, allocations: 46.74 MB / 0.572 GB, free: 77.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.87, allocations: 10.61 kB / 0.572 GB, free: 77.65 MB / 446.1 MB " [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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.18128535617143] Failed to read output from testmodel.py, exit status != 0: ['time', 'medium.h', 'medium.p'] 11.971624307334423 11.980673999 11.638320885 Calling exit ...