Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001689/0.001689, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001866/0.001866, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2436/0.2436, allocations: 46.11 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica 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.003044/0.003044, allocations: 80.73 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1585, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.3529/0.5114, allocations: 39.18 MB / 0.5072 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02021/0.5316, allocations: 20.15 MB / 0.5269 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009124/0.5326, allocations: 20.25 kB / 0.5269 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.5339, allocations: 447.2 kB / 0.5273 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01346/0.5473, allocations: 5.126 MB / 0.5324 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006792/0.5541, allocations: 2.564 MB / 0.5349 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002342/0.5565, allocations: 1.996 MB / 0.5368 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006221/0.5571, allocations: 492.5 kB / 0.5373 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009081/0.5662, allocations: 4.163 MB / 0.5413 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01051/0.5768, allocations: 5.446 MB / 0.5467 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002628/0.5771, allocations: 72.62 kB / 0.5467 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01477/0.5918, allocations: 7.23 MB / 0.5538 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005615/0.5924, allocations: 283.1 kB / 0.5541 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008102/0.5933, allocations: 458 kB / 0.5545 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.6064, allocations: 5.107 MB / 0.5595 GB, free: 6.312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.6065, allocations: 0 / 0.5595 GB, free: 6.312 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6065, allocations: 0 / 0.5595 GB, free: 6.312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.6065, allocations: 0 / 0.5595 GB, free: 6.312 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.005368/0.6119, allocations: 1.696 MB / 0.5611 GB, free: 4.566 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.612, allocations: 8.031 kB / 0.5611 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001531/0.6121, allocations: 111.8 kB / 0.5613 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/0.6144, allocations: 303.6 kB / 0.5615 GB, free: 4.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000903/0.6153, allocations: 0.5598 MB / 0.5621 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/0.6154, allocations: 121.4 kB / 0.5622 GB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.6155, allocations: 63.94 kB / 0.5623 GB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00269/0.6182, allocations: 1.185 MB / 0.5634 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.6183, allocations: 8 kB / 0.5634 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.772e-05/0.6184, allocations: 31.98 kB / 0.5635 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.511e-05/0.6184, allocations: 45.22 kB / 0.5635 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002685/0.6211, allocations: 1.023 MB / 0.5645 GB, free: 0.9688 MB / 398.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.007136/0.6283, allocations: 5.617 MB / 0.57 GB, free: 10.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.6308, allocations: 0.767 MB / 0.5707 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000628/0.6314, allocations: 285.5 kB / 0.571 GB, free: 9.918 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03676/0.6682, allocations: 17.29 MB / 0.5879 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/0.6683, allocations: 42.52 kB / 0.5879 GB, free: 6.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 2.405e-06/0.6683, allocations: 0 / 0.5879 GB, free: 6.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007111/0.6754, allocations: 2.274 MB / 0.5902 GB, free: 4.074 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.6756, allocations: 162.7 kB / 0.5903 GB, free: 3.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008121/0.6764, allocations: 0.6093 MB / 0.5909 GB, free: 3.266 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.6764, allocations: 37.7 kB / 0.5909 GB, free: 3.223 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003269/0.6768, allocations: 395.2 kB / 0.5913 GB, free: 2.828 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.6769, allocations: 177.5 kB / 0.5915 GB, free: 2.652 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.6772, allocations: 154.6 kB / 0.5916 GB, free: 2.496 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.6774, allocations: 382.7 kB / 0.592 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006522/0.6781, allocations: 281.8 kB / 0.5923 GB, free: 1.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000927/0.679, allocations: 0.6083 MB / 0.5929 GB, free: 1.082 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.6806, allocations: 0.8987 MB / 0.5937 GB, free: 40 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.6806, allocations: 0 / 0.5937 GB, free: 40 kB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002016/0.6826, allocations: 0.9687 MB / 0.5947 GB, free: 15.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.6826, allocations: 11.98 kB / 0.5947 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.6827, allocations: 12 kB / 0.5947 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002886/0.6829, allocations: 60.83 kB / 0.5948 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.6842, allocations: 295.8 kB / 0.5951 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/0.6861, allocations: 2.082 MB / 0.5971 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006022/0.6868, allocations: 48.16 kB / 0.5971 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-05/0.6868, allocations: 43.98 kB / 0.5972 GB, free: 12.35 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.heatTransfer.states[1].phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004419/0.6873, allocations: 277 kB / 0.5974 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.6875, allocations: 75.09 kB / 0.5975 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00352/0.691, allocations: 2.559 MB / 0.6 GB, free: 9.426 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/0.691, allocations: 31.95 kB / 0.6 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.6911, allocations: 3.984 kB / 0.6 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.6911, allocations: 0 / 0.6 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005085/0.6962, allocations: 3.754 MB / 0.6037 GB, free: 5.562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.6962, allocations: 0 / 0.6037 GB, free: 5.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.6974, allocations: 231.7 kB / 0.6039 GB, free: 5.336 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003797/0.6978, allocations: 88.69 kB / 0.604 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/0.6978, allocations: 23.88 kB / 0.604 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001847/0.6997, allocations: 2.09 MB / 0.6061 GB, free: 2.973 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.6997, allocations: 4.188 kB / 0.6061 GB, free: 2.969 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/0.7031, allocations: 2.338 MB / 0.6084 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000483/0.7036, allocations: 259.3 kB / 0.6086 GB, free: 344 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.7037, allocations: 39.53 kB / 0.6086 GB, free: 304 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004593/0.7042, allocations: 31.97 kB / 0.6087 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.7043, allocations: 48.5 kB / 0.6087 GB, free: 224 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.7044, allocations: 27.98 kB / 0.6088 GB, free: 196 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008066/0.7052, allocations: 0.5576 MB / 0.6093 GB, free: 15.63 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7052, allocations: 0 / 0.6093 GB, free: 15.63 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003161/0.7084, allocations: 1.093 MB / 0.6104 GB, free: 14.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008242/0.7166, allocations: 4.018 MB / 0.6143 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003468/0.7201, allocations: 1.202 MB / 0.6155 GB, free: 9.305 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.7201, allocations: 0 / 0.6155 GB, free: 9.305 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001748/0.7219, allocations: 0.8207 MB / 0.6163 GB, free: 8.477 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002287/0.7242, allocations: 396.8 kB / 0.6166 GB, free: 8.098 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/0.7397, allocations: 9.016 MB / 0.6254 GB, free: 14.62 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000794/0.7405, allocations: 1.157 MB / 0.6266 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.7415, allocations: 443.6 kB / 0.627 GB, free: 13 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005388/0.7421, allocations: 443.3 kB / 0.6274 GB, free: 12.57 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7421, allocations: 0 / 0.6274 GB, free: 12.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1104/0.8525, allocations: 58.15 MB / 0.6842 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/15.19, allocations: 30.44 kB / 0.6842 GB, free: 2.633 MB / 0.5137 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1)