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.001366/0.001366, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.001569/0.001569, allocations: 192 kB / 18.56 MB, free: 4.434 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.509/1.509, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.2205/0.2205, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 60.42 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.157, allocations: 60.82 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.04122/0.1983, allocations: 39.02 MB / 0.4965 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.243/0.4414, allocations: 20.14 MB / 0.5161 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000831/0.4422, allocations: 25.28 kB / 0.5162 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.4436, allocations: 447.2 kB / 0.5166 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0151/0.4587, allocations: 5.114 MB / 0.5216 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008804/0.4675, allocations: 2.566 MB / 0.5241 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003822/0.4714, allocations: 1.965 MB / 0.526 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.4727, allocations: 489.1 kB / 0.5265 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01245/0.4852, allocations: 4.145 MB / 0.5305 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01112/0.4964, allocations: 5.417 MB / 0.5358 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002692/0.4967, allocations: 67.53 kB / 0.5359 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01597/0.5127, allocations: 7.077 MB / 0.5428 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006491/0.5134, allocations: 276.9 kB / 0.5431 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008532/0.5142, allocations: 452 kB / 0.5435 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01625/0.5305, allocations: 4.958 MB / 0.5483 GB, free: 13.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.5305, allocations: 4 kB / 0.5483 GB, free: 13.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5306, allocations: 0 / 0.5483 GB, free: 13.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.5306, allocations: 0 / 0.5483 GB, free: 13.56 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.005361/0.5359, allocations: 1.623 MB / 0.5499 GB, free: 11.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.536, allocations: 11.97 kB / 0.5499 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.5362, allocations: 114.7 kB / 0.55 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001537/0.5377, allocations: 218.2 kB / 0.5502 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009223/0.5387, allocations: 0.5378 MB / 0.5508 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.5388, allocations: 111.6 kB / 0.5509 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.48e-05/0.5389, allocations: 67.94 kB / 0.5509 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.5408, allocations: 1.081 MB / 0.552 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.5408, allocations: 7.938 kB / 0.552 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.798e-05/0.5409, allocations: 26.97 kB / 0.552 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.647e-05/0.541, allocations: 40.98 kB / 0.5521 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.5426, allocations: 0.8271 MB / 0.5529 GB, free: 8.738 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.006914/0.5495, allocations: 5.569 MB / 0.5583 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.5508, allocations: 0.5303 MB / 0.5588 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.5511, allocations: 214.4 kB / 0.559 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1002/0.6513, allocations: 47.45 MB / 0.6054 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.6514, allocations: 38.56 kB / 0.6054 GB, free: 12.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=39): time 2.114e-06/0.6514, allocations: 0 / 0.6054 GB, free: 12.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.006764/0.6582, allocations: 2.136 MB / 0.6075 GB, free: 10.78 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.6583, allocations: 195.8 kB / 0.6077 GB, free: 10.55 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009151/0.6593, allocations: 0.6406 MB / 0.6083 GB, free: 9.906 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/0.6593, allocations: 29.7 kB / 0.6083 GB, free: 9.871 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000341/0.6597, allocations: 398.3 kB / 0.6087 GB, free: 9.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.6599, allocations: 171.1 kB / 0.6089 GB, free: 9.316 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002447/0.6601, allocations: 162.5 kB / 0.609 GB, free: 9.152 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.6603, allocations: 374.8 kB / 0.6094 GB, free: 8.777 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/0.6608, allocations: 233.9 kB / 0.6096 GB, free: 8.547 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006369/0.6614, allocations: 0.5899 MB / 0.6102 GB, free: 7.785 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.6626, allocations: 0.8638 MB / 0.611 GB, free: 6.758 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.6626, allocations: 8 kB / 0.611 GB, free: 6.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001514/0.6641, allocations: 0.8921 MB / 0.6119 GB, free: 5.848 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.6642, allocations: 12 kB / 0.6119 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.6642, allocations: 12 kB / 0.6119 GB, free: 5.824 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/0.6674, allocations: 272.5 kB / 0.6122 GB, free: 5.555 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.6686, allocations: 283.8 kB / 0.6125 GB, free: 5.277 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.6704, allocations: 2.125 MB / 0.6145 GB, free: 2.992 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006081/0.6711, allocations: 28 kB / 0.6146 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.73e-05/0.6711, allocations: 43.92 kB / 0.6146 GB, free: 2.922 MB / 462.1 MB 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.0004409/0.6716, allocations: 279 kB / 0.6149 GB, free: 2.641 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.6718, allocations: 71.16 kB / 0.6149 GB, free: 2.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/0.6745, allocations: 2.006 MB / 0.6169 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.843e-05/0.6746, allocations: 23.91 kB / 0.6169 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.6746, allocations: 8 kB / 0.6169 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.6746, allocations: 3.984 kB / 0.6169 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003872/0.6785, allocations: 2.994 MB / 0.6199 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.6785, allocations: 0 / 0.6199 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009246/0.6794, allocations: 183.8 kB / 0.62 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001795/0.6812, allocations: 303.8 kB / 0.6203 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.6813, allocations: 11.98 kB / 0.6203 GB, free: 12.97 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001687/0.683, allocations: 2.183 MB / 0.6225 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.683, allocations: 48 / 0.6225 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.6854, allocations: 1.94 MB / 0.6244 GB, free: 8.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004155/0.6858, allocations: 231.5 kB / 0.6246 GB, free: 8.414 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002316/0.686, allocations: 31.69 kB / 0.6246 GB, free: 8.383 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005175/0.6865, allocations: 15.98 kB / 0.6246 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.6867, allocations: 40.27 kB / 0.6247 GB, free: 8.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.6867, allocations: 20.06 kB / 0.6247 GB, free: 8.305 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009945/0.6877, allocations: 0.5732 MB / 0.6253 GB, free: 7.742 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6877, allocations: 0 / 0.6253 GB, free: 7.742 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003613/0.6914, allocations: 1.093 MB / 0.6263 GB, free: 6.648 MB / 478.1 MB 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.007749/0.6991, allocations: 3.583 MB / 0.6298 GB, free: 3.133 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002576/0.7017, allocations: 1.006 MB / 0.6308 GB, free: 2.133 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.7017, allocations: 0 / 0.6308 GB, free: 2.133 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.703, allocations: 0.6438 MB / 0.6314 GB, free: 1.488 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002408/0.7054, allocations: 395.5 kB / 0.6318 GB, free: 1.117 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.7178, allocations: 8.576 MB / 0.6402 GB, free: 8.066 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006564/0.7185, allocations: 1.101 MB / 0.6413 GB, free: 6.938 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008591/0.7194, allocations: 354.1 kB / 0.6416 GB, free: 6.586 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004504/0.7198, allocations: 375.3 kB / 0.642 GB, free: 6.219 MB / 494.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7198, allocations: 0 / 0.642 GB, free: 6.219 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/0.8213, allocations: 55.36 MB / 0.696 GB, free: 15.12 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.39, allocations: 16.09 kB / 0.696 GB, free: 15.1 MB / 0.545 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