Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_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.00141/0.00141, allocations: 113.8 kB / 17.77 MB, free: 5.367 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.001652/0.001652, allocations: 183.1 kB / 18.7 MB, free: 4.441 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.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2034/0.2034, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 63.89 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3469, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.04547/0.3924, allocations: 43.92 MB / 0.5613 GB, free: 76 kB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006538/0.399, allocations: 4.381 MB / 0.5656 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006012/0.3997, allocations: 19.88 kB / 0.5656 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008917/0.4006, allocations: 318 kB / 0.5659 GB, free: 11.35 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00189/0.4025, allocations: 0.8706 MB / 0.5668 GB, free: 10.47 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002161/0.4047, allocations: 0.8916 MB / 0.5676 GB, free: 9.586 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001727/0.4064, allocations: 1.801 MB / 0.5694 GB, free: 7.773 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005436/0.407, allocations: 461.3 kB / 0.5698 GB, free: 7.32 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1031/0.5101, allocations: 44.54 MB / 0.6133 GB, free: 10.29 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01752/0.5276, allocations: 7.959 MB / 0.6211 GB, free: 2.238 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002842/0.528, allocations: 60 kB / 0.6212 GB, free: 2.18 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02509/0.5531, allocations: 10.69 MB / 0.6316 GB, free: 7.363 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005681/0.5537, allocations: 259.2 kB / 0.6318 GB, free: 7.109 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008781/0.5546, allocations: 390.2 kB / 0.6322 GB, free: 6.727 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002309/0.5569, allocations: 1.078 MB / 0.6333 GB, free: 5.645 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.5569, allocations: 3.938 kB / 0.6333 GB, free: 5.641 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.5569, allocations: 4 kB / 0.6333 GB, free: 5.637 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.114e-05/0.557, allocations: 0 / 0.6333 GB, free: 5.637 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003521/0.5605, allocations: 1.074 MB / 0.6343 GB, free: 4.512 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.443e-05/0.5606, allocations: 8.031 kB / 0.6343 GB, free: 4.504 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002396/0.5609, allocations: 98.7 kB / 0.6344 GB, free: 4.398 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005144/0.5614, allocations: 88.47 kB / 0.6345 GB, free: 4.312 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.5626, allocations: 0.537 MB / 0.635 GB, free: 3.734 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.5627, allocations: 101 kB / 0.6351 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.5628, allocations: 59.88 kB / 0.6352 GB, free: 3.566 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.5642, allocations: 0.8213 MB / 0.636 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.5642, allocations: 4 kB / 0.636 GB, free: 2.664 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-05/0.5643, allocations: 23.94 kB / 0.636 GB, free: 2.641 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.667e-05/0.5644, allocations: 40.92 kB / 0.6361 GB, free: 2.602 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.5656, allocations: 0.6439 MB / 0.6367 GB, free: 1.953 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.005262/0.5709, allocations: 4.214 MB / 0.6408 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008769/0.5718, allocations: 427.9 kB / 0.6412 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003354/0.5721, allocations: 217.3 kB / 0.6414 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004951/0.5726, allocations: 0.4951 MB / 0.6419 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.5727, allocations: 38.89 kB / 0.6419 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=40): time 1.783e-06/0.5727, allocations: 0 / 0.6419 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.00332/0.576, allocations: 1.542 MB / 0.6434 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/0.5761, allocations: 136.5 kB / 0.6436 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006938/0.5768, allocations: 0.5732 MB / 0.6441 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.5768, allocations: 33.7 kB / 0.6442 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/0.5771, allocations: 363.9 kB / 0.6445 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.5772, allocations: 174.5 kB / 0.6447 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.5774, allocations: 138.6 kB / 0.6448 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.5776, allocations: 374.7 kB / 0.6452 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003753/0.578, allocations: 225.9 kB / 0.6454 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005773/0.5786, allocations: 0.5201 MB / 0.6459 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009845/0.5796, allocations: 0.7796 MB / 0.6467 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.5796, allocations: 0 / 0.6467 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001783/0.5814, allocations: 0.9453 MB / 0.6476 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.5814, allocations: 8 kB / 0.6476 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.5814, allocations: 12 kB / 0.6476 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.5825, allocations: 261.1 kB / 0.6478 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004081/0.5829, allocations: 123.8 kB / 0.648 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000961/0.5839, allocations: 0.8753 MB / 0.6488 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004786/0.5844, allocations: 24 kB / 0.6488 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/0.5844, allocations: 39.98 kB / 0.6489 GB, free: 4.621 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003268/0.5848, allocations: 233.6 kB / 0.6491 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.5849, allocations: 75.67 kB / 0.6492 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/0.5863, allocations: 0.7166 MB / 0.6499 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.5863, allocations: 4 kB / 0.6499 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.5863, allocations: 4 kB / 0.6499 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5863, allocations: 7.984 kB / 0.6499 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/0.5885, allocations: 1.401 MB / 0.6513 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.5885, allocations: 0 / 0.6513 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009806/0.5895, allocations: 199.7 kB / 0.6514 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002451/0.5897, allocations: 56.69 kB / 0.6515 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/0.5898, allocations: 24.05 kB / 0.6515 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002352/0.5922, allocations: 2.975 MB / 0.6544 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5922, allocations: 3.938 kB / 0.6544 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.5937, allocations: 1.005 MB / 0.6554 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003163/0.594, allocations: 208.5 kB / 0.6556 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.5941, allocations: 12 kB / 0.6556 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003909/0.5945, allocations: 12 kB / 0.6556 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.5946, allocations: 43.95 kB / 0.6557 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-05/0.5946, allocations: 23.98 kB / 0.6557 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004834/0.5951, allocations: 419 kB / 0.6561 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5951, allocations: 3.938 kB / 0.6561 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007775/0.5959, allocations: 207.9 kB / 0.6563 GB, free: 12.58 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002084/0.598, allocations: 1.675 MB / 0.6579 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001162/0.5992, allocations: 0.6111 MB / 0.6585 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5992, allocations: 1.438 kB / 0.6585 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.6004, allocations: 486.8 kB / 0.659 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/0.602, allocations: 376.5 kB / 0.6594 GB, free: 9.414 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009292/0.6113, allocations: 6.547 MB / 0.6658 GB, free: 2.469 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.6119, allocations: 0.9385 MB / 0.6667 GB, free: 1.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006767/0.6126, allocations: 218 kB / 0.6669 GB, free: 1.301 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/0.6129, allocations: 231.4 kB / 0.6671 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of SimCode: time 3.9e-07/0.613, allocations: 0 / 0.6671 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05513/0.6681, allocations: 22.12 MB / 0.6887 GB, free: 11.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.34, allocations: 11.61 kB / 0.6887 GB, free: 11.3 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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_LinearFluid_LinearWater_pT.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearWater_pT/LinearWater_pT.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches