Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 198.9 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.6 MB / 243.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00075/0.0007502, allocations: 96.53 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2844/0.2844, allocations: 44.83 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000236/0.000236, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2787, allocations: 62.95 MB / 0.5159 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.02488/0.3036, allocations: 36.81 MB / 0.5518 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01944/0.3231, allocations: 18.89 MB / 0.5703 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001186/0.3243, allocations: 23.84 kB / 0.5703 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.3257, allocations: 378.7 kB / 0.5707 GB, free: 13.09 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01529/0.341, allocations: 4.12 MB / 0.5747 GB, free: 10.14 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007101/0.3482, allocations: 2.052 MB / 0.5767 GB, free: 8.645 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003367/0.3515, allocations: 2.388 MB / 0.579 GB, free: 7.238 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008799/0.3524, allocations: 418.6 kB / 0.5794 GB, free: 6.969 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.011/0.3635, allocations: 6.443 MB / 0.5857 GB, free: 1.848 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01277/0.3763, allocations: 9.115 MB / 0.5946 GB, free: 8.727 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.3766, allocations: 36 kB / 0.5946 GB, free: 8.691 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01374/0.3903, allocations: 7.027 MB / 0.6015 GB, free: 1.656 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005604/0.3909, allocations: 243.2 kB / 0.6017 GB, free: 1.418 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006935/0.3916, allocations: 435.9 kB / 0.6021 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00609/0.3977, allocations: 3.512 MB / 0.6056 GB, free: 13.46 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3977, allocations: 0 / 0.6056 GB, free: 13.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3978, allocations: 4 kB / 0.6056 GB, free: 13.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.3978, allocations: 0 / 0.6056 GB, free: 13.46 MB / 426.7 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.003819/0.4016, allocations: 1.528 MB / 0.6071 GB, free: 11.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.4016, allocations: 12.02 kB / 0.6071 GB, free: 11.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001935/0.4036, allocations: 319.6 kB / 0.6074 GB, free: 11.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007993/0.4044, allocations: 0.5482 MB / 0.6079 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.4045, allocations: 121.2 kB / 0.608 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.905e-05/0.4046, allocations: 60.12 kB / 0.6081 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.407, allocations: 1.212 MB / 0.6093 GB, free: 9.465 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.4071, allocations: 7.938 kB / 0.6093 GB, free: 9.457 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.271e-05/0.4072, allocations: 27.98 kB / 0.6093 GB, free: 9.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.414e-05/0.4072, allocations: 41.3 kB / 0.6094 GB, free: 9.391 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002466/0.4097, allocations: 1.059 MB / 0.6104 GB, free: 8.332 MB / 426.7 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.005811/0.4155, allocations: 5.63 MB / 0.6159 GB, free: 2.332 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002266/0.4178, allocations: 0.7978 MB / 0.6167 GB, free: 1.516 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006026/0.4184, allocations: 297.5 kB / 0.617 GB, free: 1.219 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03022/0.4486, allocations: 17.42 MB / 0.634 GB, free: 13.63 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.4487, allocations: 42.5 kB / 0.634 GB, free: 13.58 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 2.215e-06/0.4487, allocations: 4 kB / 0.634 GB, free: 13.58 MB / 458.7 MB Notification: Performance of matching and sorting (n=49): time 0.006557/0.4553, allocations: 2.364 MB / 0.6363 GB, free: 11.15 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.4554, allocations: 166.7 kB / 0.6365 GB, free: 10.95 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000704/0.4561, allocations: 0.6054 MB / 0.6371 GB, free: 10.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.4562, allocations: 37.7 kB / 0.6371 GB, free: 10.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.4564, allocations: 383.2 kB / 0.6375 GB, free: 9.906 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.4566, allocations: 177.5 kB / 0.6376 GB, free: 9.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.4566, allocations: 16 kB / 0.6377 GB, free: 9.715 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.4568, allocations: 378.8 kB / 0.638 GB, free: 9.336 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006184/0.4574, allocations: 293.8 kB / 0.6383 GB, free: 9.047 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008042/0.4582, allocations: 0.6161 MB / 0.6389 GB, free: 8.277 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.4596, allocations: 0.9182 MB / 0.6398 GB, free: 7.215 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.4596, allocations: 8 kB / 0.6398 GB, free: 7.207 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001837/0.4615, allocations: 0.9725 MB / 0.6407 GB, free: 6.223 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.4615, allocations: 12 kB / 0.6408 GB, free: 6.211 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.4615, allocations: 8 kB / 0.6408 GB, free: 6.203 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002756/0.4618, allocations: 64.81 kB / 0.6408 GB, free: 6.137 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.4631, allocations: 311.9 kB / 0.6411 GB, free: 5.832 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.4645, allocations: 1.99 MB / 0.6431 GB, free: 3.691 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000675/0.4652, allocations: 92.03 kB / 0.6432 GB, free: 3.602 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/0.4653, allocations: 40 kB / 0.6432 GB, free: 3.562 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003655/0.4657, allocations: 269.5 kB / 0.6435 GB, free: 3.289 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.4658, allocations: 71.09 kB / 0.6435 GB, free: 3.219 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003095/0.4689, allocations: 2.609 MB / 0.6461 GB, free: 0.5938 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.384e-05/0.469, allocations: 47.81 kB / 0.6461 GB, free: 0.5469 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.469, allocations: 0 / 0.6461 GB, free: 0.5469 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.469, allocations: 7.984 kB / 0.6461 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004378/0.4734, allocations: 3.785 MB / 0.6498 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.4734, allocations: 0 / 0.6498 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.4745, allocations: 247.7 kB / 0.6501 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003749/0.4749, allocations: 92.75 kB / 0.6501 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.4749, allocations: 12 kB / 0.6502 GB, free: 12.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.4763, allocations: 1.995 MB / 0.6521 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4763, allocations: 0 / 0.6521 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002993/0.4793, allocations: 2.377 MB / 0.6544 GB, free: 7.777 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004571/0.4798, allocations: 326.9 kB / 0.6547 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.4799, allocations: 15.94 kB / 0.6548 GB, free: 7.422 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.4805, allocations: 63.86 kB / 0.6548 GB, free: 7.359 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.4806, allocations: 48.48 kB / 0.6549 GB, free: 7.312 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-05/0.4807, allocations: 27.97 kB / 0.6549 GB, free: 7.285 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000736/0.4814, allocations: 0.5537 MB / 0.6554 GB, free: 6.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4814, allocations: 0 / 0.6554 GB, free: 6.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003052/0.4845, allocations: 1.097 MB / 0.6565 GB, free: 5.633 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004646/0.4891, allocations: 1.217 MB / 0.6577 GB, free: 4.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.4915, allocations: 1.1 MB / 0.6588 GB, free: 3.316 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4916, allocations: 8.062 kB / 0.6588 GB, free: 3.309 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001426/0.493, allocations: 0.7973 MB / 0.6595 GB, free: 2.516 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/0.4949, allocations: 383.6 kB / 0.6599 GB, free: 2.152 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003887/0.4988, allocations: 3.095 MB / 0.6629 GB, free: 15.03 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006999/0.4995, allocations: 1.157 MB / 0.6641 GB, free: 13.84 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.4997, allocations: 71.42 kB / 0.6641 GB, free: 13.77 MB / 490.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4997, allocations: 0 / 0.6641 GB, free: 13.77 MB / 490.7 MB Notification: Performance of Templates: time 0.2272/0.727, allocations: 39.46 MB / 0.7027 GB, free: 128 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches