Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001143/0.001143, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2404/0.2404, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002755/0.002755, allocations: 77.12 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1133, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.249/0.3623, allocations: 44.09 MB / 0.5119 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006201/0.3685, allocations: 4.379 MB / 0.5162 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006336/0.3692, allocations: 24.09 kB / 0.5162 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000862/0.3701, allocations: 312.3 kB / 0.5165 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002169/0.3723, allocations: 0.8585 MB / 0.5174 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002992/0.3753, allocations: 0.9023 MB / 0.5183 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003017/0.3783, allocations: 1.791 MB / 0.52 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001091/0.3795, allocations: 462.7 kB / 0.5204 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1018/0.4812, allocations: 44.57 MB / 0.564 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0188/0.5001, allocations: 7.958 MB / 0.5717 GB, free: 4.438 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003756/0.5005, allocations: 60 kB / 0.5718 GB, free: 4.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02701/0.5275, allocations: 10.69 MB / 0.5822 GB, free: 9.648 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000641/0.5282, allocations: 252.4 kB / 0.5825 GB, free: 9.406 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001015/0.5293, allocations: 397.5 kB / 0.5829 GB, free: 9.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002321/0.5316, allocations: 1.074 MB / 0.5839 GB, free: 7.988 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5316, allocations: 0 / 0.5839 GB, free: 7.988 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5316, allocations: 0 / 0.5839 GB, free: 7.988 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.5317, allocations: 0 / 0.5839 GB, free: 7.988 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.002126/0.5338, allocations: 1.059 MB / 0.5849 GB, free: 6.895 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.5339, allocations: 12.03 kB / 0.5849 GB, free: 6.883 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.534, allocations: 102.1 kB / 0.585 GB, free: 6.777 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.5344, allocations: 84.09 kB / 0.5851 GB, free: 6.695 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000778/0.5351, allocations: 0.5066 MB / 0.5856 GB, free: 6.156 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.5353, allocations: 104 kB / 0.5857 GB, free: 6.047 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.059e-05/0.5354, allocations: 51.94 kB / 0.5858 GB, free: 5.996 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.5366, allocations: 0.8187 MB / 0.5866 GB, free: 5.109 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.5367, allocations: 3.938 kB / 0.5866 GB, free: 5.105 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.345e-05/0.5367, allocations: 22.89 kB / 0.5866 GB, free: 5.086 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.086e-05/0.5368, allocations: 44.97 kB / 0.5866 GB, free: 5.043 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.5378, allocations: 0.6439 MB / 0.5873 GB, free: 4.395 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.004649/0.5425, allocations: 4.225 MB / 0.5914 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008639/0.5434, allocations: 415.9 kB / 0.5918 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000309/0.5437, allocations: 205.4 kB / 0.592 GB, free: 15.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000497/0.5442, allocations: 0.4951 MB / 0.5925 GB, free: 14.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.5442, allocations: 43.2 kB / 0.5925 GB, free: 14.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=40): time 2.766e-06/0.5443, allocations: 0 / 0.5925 GB, free: 14.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.003394/0.5477, allocations: 1.52 MB / 0.594 GB, free: 13.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.619e-05/0.5478, allocations: 136.5 kB / 0.5941 GB, free: 12.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007111/0.5485, allocations: 0.5654 MB / 0.5947 GB, free: 12.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.274e-05/0.5485, allocations: 41.69 kB / 0.5947 GB, free: 12.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.5488, allocations: 358 kB / 0.5951 GB, free: 11.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.5489, allocations: 160.3 kB / 0.5952 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.5491, allocations: 150.4 kB / 0.5954 GB, free: 11.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5493, allocations: 378.7 kB / 0.5957 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003607/0.5496, allocations: 221.9 kB / 0.5959 GB, free: 11.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005466/0.5502, allocations: 0.524 MB / 0.5964 GB, free: 10.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009211/0.5511, allocations: 0.7757 MB / 0.5972 GB, free: 9.453 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.5511, allocations: 4.5 kB / 0.5972 GB, free: 9.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001717/0.5529, allocations: 0.9376 MB / 0.5981 GB, free: 8.504 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.5529, allocations: 8 kB / 0.5981 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.5529, allocations: 8 kB / 0.5981 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.5541, allocations: 270.5 kB / 0.5984 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.5545, allocations: 131.8 kB / 0.5985 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009097/0.5554, allocations: 0.8715 MB / 0.5994 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005096/0.5559, allocations: 23.94 kB / 0.5994 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-05/0.556, allocations: 36 kB / 0.5994 GB, free: 7.141 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.0003255/0.5564, allocations: 253.5 kB / 0.5997 GB, free: 6.883 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5565, allocations: 63.25 kB / 0.5997 GB, free: 6.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/0.5578, allocations: 0.711 MB / 0.6004 GB, free: 6.105 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.5578, allocations: 8 kB / 0.6004 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.5578, allocations: 0 / 0.6004 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.5578, allocations: 0 / 0.6004 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.5599, allocations: 1.416 MB / 0.6018 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5599, allocations: 0 / 0.6018 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009833/0.5609, allocations: 187.8 kB / 0.602 GB, free: 4.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002323/0.5611, allocations: 57.02 kB / 0.602 GB, free: 4.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.036e-05/0.5612, allocations: 19.98 kB / 0.6021 GB, free: 4.352 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002389/0.5636, allocations: 2.983 MB / 0.605 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5636, allocations: 8.094 kB / 0.605 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.5651, allocations: 0.9917 MB / 0.6059 GB, free: 48 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003006/0.5654, allocations: 204.2 kB / 0.6061 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.5655, allocations: 12 kB / 0.6062 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003994/0.566, allocations: 12 kB / 0.6062 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.602e-05/0.5661, allocations: 47.89 kB / 0.6062 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-05/0.5661, allocations: 19.98 kB / 0.6062 GB, free: 15.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004835/0.5666, allocations: 427 kB / 0.6066 GB, free: 15.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5666, allocations: 0 / 0.6066 GB, free: 15.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007715/0.5674, allocations: 204 kB / 0.6068 GB, free: 15.12 MB / 462.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.002122/0.5695, allocations: 1.675 MB / 0.6085 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.5709, allocations: 0.6671 MB / 0.6091 GB, free: 12.74 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.5709, allocations: 0 / 0.6091 GB, free: 12.74 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.5721, allocations: 487 kB / 0.6096 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/0.5739, allocations: 376 kB / 0.6099 GB, free: 11.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009523/0.5834, allocations: 6.763 MB / 0.6165 GB, free: 4.762 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.5839, allocations: 0.9385 MB / 0.6175 GB, free: 3.797 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008152/0.5848, allocations: 209.8 kB / 0.6177 GB, free: 3.605 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.5851, allocations: 231.4 kB / 0.6179 GB, free: 3.379 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5851, allocations: 0 / 0.6179 GB, free: 3.379 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04788/0.633, allocations: 21.88 MB / 0.6392 GB, free: 13.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.68, allocations: 8.812 kB / 0.6393 GB, free: 13.8 MB / 494.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p