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.001245/0.001245, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001168/0.001168, 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.439/1.439, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.213/0.213, allocations: 44.2 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002468/0.002468, allocations: 67.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3463, 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.05617/0.4025, allocations: 43.93 MB / 0.5613 GB, free: 48 kB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007581/0.4102, allocations: 4.381 MB / 0.5656 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007977/0.411, allocations: 19.88 kB / 0.5656 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.4122, allocations: 314 kB / 0.5659 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002489/0.4147, allocations: 0.8511 MB / 0.5668 GB, free: 10.47 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002617/0.4173, allocations: 0.8958 MB / 0.5676 GB, free: 9.578 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00262/0.42, allocations: 1.798 MB / 0.5694 GB, free: 7.77 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009339/0.4209, allocations: 457.3 kB / 0.5698 GB, free: 7.32 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1214/0.5423, allocations: 44.53 MB / 0.6133 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02006/0.5624, allocations: 7.955 MB / 0.6211 GB, free: 2.246 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003139/0.5628, allocations: 64 kB / 0.6212 GB, free: 2.184 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02719/0.59, allocations: 10.68 MB / 0.6316 GB, free: 7.375 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000567/0.5906, allocations: 259.2 kB / 0.6318 GB, free: 7.121 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007922/0.5914, allocations: 390.1 kB / 0.6322 GB, free: 6.738 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002119/0.5935, allocations: 1.082 MB / 0.6333 GB, free: 5.652 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.5936, allocations: 4 kB / 0.6333 GB, free: 5.648 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.5936, allocations: 0 / 0.6333 GB, free: 5.648 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.203e-05/0.5936, allocations: 3.938 kB / 0.6333 GB, free: 5.645 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.002746/0.5964, allocations: 1.074 MB / 0.6343 GB, free: 4.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.5964, allocations: 8.031 kB / 0.6343 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.5966, allocations: 98.69 kB / 0.6344 GB, free: 4.406 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003771/0.597, allocations: 92.45 kB / 0.6345 GB, free: 4.316 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009797/0.598, allocations: 0.5293 MB / 0.635 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.5981, allocations: 108.9 kB / 0.6351 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-05/0.5982, allocations: 55.89 kB / 0.6352 GB, free: 3.574 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.5996, allocations: 0.8174 MB / 0.636 GB, free: 2.68 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.5997, allocations: 7.938 kB / 0.636 GB, free: 2.672 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.566e-05/0.5997, allocations: 19.98 kB / 0.636 GB, free: 2.652 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-05/0.5998, allocations: 40.98 kB / 0.636 GB, free: 2.613 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.601, allocations: 0.6477 MB / 0.6367 GB, free: 1.961 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.00551/0.6065, allocations: 4.21 MB / 0.6408 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009537/0.6075, allocations: 415.9 kB / 0.6412 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003793/0.6079, allocations: 217.3 kB / 0.6414 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000609/0.6085, allocations: 0.5029 MB / 0.6419 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.793e-05/0.6085, allocations: 38.89 kB / 0.6419 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=40): time 2.445e-06/0.6085, allocations: 0 / 0.6419 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.003583/0.6121, allocations: 1.538 MB / 0.6434 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.6123, allocations: 136.5 kB / 0.6435 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008481/0.6131, allocations: 0.5693 MB / 0.6441 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.355e-05/0.6132, allocations: 41.7 kB / 0.6441 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003211/0.6135, allocations: 359.9 kB / 0.6445 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000173/0.6137, allocations: 174.5 kB / 0.6447 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/0.6139, allocations: 138.6 kB / 0.6448 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002056/0.6141, allocations: 374.7 kB / 0.6451 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/0.6146, allocations: 225.9 kB / 0.6454 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006789/0.6152, allocations: 0.5201 MB / 0.6459 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.6164, allocations: 0.7796 MB / 0.6466 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.6164, allocations: 4 kB / 0.6466 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00193/0.6183, allocations: 0.9413 MB / 0.6476 GB, free: 6 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.6184, allocations: 8 kB / 0.6476 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.6184, allocations: 8 kB / 0.6476 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.6195, allocations: 265.2 kB / 0.6478 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004238/0.6199, allocations: 127.8 kB / 0.6479 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.621, allocations: 0.8678 MB / 0.6488 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.6215, allocations: 35.86 kB / 0.6488 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.521e-05/0.6216, allocations: 36 kB / 0.6489 GB, free: 4.637 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.0003652/0.622, allocations: 241.7 kB / 0.6491 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.6221, allocations: 67.58 kB / 0.6492 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.6235, allocations: 0.7145 MB / 0.6498 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/0.6236, allocations: 8.031 kB / 0.6499 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.6236, allocations: 0 / 0.6499 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.6236, allocations: 7.984 kB / 0.6499 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.6259, allocations: 1.401 MB / 0.6512 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.6259, allocations: 3.938 kB / 0.6512 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009536/0.6269, allocations: 187.8 kB / 0.6514 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002415/0.6271, allocations: 64.8 kB / 0.6515 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.6272, allocations: 20 kB / 0.6515 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/0.63, allocations: 2.975 MB / 0.6544 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.63, allocations: 7.969 kB / 0.6544 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.6316, allocations: 1.001 MB / 0.6554 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003171/0.632, allocations: 208.5 kB / 0.6556 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.6321, allocations: 12 kB / 0.6556 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003879/0.6325, allocations: 24.05 kB / 0.6556 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.6326, allocations: 39.89 kB / 0.6557 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.061e-05/0.6326, allocations: 19.98 kB / 0.6557 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005798/0.6332, allocations: 419.1 kB / 0.6561 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6332, allocations: 0 / 0.6561 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007748/0.634, allocations: 207.9 kB / 0.6563 GB, free: 12.6 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.002421/0.6364, allocations: 1.674 MB / 0.6579 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001305/0.6378, allocations: 0.607 MB / 0.6585 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.6378, allocations: 5.625 kB / 0.6585 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.639, allocations: 494.8 kB / 0.659 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001693/0.6407, allocations: 368.8 kB / 0.6593 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.6512, allocations: 6.553 MB / 0.6657 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006885/0.6519, allocations: 0.9385 MB / 0.6666 GB, free: 1.516 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007406/0.6527, allocations: 211.7 kB / 0.6668 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.6531, allocations: 231.4 kB / 0.6671 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of SimCode: time 1.292e-06/0.6531, allocations: 4 kB / 0.6671 GB, free: 1.09 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06677/0.7199, allocations: 22.12 MB / 0.6887 GB, free: 11.33 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/14.05, allocations: 14.98 kB / 0.6887 GB, free: 11.32 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