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.001232/0.001232, allocations: 104.5 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.001456/0.001456, 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.39/1.39, 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.2166/0.2166, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 60.11 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1253, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.04552/0.1709, allocations: 43.92 MB / 0.5013 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2219/0.3929, allocations: 4.37 MB / 0.5055 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006456/0.3936, allocations: 20.88 kB / 0.5055 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009318/0.3945, allocations: 315.3 kB / 0.5058 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00186/0.3964, allocations: 0.8517 MB / 0.5067 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.3986, allocations: 0.8992 MB / 0.5076 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.4004, allocations: 1.792 MB / 0.5093 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005858/0.401, allocations: 463.4 kB / 0.5097 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1135/0.5145, allocations: 44.53 MB / 0.5532 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01953/0.5341, allocations: 7.953 MB / 0.561 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002625/0.5344, allocations: 60 kB / 0.5611 GB, free: 10.42 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02718/0.5616, allocations: 10.67 MB / 0.5715 GB, free: 15.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006551/0.5623, allocations: 266.8 kB / 0.5717 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009409/0.5632, allocations: 392.8 kB / 0.5721 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00185/0.5651, allocations: 1.069 MB / 0.5732 GB, free: 14.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5651, allocations: 4 kB / 0.5732 GB, free: 14.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5652, allocations: 0 / 0.5732 GB, free: 14.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.103e-05/0.5652, allocations: 3.281 kB / 0.5732 GB, free: 14.07 MB / 430.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.002405/0.5676, allocations: 1.056 MB / 0.5742 GB, free: 12.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.5677, allocations: 8.031 kB / 0.5742 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.5678, allocations: 98.7 kB / 0.5743 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003728/0.5682, allocations: 88.08 kB / 0.5744 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008195/0.569, allocations: 0.5007 MB / 0.5749 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.5691, allocations: 103.7 kB / 0.575 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.978e-05/0.5692, allocations: 55.94 kB / 0.575 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.5705, allocations: 0.8189 MB / 0.5758 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.5706, allocations: 7.188 kB / 0.5758 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.227e-05/0.5706, allocations: 20 kB / 0.5758 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.119e-05/0.5707, allocations: 36.98 kB / 0.5759 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.5718, allocations: 0.6478 MB / 0.5765 GB, free: 10.55 MB / 430.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.004758/0.5765, allocations: 4.236 MB / 0.5807 GB, free: 6.074 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009038/0.5775, allocations: 418 kB / 0.581 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/0.5778, allocations: 205.4 kB / 0.5812 GB, free: 5.461 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004775/0.5783, allocations: 0.4988 MB / 0.5817 GB, free: 4.855 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.034e-05/0.5784, allocations: 43.22 kB / 0.5818 GB, free: 4.805 MB / 430.1 MB Notification: Performance of pre-optimization done (n=40): time 2.585e-06/0.5784, allocations: 0 / 0.5818 GB, free: 4.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=45): time 0.003268/0.5816, allocations: 1.519 MB / 0.5833 GB, free: 3.234 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.5817, allocations: 139.8 kB / 0.5834 GB, free: 3.07 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006658/0.5824, allocations: 0.5693 MB / 0.5839 GB, free: 2.492 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.948e-05/0.5825, allocations: 41.55 kB / 0.584 GB, free: 2.449 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002469/0.5827, allocations: 353.9 kB / 0.5843 GB, free: 2.102 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.5829, allocations: 168.4 kB / 0.5845 GB, free: 1.941 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.5831, allocations: 138.5 kB / 0.5846 GB, free: 1.801 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.5832, allocations: 378.7 kB / 0.585 GB, free: 1.422 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.5836, allocations: 221.9 kB / 0.5852 GB, free: 1.207 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005541/0.5842, allocations: 0.521 MB / 0.5857 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009947/0.5852, allocations: 0.7801 MB / 0.5865 GB, free: 15.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.5852, allocations: 4.75 kB / 0.5865 GB, free: 15.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001871/0.5871, allocations: 0.941 MB / 0.5874 GB, free: 14.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.5871, allocations: 10.81 kB / 0.5874 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.5871, allocations: 8 kB / 0.5874 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.5882, allocations: 272.1 kB / 0.5877 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.5887, allocations: 127.8 kB / 0.5878 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009449/0.5896, allocations: 0.8652 MB / 0.5886 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/0.5901, allocations: 24 kB / 0.5887 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.147e-05/0.5902, allocations: 35.98 kB / 0.5887 GB, free: 13.39 MB / 446.1 MB 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.0003485/0.5906, allocations: 249.5 kB / 0.5889 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.5907, allocations: 67.25 kB / 0.589 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.5921, allocations: 0.7127 MB / 0.5897 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.5922, allocations: 8 kB / 0.5897 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.5922, allocations: 0 / 0.5897 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.445e-06/0.5922, allocations: 3.984 kB / 0.5897 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002367/0.5946, allocations: 1.396 MB / 0.5911 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.5946, allocations: 4 kB / 0.5911 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.5956, allocations: 192 kB / 0.5912 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002533/0.5959, allocations: 60.72 kB / 0.5913 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.5959, allocations: 12 kB / 0.5913 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002694/0.5987, allocations: 2.996 MB / 0.5942 GB, free: 7.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.5987, allocations: 7.969 kB / 0.5942 GB, free: 7.332 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.6003, allocations: 0.9955 MB / 0.5952 GB, free: 6.297 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003133/0.6006, allocations: 200.1 kB / 0.5954 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.6007, allocations: 16 kB / 0.5954 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004098/0.6011, allocations: 19.98 kB / 0.5954 GB, free: 6.047 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.112e-05/0.6012, allocations: 39.95 kB / 0.5955 GB, free: 6.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.345e-05/0.6013, allocations: 16 kB / 0.5955 GB, free: 5.992 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005523/0.6019, allocations: 419 kB / 0.5959 GB, free: 5.586 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6019, allocations: 0 / 0.5959 GB, free: 5.586 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007947/0.6027, allocations: 208 kB / 0.5961 GB, free: 5.383 MB / 446.1 MB 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.002142/0.6048, allocations: 1.683 MB / 0.5977 GB, free: 3.672 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.6062, allocations: 0.6675 MB / 0.5984 GB, free: 3.004 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6062, allocations: 0 / 0.5984 GB, free: 3.004 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.6074, allocations: 496.2 kB / 0.5989 GB, free: 2.508 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.6091, allocations: 366.9 kB / 0.5992 GB, free: 2.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009707/0.6189, allocations: 6.747 MB / 0.6058 GB, free: 11.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007361/0.6197, allocations: 0.9402 MB / 0.6067 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009307/0.6206, allocations: 204.4 kB / 0.6069 GB, free: 9.898 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004531/0.6211, allocations: 231.4 kB / 0.6071 GB, free: 9.676 MB / 462.1 MB Notification: Performance of SimCode: time 1.643e-06/0.6211, allocations: 0 / 0.6071 GB, free: 9.676 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05136/0.6725, allocations: 21.86 MB / 0.6285 GB, free: 4.191 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.34, allocations: 16.98 kB / 0.6285 GB, free: 4.176 MB / 478.1 MB (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