Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001185/0.001185, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 75.88 kB / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3314, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.03746/0.3689, allocations: 39.19 MB / 0.5688 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02152/0.3905, allocations: 20.18 MB / 0.5885 GB, free: 6.207 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007285/0.3912, allocations: 19.88 kB / 0.5885 GB, free: 6.188 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.3926, allocations: 449.3 kB / 0.5889 GB, free: 5.746 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0144/0.407, allocations: 5.139 MB / 0.594 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00638/0.4134, allocations: 2.573 MB / 0.5965 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002363/0.4158, allocations: 1.966 MB / 0.5984 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006423/0.4165, allocations: 485.5 kB / 0.5989 GB, free: 11.57 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009104/0.4256, allocations: 4.168 MB / 0.6029 GB, free: 7.348 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01096/0.4366, allocations: 5.42 MB / 0.6082 GB, free: 1.844 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002835/0.4369, allocations: 71.94 kB / 0.6083 GB, free: 1.773 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01315/0.4501, allocations: 7.243 MB / 0.6154 GB, free: 10.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004374/0.4505, allocations: 271.2 kB / 0.6156 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007229/0.4513, allocations: 454 kB / 0.6161 GB, free: 9.812 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.4616, allocations: 4.984 MB / 0.6209 GB, free: 4.816 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4616, allocations: 0 / 0.6209 GB, free: 4.816 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4616, allocations: 0 / 0.6209 GB, free: 4.816 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.823e-05/0.4617, allocations: 0 / 0.6209 GB, free: 4.816 MB / 478.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.005277/0.4669, allocations: 1.679 MB / 0.6226 GB, free: 3.082 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.467, allocations: 12.03 kB / 0.6226 GB, free: 3.07 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.4672, allocations: 114.7 kB / 0.6227 GB, free: 2.949 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001517/0.4687, allocations: 224.2 kB / 0.6229 GB, free: 2.73 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.4698, allocations: 0.5642 MB / 0.6234 GB, free: 2.125 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.4699, allocations: 109.3 kB / 0.6236 GB, free: 2.004 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.4701, allocations: 67.92 kB / 0.6236 GB, free: 1.938 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.4719, allocations: 1.067 MB / 0.6247 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.4719, allocations: 7.938 kB / 0.6247 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-05/0.472, allocations: 35.98 kB / 0.6247 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.138e-05/0.4721, allocations: 44.97 kB / 0.6247 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.4737, allocations: 0.8154 MB / 0.6255 GB, free: 15.86 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.005396/0.4791, allocations: 5.566 MB / 0.631 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.4803, allocations: 0.5339 MB / 0.6315 GB, free: 9.371 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.4806, allocations: 206.5 kB / 0.6317 GB, free: 9.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09802/0.5786, allocations: 52.8 MB / 0.6833 GB, free: 13.71 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/0.5787, allocations: 46.56 kB / 0.6833 GB, free: 13.65 MB / 0.545 GB Notification: Performance of pre-optimization done (n=39): time 2.745e-06/0.5787, allocations: 0 / 0.6833 GB, free: 13.65 MB / 0.545 GB Notification: Performance of matching and sorting (n=44): time 0.006503/0.5852, allocations: 2.158 MB / 0.6854 GB, free: 11.44 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/0.5853, allocations: 187.9 kB / 0.6856 GB, free: 11.21 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007713/0.5861, allocations: 0.6408 MB / 0.6862 GB, free: 10.56 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/0.5862, allocations: 41.64 kB / 0.6863 GB, free: 10.51 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.5864, allocations: 408.3 kB / 0.6866 GB, free: 10.11 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.5866, allocations: 174.6 kB / 0.6868 GB, free: 9.938 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.5868, allocations: 150.6 kB / 0.687 GB, free: 9.785 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.5869, allocations: 386.8 kB / 0.6873 GB, free: 9.398 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003854/0.5873, allocations: 225.9 kB / 0.6875 GB, free: 9.176 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.588, allocations: 0.5977 MB / 0.6881 GB, free: 8.406 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.589, allocations: 0.8599 MB / 0.689 GB, free: 7.383 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.589, allocations: 4 kB / 0.689 GB, free: 7.379 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00142/0.5904, allocations: 0.9081 MB / 0.6899 GB, free: 6.461 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.5905, allocations: 8 kB / 0.6899 GB, free: 6.453 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.5905, allocations: 12 kB / 0.6899 GB, free: 6.441 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00312/0.5936, allocations: 272.5 kB / 0.6901 GB, free: 6.172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.5948, allocations: 287.8 kB / 0.6904 GB, free: 5.891 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.5964, allocations: 2.114 MB / 0.6925 GB, free: 3.617 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005483/0.5969, allocations: 35.94 kB / 0.6925 GB, free: 3.582 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.501e-05/0.597, allocations: 44.06 kB / 0.6925 GB, free: 3.539 MB / 0.545 GB 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.0003773/0.5974, allocations: 273.5 kB / 0.6928 GB, free: 3.262 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.5976, allocations: 75.53 kB / 0.6929 GB, free: 3.188 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/0.5999, allocations: 2.007 MB / 0.6948 GB, free: 1.156 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.588e-05/0.6, allocations: 31.95 kB / 0.6949 GB, free: 1.125 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.6, allocations: 0 / 0.6949 GB, free: 1.125 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.6, allocations: 4 kB / 0.6949 GB, free: 1.121 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00337/0.6034, allocations: 2.987 MB / 0.6978 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.6034, allocations: 4 kB / 0.6978 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008808/0.6043, allocations: 187.8 kB / 0.698 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001653/0.6059, allocations: 303.8 kB / 0.6983 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-05/0.606, allocations: 24 kB / 0.6983 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.608, allocations: 2.168 MB / 0.7004 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.608, allocations: 0 / 0.7004 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/0.6102, allocations: 1.949 MB / 0.7023 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004722/0.6107, allocations: 240.1 kB / 0.7025 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.6109, allocations: 27.84 kB / 0.7026 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.6113, allocations: 12 kB / 0.7026 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.6114, allocations: 32.39 kB / 0.7026 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.6114, allocations: 24.05 kB / 0.7026 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007426/0.6122, allocations: 0.5732 MB / 0.7032 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.6122, allocations: 0 / 0.7032 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003567/0.6158, allocations: 1.104 MB / 0.7043 GB, free: 7.227 MB / 0.5606 GB 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.008429/0.6242, allocations: 3.608 MB / 0.7078 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001998/0.6262, allocations: 0.9285 MB / 0.7087 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.6263, allocations: 0 / 0.7087 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.6275, allocations: 0.6361 MB / 0.7093 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.6296, allocations: 397.1 kB / 0.7097 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.6418, allocations: 8.295 MB / 0.7178 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006433/0.6425, allocations: 1.093 MB / 0.7189 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007613/0.6433, allocations: 350.2 kB / 0.7192 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/0.6437, allocations: 375.3 kB / 0.7196 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of SimCode: time 8.32e-07/0.6437, allocations: 0 / 0.7196 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3134/0.9572, allocations: 55.62 MB / 0.7739 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.85, allocations: 9.781 kB / 0.7739 GB, free: 152.8 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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