Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001532, allocations: 116.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 183.8 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2094/0.2094, allocations: 44.19 MB / 336.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003022/0.003022, allocations: 59.91 kB / 470.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3156, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.04103/0.3566, allocations: 39.03 MB / 0.5566 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02352/0.3802, allocations: 20.13 MB / 0.5762 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007427/0.381, allocations: 23.81 kB / 0.5762 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.3822, allocations: 457.2 kB / 0.5767 GB, free: 296 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01292/0.3951, allocations: 5.105 MB / 0.5817 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006482/0.4016, allocations: 2.563 MB / 0.5842 GB, free: 8.621 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002636/0.4043, allocations: 1.965 MB / 0.5861 GB, free: 6.645 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006845/0.4049, allocations: 481.5 kB / 0.5865 GB, free: 6.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009694/0.4147, allocations: 4.145 MB / 0.5906 GB, free: 1.961 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01195/0.4266, allocations: 5.42 MB / 0.5959 GB, free: 12.45 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002604/0.427, allocations: 68 kB / 0.596 GB, free: 12.39 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01356/0.4405, allocations: 7.239 MB / 0.603 GB, free: 5.141 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004246/0.441, allocations: 287.1 kB / 0.6033 GB, free: 4.859 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006533/0.4416, allocations: 446 kB / 0.6037 GB, free: 4.422 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.4518, allocations: 4.972 MB / 0.6086 GB, free: 15.44 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4518, allocations: 0 / 0.6086 GB, free: 15.44 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4519, allocations: 4 kB / 0.6086 GB, free: 15.43 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.4519, allocations: 0 / 0.6086 GB, free: 15.43 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.004145/0.456, allocations: 1.664 MB / 0.6102 GB, free: 13.71 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.4561, allocations: 16.02 kB / 0.6102 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.4562, allocations: 110.7 kB / 0.6103 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001445/0.4577, allocations: 228.2 kB / 0.6105 GB, free: 13.36 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009565/0.4587, allocations: 0.5681 MB / 0.6111 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.4588, allocations: 109.3 kB / 0.6112 GB, free: 12.63 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.4589, allocations: 67.92 kB / 0.6113 GB, free: 12.56 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/0.4609, allocations: 1.079 MB / 0.6123 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.4609, allocations: 3.938 kB / 0.6123 GB, free: 11.37 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.049e-05/0.461, allocations: 31.98 kB / 0.6124 GB, free: 11.34 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-05/0.4611, allocations: 44.98 kB / 0.6124 GB, free: 11.3 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001666/0.4628, allocations: 0.8193 MB / 0.6132 GB, free: 10.48 MB / 478.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.006127/0.4689, allocations: 5.558 MB / 0.6186 GB, free: 4.555 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.4702, allocations: 0.5387 MB / 0.6192 GB, free: 3.988 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003436/0.4706, allocations: 210.4 kB / 0.6194 GB, free: 3.773 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09903/0.5696, allocations: 47.67 MB / 0.6659 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.5697, allocations: 38.56 kB / 0.6659 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=39): time 2.164e-06/0.5697, allocations: 0 / 0.6659 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=44): time 0.006304/0.576, allocations: 2.16 MB / 0.6681 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.5761, allocations: 187.9 kB / 0.6682 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000806/0.577, allocations: 0.6447 MB / 0.6689 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.577, allocations: 33.7 kB / 0.6689 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/0.5773, allocations: 404.2 kB / 0.6693 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.5775, allocations: 174.6 kB / 0.6694 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/0.5777, allocations: 162.5 kB / 0.6696 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000183/0.5779, allocations: 378.8 kB / 0.67 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003969/0.5783, allocations: 229.9 kB / 0.6702 GB, free: 9.961 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006814/0.579, allocations: 0.5899 MB / 0.6708 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.5801, allocations: 0.8638 MB / 0.6716 GB, free: 8.172 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.5801, allocations: 8 kB / 0.6716 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001456/0.5816, allocations: 0.8922 MB / 0.6725 GB, free: 7.262 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.5816, allocations: 12 kB / 0.6725 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.5817, allocations: 12 kB / 0.6725 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003098/0.5848, allocations: 273.1 kB / 0.6728 GB, free: 6.969 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.5859, allocations: 283.6 kB / 0.673 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.5878, allocations: 2.125 MB / 0.6751 GB, free: 4.398 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005013/0.5883, allocations: 28 kB / 0.6751 GB, free: 4.371 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.353e-05/0.5884, allocations: 43.98 kB / 0.6752 GB, free: 4.328 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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 {(2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003912/0.5888, allocations: 277.4 kB / 0.6754 GB, free: 4.047 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.5889, allocations: 71.58 kB / 0.6755 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.5914, allocations: 2.007 MB / 0.6775 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.502e-05/0.5914, allocations: 23.97 kB / 0.6775 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.5914, allocations: 4 kB / 0.6775 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.5914, allocations: 3.984 kB / 0.6775 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003558/0.595, allocations: 2.995 MB / 0.6804 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.595, allocations: 0 / 0.6804 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009235/0.596, allocations: 191.8 kB / 0.6806 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0017/0.5977, allocations: 303.9 kB / 0.6809 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.5977, allocations: 12 kB / 0.6809 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.5996, allocations: 2.18 MB / 0.683 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.5996, allocations: 4.078 kB / 0.683 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.6021, allocations: 1.957 MB / 0.685 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003464/0.6024, allocations: 236.1 kB / 0.6852 GB, free: 9.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.6026, allocations: 27.78 kB / 0.6852 GB, free: 9.742 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003987/0.603, allocations: 28.05 kB / 0.6852 GB, free: 9.715 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.849e-05/0.603, allocations: 28.41 kB / 0.6853 GB, free: 9.688 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-05/0.6031, allocations: 19.98 kB / 0.6853 GB, free: 9.668 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007588/0.6039, allocations: 0.5732 MB / 0.6858 GB, free: 9.102 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6039, allocations: 0 / 0.6858 GB, free: 9.102 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0029/0.6068, allocations: 1.088 MB / 0.6869 GB, free: 8.012 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {(2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006814/0.6136, allocations: 3.599 MB / 0.6904 GB, free: 4.383 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001999/0.6156, allocations: 0.9246 MB / 0.6913 GB, free: 3.465 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6156, allocations: 0 / 0.6913 GB, free: 3.465 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.6169, allocations: 0.6477 MB / 0.692 GB, free: 2.82 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/0.6189, allocations: 409.1 kB / 0.6923 GB, free: 2.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/0.6305, allocations: 8.266 MB / 0.7004 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000734/0.6313, allocations: 1.093 MB / 0.7015 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007765/0.6321, allocations: 354 kB / 0.7018 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004476/0.6325, allocations: 375.3 kB / 0.7022 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of SimCode: time 5.61e-07/0.6325, allocations: 0 / 0.7022 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.314/0.9465, allocations: 55.54 MB / 0.7564 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.41/16.35, allocations: 12.92 kB / 0.7564 GB, free: 172.4 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_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_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches