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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001513, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.408/1.408, allocations: 227.7 MB / 247.2 MB, free: 10.22 MB / 206.1 MB 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.001898/0.001898, allocations: 71.88 kB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2558, allocations: 50.54 MB / 411.4 MB, free: 428 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01609/0.272, allocations: 13.44 MB / 424.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01813/0.2901, allocations: 15.55 MB / 440.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.2903, allocations: 4 kB / 440.4 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003422/0.2907, allocations: 95.47 kB / 440.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.2911, allocations: 107.2 kB / 440.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01575/0.3068, allocations: 5.978 MB / 446.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005589/0.3074, allocations: 346.5 kB / 446.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.905e-05/0.3075, allocations: 21.66 kB / 446.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005176/0.308, allocations: 219.1 kB / 447.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.3082, allocations: 111.5 kB / 447.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.3082, allocations: 16 kB / 447.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01291/0.3211, allocations: 6.763 MB / 454 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.742e-05/0.3213, allocations: 39.84 kB / 454.1 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.3215, allocations: 107.6 kB / 454.2 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008948/0.3304, allocations: 3.921 MB / 458.1 MB, free: 1.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.3305, allocations: 4 kB / 458.1 MB, free: 1.605 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3305, allocations: 0 / 458.1 MB, free: 1.605 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.3305, allocations: 0 / 458.1 MB, free: 1.605 MB / 366.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.002805/0.3333, allocations: 1.018 MB / 459.1 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3334, allocations: 8.031 kB / 459.1 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.635e-05/0.3335, allocations: 66.66 kB / 459.2 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001373/0.3348, allocations: 180.6 kB / 459.4 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.3352, allocations: 252.2 kB / 459.6 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.3352, allocations: 16.81 kB / 459.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.3353, allocations: 35.86 kB / 459.7 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002963/0.3383, allocations: 0.9011 MB / 460.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.3383, allocations: 8 kB / 460.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.3383, allocations: 4 kB / 460.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3384, allocations: 8 kB / 460.6 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.3415, allocations: 0.9656 MB / 461.6 MB, free: 14.03 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.001677/0.3432, allocations: 1.35 MB / 462.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.3457, allocations: 0.7441 MB / 463.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.346, allocations: 156.8 kB / 463.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08289/0.4289, allocations: 42.17 MB / 0.4941 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.429, allocations: 34.56 kB / 0.4941 GB, free: 12.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.655e-06/0.429, allocations: 0 / 0.4941 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005152/0.4341, allocations: 1.362 MB / 0.4955 GB, free: 10.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.4342, allocations: 55.41 kB / 0.4955 GB, free: 10.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.4343, allocations: 121.7 kB / 0.4956 GB, free: 10.49 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.4344, allocations: 33.7 kB / 0.4957 GB, free: 10.45 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.671e-05/0.4345, allocations: 120.8 kB / 0.4958 GB, free: 10.33 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.4346, allocations: 126.9 kB / 0.4959 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.4349, allocations: 157.6 kB / 0.4961 GB, free: 10.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.4351, allocations: 326.8 kB / 0.4964 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006611/0.4357, allocations: 339.6 kB / 0.4967 GB, free: 9.383 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007361/0.4365, allocations: 407.5 kB / 0.4971 GB, free: 8.957 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.4379, allocations: 0.7025 MB / 0.4978 GB, free: 8.227 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4379, allocations: 4 kB / 0.4978 GB, free: 8.223 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001892/0.4398, allocations: 0.8761 MB / 0.4986 GB, free: 7.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.4398, allocations: 11.94 kB / 0.4986 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.4399, allocations: 4.312 kB / 0.4987 GB, free: 7.324 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4399, allocations: 7.984 kB / 0.4987 GB, free: 7.316 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006398/0.4405, allocations: 171.8 kB / 0.4988 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.4405, allocations: 7.938 kB / 0.4988 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003222/0.4409, allocations: 36.02 kB / 0.4989 GB, free: 7.105 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.441, allocations: 67.94 kB / 0.4989 GB, free: 7.039 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.000228/0.4412, allocations: 137.8 kB / 0.4991 GB, free: 6.895 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.4414, allocations: 23.84 kB / 0.4991 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008392/0.4498, allocations: 7.97 MB / 0.5069 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.549e-05/0.4498, allocations: 27.95 kB / 0.5069 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.4499, allocations: 3.938 kB / 0.5069 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.4499, allocations: 3.984 kB / 0.5069 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00341/0.4533, allocations: 3.6 MB / 0.5104 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.555e-06/0.4533, allocations: 0 / 0.5104 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006327/0.454, allocations: 111.8 kB / 0.5105 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.454, allocations: 3.938 kB / 0.5105 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.409e-05/0.454, allocations: 15.92 kB / 0.5105 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.454, allocations: 4 kB / 0.5105 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4541, allocations: 4 kB / 0.5106 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/0.4566, allocations: 1.831 MB / 0.5123 GB, free: 8.996 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.4567, allocations: 144.5 kB / 0.5125 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.758e-05/0.4568, allocations: 11.92 kB / 0.5125 GB, free: 8.824 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.4571, allocations: 12 kB / 0.5125 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.4572, allocations: 32.02 kB / 0.5125 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-05/0.4572, allocations: 19.98 kB / 0.5125 GB, free: 8.762 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.404e-05/0.4573, allocations: 91.22 kB / 0.5126 GB, free: 8.672 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4573, allocations: 288 / 0.5126 GB, free: 8.672 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002644/0.46, allocations: 1.002 MB / 0.5136 GB, free: 7.668 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.007121/0.4671, allocations: 3.446 MB / 0.517 GB, free: 4.195 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001803/0.4689, allocations: 0.9001 MB / 0.5179 GB, free: 3.297 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.469, allocations: 0 / 0.5179 GB, free: 3.297 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008451/0.4698, allocations: 0.5913 MB / 0.5184 GB, free: 2.707 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006869/0.4705, allocations: 83.86 kB / 0.5185 GB, free: 2.625 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008341/0.4789, allocations: 4.691 MB / 0.5231 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.4794, allocations: 0.8575 MB / 0.5239 GB, free: 12.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002065/0.4814, allocations: 1.783 MB / 0.5257 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.4819, allocations: 219.3 kB / 0.5259 GB, free: 10.91 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4819, allocations: 0 / 0.5259 GB, free: 10.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2599/0.7419, allocations: 45.72 MB / 0.5705 GB, free: 102.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.7, allocations: 16.81 kB / 0.5705 GB, free: 102.9 MB / 462.1 MB (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)