Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.p|volume.medium.T",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.p|volume.medium.T",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001593/0.001593, allocations: 107.9 kB / 17.33 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 213.7 kB / 18.27 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.5 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2195/0.2195, allocations: 46.12 MB / 343.8 MB, free: 11.7 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 74.94 kB / 417.1 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1314, allocations: 62.45 MB / 479.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.3004/0.4319, allocations: 39.62 MB / 0.507 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.4577, allocations: 20.29 MB / 0.5268 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001417/0.4592, allocations: 25.38 kB / 0.5269 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.4607, allocations: 403.9 kB / 0.5272 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01732/0.4781, allocations: 4.562 MB / 0.5317 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007613/0.4857, allocations: 2.339 MB / 0.534 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002698/0.4884, allocations: 1.975 MB / 0.5359 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006882/0.4891, allocations: 475.8 kB / 0.5364 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008926/0.4981, allocations: 4.139 MB / 0.5404 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009482/0.5076, allocations: 5.476 MB / 0.5458 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003402/0.508, allocations: 68.81 kB / 0.5458 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01855/0.5265, allocations: 7.142 MB / 0.5528 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006025/0.5272, allocations: 279.1 kB / 0.5531 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009135/0.5281, allocations: 454 kB / 0.5535 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01735/0.5455, allocations: 4.993 MB / 0.5584 GB, free: 7.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.5455, allocations: 0 / 0.5584 GB, free: 7.316 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5455, allocations: 0 / 0.5584 GB, free: 7.316 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.5456, allocations: 0 / 0.5584 GB, free: 7.316 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.005042/0.5506, allocations: 1.625 MB / 0.56 GB, free: 5.641 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.5507, allocations: 8.031 kB / 0.56 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001497/0.5522, allocations: 215.8 kB / 0.5602 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000946/0.5531, allocations: 0.552 MB / 0.5607 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.5533, allocations: 105.3 kB / 0.5608 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.5534, allocations: 64.31 kB / 0.5609 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.5555, allocations: 1.078 MB / 0.5619 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.5555, allocations: 7.938 kB / 0.5619 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-05/0.5556, allocations: 28 kB / 0.562 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-05/0.5557, allocations: 40.98 kB / 0.562 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.5574, allocations: 0.8232 MB / 0.5628 GB, free: 2.574 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.006962/0.5644, allocations: 5.554 MB / 0.5682 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.5657, allocations: 0.5412 MB / 0.5688 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003535/0.566, allocations: 206.5 kB / 0.569 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1063/0.6724, allocations: 52.59 MB / 0.6203 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.472e-05/0.6725, allocations: 38.56 kB / 0.6203 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of pre-optimization done (n=39): time 2.735e-06/0.6725, allocations: 0 / 0.6203 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.007288/0.6798, allocations: 2.123 MB / 0.6224 GB, free: 14.42 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.68, allocations: 195.8 kB / 0.6226 GB, free: 14.19 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009145/0.6809, allocations: 0.6368 MB / 0.6232 GB, free: 13.55 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/0.681, allocations: 37.64 kB / 0.6233 GB, free: 13.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003707/0.6813, allocations: 403.1 kB / 0.6236 GB, free: 13.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.6815, allocations: 157.8 kB / 0.6238 GB, free: 12.95 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002652/0.6818, allocations: 162.5 kB / 0.624 GB, free: 12.78 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000256/0.682, allocations: 378.8 kB / 0.6243 GB, free: 12.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004355/0.6825, allocations: 229.9 kB / 0.6245 GB, free: 12.18 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008452/0.6833, allocations: 0.59 MB / 0.6251 GB, free: 11.42 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.6847, allocations: 0.8675 MB / 0.626 GB, free: 10.39 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.6847, allocations: 4 kB / 0.626 GB, free: 10.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001624/0.6863, allocations: 0.9001 MB / 0.6268 GB, free: 9.473 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.6864, allocations: 12.06 kB / 0.6269 GB, free: 9.461 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.6864, allocations: 12 kB / 0.6269 GB, free: 9.449 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003505/0.6899, allocations: 268.5 kB / 0.6271 GB, free: 9.184 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.6911, allocations: 279.6 kB / 0.6274 GB, free: 8.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/0.6936, allocations: 2.123 MB / 0.6295 GB, free: 6.625 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000753/0.6943, allocations: 67.88 kB / 0.6295 GB, free: 6.559 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.474e-05/0.6944, allocations: 39.94 kB / 0.6296 GB, free: 6.52 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.0005027/0.6949, allocations: 282.1 kB / 0.6298 GB, free: 6.234 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.6951, allocations: 75.14 kB / 0.6299 GB, free: 6.16 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003281/0.6984, allocations: 2.015 MB / 0.6319 GB, free: 4.125 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/0.6985, allocations: 23.91 kB / 0.6319 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.6985, allocations: 11.98 kB / 0.6319 GB, free: 4.09 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.6985, allocations: 0 / 0.6319 GB, free: 4.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/0.7027, allocations: 2.991 MB / 0.6348 GB, free: 1.027 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.7027, allocations: 0 / 0.6348 GB, free: 1.027 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009735/0.7037, allocations: 187.8 kB / 0.635 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00186/0.7056, allocations: 307.8 kB / 0.6353 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/0.7056, allocations: 8 kB / 0.6353 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/0.7078, allocations: 2.176 MB / 0.6374 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.7078, allocations: 3.938 kB / 0.6374 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.7106, allocations: 1.932 MB / 0.6393 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005656/0.7112, allocations: 235.7 kB / 0.6395 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.7114, allocations: 31.75 kB / 0.6396 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005497/0.7119, allocations: 27.92 kB / 0.6396 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.712, allocations: 32.39 kB / 0.6396 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.673e-05/0.7121, allocations: 23.98 kB / 0.6397 GB, free: 11.87 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001084/0.7132, allocations: 0.5732 MB / 0.6402 GB, free: 11.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7132, allocations: 3.938 kB / 0.6402 GB, free: 11.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004386/0.7176, allocations: 1.093 MB / 0.6413 GB, free: 10.2 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.005242/0.7228, allocations: 1.206 MB / 0.6425 GB, free: 8.988 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002736/0.7256, allocations: 0.9945 MB / 0.6434 GB, free: 7.992 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.7256, allocations: 0 / 0.6434 GB, free: 7.992 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.727, allocations: 0.6519 MB / 0.6441 GB, free: 7.344 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/0.7293, allocations: 413.3 kB / 0.6445 GB, free: 6.961 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004061/0.7334, allocations: 2.535 MB / 0.6469 GB, free: 4.402 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008378/0.7342, allocations: 1.097 MB / 0.648 GB, free: 3.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009118/0.7351, allocations: 354.2 kB / 0.6484 GB, free: 2.918 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.7353, allocations: 67.42 kB / 0.6484 GB, free: 2.852 MB / 494.1 MB Notification: Performance of SimCode: time 6.61e-07/0.7353, allocations: 0 / 0.6484 GB, free: 2.852 MB / 494.1 MB Notification: Performance of Templates: time 0.0732/0.8085, allocations: 45.43 MB / 0.6928 GB, free: 5.531 MB / 0.5294 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches