Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_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.001507/0.001507, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001832/0.001832, allocations: 204.6 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.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2154/0.2154, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002749/0.002749, allocations: 79.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3239, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.03824/0.3622, allocations: 39.19 MB / 0.5688 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02295/0.3852, allocations: 20.18 MB / 0.5885 GB, free: 6.246 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008862/0.3861, allocations: 19.88 kB / 0.5885 GB, free: 6.227 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.3874, allocations: 445.3 kB / 0.5889 GB, free: 5.789 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01407/0.4015, allocations: 5.139 MB / 0.594 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007695/0.4092, allocations: 2.581 MB / 0.5965 GB, free: 14.07 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002768/0.412, allocations: 1.985 MB / 0.5984 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009105/0.4129, allocations: 497.5 kB / 0.5989 GB, free: 11.57 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00972/0.4226, allocations: 4.18 MB / 0.603 GB, free: 7.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01208/0.4347, allocations: 5.436 MB / 0.6083 GB, free: 1.82 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003154/0.4351, allocations: 72 kB / 0.6084 GB, free: 1.75 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01491/0.45, allocations: 7.387 MB / 0.6156 GB, free: 10.35 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005383/0.4506, allocations: 287.2 kB / 0.6158 GB, free: 10.07 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009564/0.4516, allocations: 454 kB / 0.6163 GB, free: 9.625 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01176/0.4633, allocations: 5.128 MB / 0.6213 GB, free: 4.488 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4634, allocations: 0 / 0.6213 GB, free: 4.488 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4634, allocations: 0 / 0.6213 GB, free: 4.488 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.961e-05/0.4635, allocations: 0 / 0.6213 GB, free: 4.488 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.005164/0.4686, allocations: 1.745 MB / 0.623 GB, free: 2.688 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.4687, allocations: 8.031 kB / 0.623 GB, free: 2.68 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/0.4689, allocations: 114.7 kB / 0.6231 GB, free: 2.559 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00231/0.4712, allocations: 300.2 kB / 0.6234 GB, free: 2.266 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.4723, allocations: 0.5838 MB / 0.624 GB, free: 1.641 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.4725, allocations: 113.3 kB / 0.6241 GB, free: 1.516 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.4726, allocations: 67.92 kB / 0.6241 GB, free: 1.449 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002624/0.4752, allocations: 1.193 MB / 0.6253 GB, free: 160 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.4752, allocations: 3.938 kB / 0.6253 GB, free: 156 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-05/0.4753, allocations: 32 kB / 0.6253 GB, free: 124 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.524e-05/0.4754, allocations: 45.23 kB / 0.6254 GB, free: 80 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002619/0.478, allocations: 1.027 MB / 0.6264 GB, free: 15.05 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.006579/0.4846, allocations: 5.611 MB / 0.6319 GB, free: 9.066 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002349/0.487, allocations: 0.762 MB / 0.6326 GB, free: 8.289 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006022/0.4876, allocations: 281.6 kB / 0.6329 GB, free: 8.008 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03527/0.5229, allocations: 17.37 MB / 0.6498 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.615e-05/0.523, allocations: 42.5 kB / 0.6499 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.916e-06/0.523, allocations: 4 kB / 0.6499 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.007493/0.5305, allocations: 2.29 MB / 0.6521 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.5306, allocations: 166.6 kB / 0.6523 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008945/0.5315, allocations: 0.6094 MB / 0.6529 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.719e-05/0.5316, allocations: 37.7 kB / 0.6529 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.5319, allocations: 396.3 kB / 0.6533 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.5321, allocations: 178.5 kB / 0.6535 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.5324, allocations: 162.6 kB / 0.6536 GB, free: 488 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000178/0.5326, allocations: 378.8 kB / 0.654 GB, free: 100 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006732/0.5332, allocations: 281.8 kB / 0.6542 GB, free: 15.82 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009014/0.5342, allocations: 0.6044 MB / 0.6548 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.5358, allocations: 0.8987 MB / 0.6557 GB, free: 14.02 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/0.5358, allocations: 0 / 0.6557 GB, free: 14.02 MB / 0.5138 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001947/0.5377, allocations: 0.9767 MB / 0.6567 GB, free: 13.04 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.5378, allocations: 10.34 kB / 0.6567 GB, free: 13.03 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.5378, allocations: 12 kB / 0.6567 GB, free: 13.02 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002822/0.5381, allocations: 64.83 kB / 0.6567 GB, free: 12.95 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.5394, allocations: 300 kB / 0.657 GB, free: 12.66 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.5411, allocations: 2.083 MB / 0.6591 GB, free: 10.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006158/0.5417, allocations: 48.16 kB / 0.6591 GB, free: 10.36 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.109e-05/0.5418, allocations: 43.98 kB / 0.6592 GB, free: 10.32 MB / 0.5138 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.0003983/0.5422, allocations: 277.3 kB / 0.6594 GB, free: 10.04 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.5424, allocations: 75.45 kB / 0.6595 GB, free: 9.965 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003292/0.5457, allocations: 2.548 MB / 0.662 GB, free: 7.406 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.19e-05/0.5458, allocations: 43.91 kB / 0.662 GB, free: 7.363 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.5458, allocations: 0 / 0.662 GB, free: 7.363 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.5458, allocations: 0 / 0.662 GB, free: 7.363 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004737/0.5505, allocations: 3.765 MB / 0.6657 GB, free: 3.527 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.5506, allocations: 0 / 0.6657 GB, free: 3.527 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.5517, allocations: 231.7 kB / 0.6659 GB, free: 3.301 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003572/0.5521, allocations: 84.78 kB / 0.666 GB, free: 3.215 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.5521, allocations: 12 kB / 0.666 GB, free: 3.203 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.5537, allocations: 2.09 MB / 0.668 GB, free: 0.9492 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5537, allocations: 0 / 0.668 GB, free: 0.9492 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003137/0.5569, allocations: 2.355 MB / 0.6703 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004314/0.5573, allocations: 260 kB / 0.6706 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001667/0.5575, allocations: 35.73 kB / 0.6706 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000524/0.558, allocations: 36.03 kB / 0.6707 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.5581, allocations: 44.44 kB / 0.6707 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.5582, allocations: 27.97 kB / 0.6707 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007706/0.559, allocations: 0.5615 MB / 0.6713 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.559, allocations: 0 / 0.6713 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00311/0.5621, allocations: 1.104 MB / 0.6724 GB, free: 12.48 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.00855/0.5706, allocations: 4.021 MB / 0.6763 GB, free: 8.445 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002714/0.5734, allocations: 1.1 MB / 0.6774 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.5734, allocations: 4 kB / 0.6774 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.5751, allocations: 0.8208 MB / 0.6782 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.5773, allocations: 405.9 kB / 0.6786 GB, free: 6.133 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.5919, allocations: 8.709 MB / 0.6871 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008008/0.5928, allocations: 1.165 MB / 0.6882 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009093/0.5937, allocations: 435.3 kB / 0.6886 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005424/0.5942, allocations: 443.3 kB / 0.689 GB, free: 10.94 MB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/0.5942, allocations: 0 / 0.689 GB, free: 10.94 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3652/0.9595, allocations: 58.28 MB / 0.7459 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/16.42, allocations: 16.97 kB / 0.746 GB, free: 144.9 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:time,volume.medium.h,volume.medium.p