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.001575/0.001575, allocations: 103.7 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.001953/0.001953, allocations: 208.6 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.447/1.447, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2229/0.2229, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 77.03 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1189, allocations: 62.45 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.3092/0.4281, allocations: 39.17 MB / 0.5071 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02954/0.4577, allocations: 20.16 MB / 0.5268 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001234/0.4591, allocations: 23.5 kB / 0.5269 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.4609, allocations: 444.8 kB / 0.5273 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01831/0.4793, allocations: 5.122 MB / 0.5323 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008678/0.488, allocations: 2.568 MB / 0.5348 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002807/0.4908, allocations: 1.969 MB / 0.5367 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009435/0.4918, allocations: 480.6 kB / 0.5372 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01165/0.5034, allocations: 4.141 MB / 0.5412 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01293/0.5164, allocations: 5.435 MB / 0.5465 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002884/0.5167, allocations: 65.91 kB / 0.5466 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01642/0.5332, allocations: 7.078 MB / 0.5535 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008232/0.5341, allocations: 279.1 kB / 0.5538 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001151/0.5352, allocations: 446 kB / 0.5542 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01342/0.5487, allocations: 4.978 MB / 0.559 GB, free: 6.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.5487, allocations: 0 / 0.559 GB, free: 6.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.5487, allocations: 0 / 0.559 GB, free: 6.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.5488, allocations: 0 / 0.559 GB, free: 6.863 MB / 398.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.004731/0.5535, allocations: 1.626 MB / 0.5606 GB, free: 5.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.5536, allocations: 11.97 kB / 0.5606 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002091/0.5538, allocations: 118.7 kB / 0.5608 GB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/0.5554, allocations: 223.8 kB / 0.561 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000953/0.5564, allocations: 0.5404 MB / 0.5615 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.5565, allocations: 105.5 kB / 0.5616 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.5566, allocations: 63.92 kB / 0.5617 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.5587, allocations: 1.079 MB / 0.5627 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.5587, allocations: 7.984 kB / 0.5627 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.631e-05/0.5588, allocations: 28 kB / 0.5628 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.559e-05/0.5589, allocations: 42.3 kB / 0.5628 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.5606, allocations: 0.8272 MB / 0.5636 GB, free: 1.996 MB / 398.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.006056/0.5666, allocations: 5.566 MB / 0.569 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.5679, allocations: 0.5385 MB / 0.5696 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003231/0.5682, allocations: 210.4 kB / 0.5698 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1045/0.6727, allocations: 52.59 MB / 0.6211 GB, free: 56 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.887e-05/0.6728, allocations: 54.48 kB / 0.6212 GB, free: 15.99 MB / 478.1 MB Notification: Performance of pre-optimization done (n=39): time 2.866e-06/0.6728, allocations: 0 / 0.6212 GB, free: 15.99 MB / 478.1 MB Notification: Performance of matching and sorting (n=44): time 0.006688/0.6795, allocations: 2.116 MB / 0.6232 GB, free: 13.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.6797, allocations: 191.9 kB / 0.6234 GB, free: 13.59 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000829/0.6805, allocations: 0.6523 MB / 0.6241 GB, free: 12.93 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.266e-05/0.6806, allocations: 33.7 kB / 0.6241 GB, free: 12.89 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002925/0.6809, allocations: 391.2 kB / 0.6245 GB, free: 12.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.681, allocations: 169.7 kB / 0.6246 GB, free: 12.33 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/0.6812, allocations: 158.5 kB / 0.6248 GB, free: 12.17 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.6814, allocations: 374.8 kB / 0.6251 GB, free: 11.79 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.6818, allocations: 233.8 kB / 0.6254 GB, free: 11.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00065/0.6824, allocations: 0.5939 MB / 0.6259 GB, free: 10.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.6835, allocations: 0.8675 MB / 0.6268 GB, free: 9.77 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.6835, allocations: 4 kB / 0.6268 GB, free: 9.766 MB / 478.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001475/0.685, allocations: 0.8955 MB / 0.6277 GB, free: 8.859 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.6851, allocations: 15.94 kB / 0.6277 GB, free: 8.844 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.6851, allocations: 12 kB / 0.6277 GB, free: 8.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003215/0.6883, allocations: 277.1 kB / 0.628 GB, free: 8.559 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.6896, allocations: 283.5 kB / 0.6282 GB, free: 8.281 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002063/0.6917, allocations: 2.117 MB / 0.6303 GB, free: 6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007692/0.6924, allocations: 32 kB / 0.6303 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.31e-05/0.6925, allocations: 40 kB / 0.6304 GB, free: 5.93 MB / 478.1 MB 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.0004685/0.693, allocations: 281.5 kB / 0.6306 GB, free: 5.645 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.6932, allocations: 75.16 kB / 0.6307 GB, free: 5.57 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002584/0.6958, allocations: 2.006 MB / 0.6327 GB, free: 3.547 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/0.6958, allocations: 27.97 kB / 0.6327 GB, free: 3.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.6959, allocations: 8 kB / 0.6327 GB, free: 3.512 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.6959, allocations: 7.922 kB / 0.6327 GB, free: 3.504 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003778/0.6997, allocations: 2.994 MB / 0.6356 GB, free: 444 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.6997, allocations: 0 / 0.6356 GB, free: 444 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009516/0.7006, allocations: 187.8 kB / 0.6358 GB, free: 252 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00176/0.7024, allocations: 300 kB / 0.6361 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/0.7025, allocations: 15.98 kB / 0.6361 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001881/0.7044, allocations: 2.172 MB / 0.6382 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.7044, allocations: 0 / 0.6382 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.7068, allocations: 1.94 MB / 0.6401 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004524/0.7073, allocations: 227.6 kB / 0.6403 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.7074, allocations: 31.69 kB / 0.6404 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004664/0.7079, allocations: 24.11 kB / 0.6404 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.236e-05/0.708, allocations: 32.39 kB / 0.6404 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.653e-05/0.708, allocations: 16 kB / 0.6404 GB, free: 11.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007492/0.7088, allocations: 0.5732 MB / 0.641 GB, free: 10.72 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7088, allocations: 0 / 0.641 GB, free: 10.72 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00369/0.7125, allocations: 1.089 MB / 0.6421 GB, free: 9.629 MB / 494.1 MB 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.008221/0.7207, allocations: 3.598 MB / 0.6456 GB, free: 6.008 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.7235, allocations: 0.9988 MB / 0.6465 GB, free: 5.012 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.7235, allocations: 0 / 0.6465 GB, free: 5.012 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.7248, allocations: 0.6477 MB / 0.6472 GB, free: 4.367 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.7271, allocations: 397.8 kB / 0.6476 GB, free: 3.996 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.7397, allocations: 8.577 MB / 0.6559 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006696/0.7404, allocations: 1.093 MB / 0.657 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009753/0.7414, allocations: 345 kB / 0.6573 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004463/0.7419, allocations: 387.2 kB / 0.6577 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of SimCode: time 7.62e-07/0.7419, allocations: 0 / 0.6577 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1028/0.8447, allocations: 55.43 MB / 0.7118 GB, free: 1.871 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.7, allocations: 10.53 kB / 0.7118 GB, free: 1.867 MB / 0.545 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