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.001337/0.001337, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247 MB, free: 10.42 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.2225/0.2225, allocations: 46.12 MB / 344.4 MB, free: 11.44 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.002455/0.002455, allocations: 79.81 kB / 480.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.318, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04552/0.3635, allocations: 39.19 MB / 0.5689 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02869/0.3922, allocations: 20.17 MB / 0.5886 GB, free: 6.168 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.3934, allocations: 23.81 kB / 0.5886 GB, free: 6.145 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001646/0.3951, allocations: 453.3 kB / 0.589 GB, free: 5.699 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01741/0.4125, allocations: 5.123 MB / 0.594 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008313/0.4209, allocations: 2.574 MB / 0.5965 GB, free: 14 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003141/0.424, allocations: 1.973 MB / 0.5985 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.4251, allocations: 489.5 kB / 0.5989 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01117/0.4363, allocations: 4.168 MB / 0.603 GB, free: 7.301 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01428/0.4506, allocations: 5.44 MB / 0.6083 GB, free: 1.777 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004395/0.4511, allocations: 72 kB / 0.6084 GB, free: 1.707 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01765/0.4688, allocations: 7.387 MB / 0.6156 GB, free: 10.31 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005467/0.4694, allocations: 283.2 kB / 0.6159 GB, free: 10.04 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007941/0.4702, allocations: 454 kB / 0.6163 GB, free: 9.59 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01235/0.4825, allocations: 5.132 MB / 0.6213 GB, free: 4.445 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4826, allocations: 0 / 0.6213 GB, free: 4.445 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4826, allocations: 0 / 0.6213 GB, free: 4.445 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.938e-05/0.4826, allocations: 4 kB / 0.6213 GB, free: 4.441 MB / 478.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.005252/0.4879, allocations: 1.73 MB / 0.623 GB, free: 2.656 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.488, allocations: 12.03 kB / 0.623 GB, free: 2.645 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002337/0.4882, allocations: 118.7 kB / 0.6231 GB, free: 2.52 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002403/0.4906, allocations: 300.2 kB / 0.6234 GB, free: 2.227 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.4919, allocations: 0.5876 MB / 0.624 GB, free: 1.598 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.492, allocations: 113.3 kB / 0.6241 GB, free: 1.473 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.4922, allocations: 71.86 kB / 0.6242 GB, free: 1.402 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002929/0.4951, allocations: 1.193 MB / 0.6253 GB, free: 112 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.4952, allocations: 3.938 kB / 0.6253 GB, free: 108 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.963e-05/0.4953, allocations: 28 kB / 0.6254 GB, free: 80 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.709e-05/0.4953, allocations: 49.23 kB / 0.6254 GB, free: 32 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002784/0.4981, allocations: 1.027 MB / 0.6264 GB, free: 15 MB / 494.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.007247/0.5054, allocations: 5.611 MB / 0.6319 GB, free: 9.016 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002487/0.5079, allocations: 0.7669 MB / 0.6327 GB, free: 8.234 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006355/0.5086, allocations: 277.6 kB / 0.6329 GB, free: 7.957 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0372/0.5458, allocations: 17.37 MB / 0.6499 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.5459, allocations: 34.56 kB / 0.6499 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.375e-06/0.5459, allocations: 0 / 0.6499 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.007433/0.5533, allocations: 2.294 MB / 0.6521 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.5535, allocations: 170.7 kB / 0.6523 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008399/0.5543, allocations: 0.6055 MB / 0.6529 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.43e-05/0.5544, allocations: 37.7 kB / 0.6529 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.5547, allocations: 392.3 kB / 0.6533 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/0.555, allocations: 182.5 kB / 0.6535 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002608/0.5552, allocations: 162.6 kB / 0.6536 GB, free: 448 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001957/0.5554, allocations: 378.8 kB / 0.654 GB, free: 60 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006992/0.5561, allocations: 285.8 kB / 0.6543 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009748/0.5571, allocations: 0.6004 MB / 0.6549 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.5588, allocations: 0.9025 MB / 0.6557 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.5588, allocations: 4 kB / 0.6557 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002117/0.5609, allocations: 0.9654 MB / 0.6567 GB, free: 13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.561, allocations: 14.72 kB / 0.6567 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.561, allocations: 16 kB / 0.6567 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003133/0.5613, allocations: 64.77 kB / 0.6568 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.5626, allocations: 299.6 kB / 0.6571 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.5646, allocations: 2.075 MB / 0.6591 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000612/0.5652, allocations: 43.97 kB / 0.6591 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-05/0.5653, allocations: 44 kB / 0.6592 GB, free: 10.29 MB / 0.5137 GB 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.0004355/0.5657, allocations: 277.5 kB / 0.6594 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.5659, allocations: 79.55 kB / 0.6595 GB, free: 9.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003649/0.5696, allocations: 2.555 MB / 0.662 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-05/0.5697, allocations: 35.94 kB / 0.662 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.5697, allocations: 0 / 0.662 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.5697, allocations: 3.984 kB / 0.6621 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005213/0.5749, allocations: 3.765 MB / 0.6657 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.5749, allocations: 0 / 0.6657 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.5761, allocations: 223.7 kB / 0.6659 GB, free: 3.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003673/0.5765, allocations: 84.78 kB / 0.666 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.519e-05/0.5765, allocations: 15.98 kB / 0.666 GB, free: 3.168 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.5784, allocations: 2.086 MB / 0.6681 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5785, allocations: 0 / 0.6681 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003607/0.5821, allocations: 2.359 MB / 0.6704 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004545/0.5826, allocations: 263.9 kB / 0.6706 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.5827, allocations: 31.78 kB / 0.6707 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.5833, allocations: 35.91 kB / 0.6707 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.5834, allocations: 48.48 kB / 0.6707 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.327e-05/0.5835, allocations: 23.98 kB / 0.6708 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008607/0.5844, allocations: 0.5616 MB / 0.6713 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5844, allocations: 0 / 0.6713 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003197/0.5876, allocations: 1.104 MB / 0.6724 GB, free: 12.45 MB / 0.5294 GB 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.009474/0.5971, allocations: 4.024 MB / 0.6763 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003117/0.6002, allocations: 1.104 MB / 0.6774 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.6003, allocations: 3.938 kB / 0.6774 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.6022, allocations: 0.8245 MB / 0.6782 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.6046, allocations: 399.8 kB / 0.6786 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01712/0.6217, allocations: 8.709 MB / 0.6871 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001434/0.6232, allocations: 1.161 MB / 0.6882 GB, free: 11.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001208/0.6244, allocations: 447.7 kB / 0.6887 GB, free: 11.33 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009395/0.6254, allocations: 443.3 kB / 0.6891 GB, free: 10.89 MB / 0.545 GB Notification: Performance of SimCode: time 1.573e-06/0.6254, allocations: 0 / 0.6891 GB, free: 10.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3501/0.9756, allocations: 58.36 MB / 0.7461 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.05/17.02, allocations: 8.188 kB / 0.7461 GB, free: 144.8 MB / 0.5606 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)