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.001089/0.001089, allocations: 202 kB / 15.8 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007527/0.0007528, allocations: 104.7 kB / 295.1 MB, free: 4.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1764/0.1764, allocations: 44.84 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002357/0.0002358, allocations: 8 kB / 464.7 MB, free: 68.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.0859, allocations: 62.95 MB / 0.5153 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.03147/0.1174, allocations: 36.69 MB / 0.5512 GB, free: 312 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.205/0.3225, allocations: 18.85 MB / 0.5696 GB, free: 11.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008275/0.3234, allocations: 23.34 kB / 0.5696 GB, free: 11.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.3245, allocations: 372.7 kB / 0.5699 GB, free: 11.68 MB / 378.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.01151/0.336, allocations: 4.087 MB / 0.5739 GB, free: 11 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005991/0.342, allocations: 2.026 MB / 0.5759 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002788/0.3448, allocations: 2.373 MB / 0.5782 GB, free: 10.12 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005342/0.3454, allocations: 417.9 kB / 0.5786 GB, free: 9.973 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009617/0.355, allocations: 6.421 MB / 0.5849 GB, free: 8.652 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009203/0.3642, allocations: 9.124 MB / 0.5938 GB, free: 2.629 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.3645, allocations: 36 kB / 0.5938 GB, free: 2.594 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01371/0.3782, allocations: 6.947 MB / 0.6006 GB, free: 11.68 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004519/0.3787, allocations: 242.7 kB / 0.6009 GB, free: 11.45 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003769/0.3791, allocations: 185.3 kB / 0.601 GB, free: 11.27 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006044/0.3851, allocations: 3.487 MB / 0.6044 GB, free: 7.992 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3851, allocations: 0 / 0.6044 GB, free: 7.992 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3851, allocations: 0 / 0.6044 GB, free: 7.992 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.3852, allocations: 0 / 0.6044 GB, free: 7.992 MB / 394.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.003611/0.3888, allocations: 1.547 MB / 0.606 GB, free: 6.402 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.3888, allocations: 8.031 kB / 0.606 GB, free: 6.395 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001945/0.3908, allocations: 323.4 kB / 0.6063 GB, free: 6.082 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007221/0.3915, allocations: 0.5349 MB / 0.6068 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.3916, allocations: 116.7 kB / 0.6069 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.77e-05/0.3917, allocations: 59.44 kB / 0.607 GB, free: 5.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.3941, allocations: 1.212 MB / 0.6081 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.3941, allocations: 11.94 kB / 0.6082 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.538e-05/0.3942, allocations: 27.52 kB / 0.6082 GB, free: 4.004 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.037e-05/0.3942, allocations: 41.3 kB / 0.6082 GB, free: 3.965 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002305/0.3965, allocations: 1.059 MB / 0.6093 GB, free: 2.906 MB / 394.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.005471/0.402, allocations: 5.63 MB / 0.6148 GB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/0.4041, allocations: 0.8006 MB / 0.6155 GB, free: 12.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005608/0.4047, allocations: 301.5 kB / 0.6158 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0305/0.4352, allocations: 17.41 MB / 0.6328 GB, free: 8.258 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.4353, allocations: 39.28 kB / 0.6329 GB, free: 8.211 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 2.023e-06/0.4353, allocations: 0 / 0.6329 GB, free: 8.211 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.006413/0.4417, allocations: 2.366 MB / 0.6352 GB, free: 5.781 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.4418, allocations: 166.6 kB / 0.6353 GB, free: 5.582 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006662/0.4425, allocations: 0.6055 MB / 0.6359 GB, free: 4.973 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.07e-05/0.4426, allocations: 29.7 kB / 0.636 GB, free: 4.938 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.4428, allocations: 398 kB / 0.6363 GB, free: 4.551 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.4429, allocations: 175.2 kB / 0.6365 GB, free: 4.379 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.443, allocations: 16 kB / 0.6365 GB, free: 4.363 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.4431, allocations: 374.8 kB / 0.6369 GB, free: 3.988 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005958/0.4437, allocations: 289.8 kB / 0.6371 GB, free: 3.707 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007788/0.4445, allocations: 0.6199 MB / 0.6378 GB, free: 2.934 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006811/0.4452, allocations: 376.5 kB / 0.6381 GB, free: 2.562 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4452, allocations: 4 kB / 0.6381 GB, free: 2.559 MB / 426.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001802/0.447, allocations: 0.9806 MB / 0.6391 GB, free: 1.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.4471, allocations: 16.06 kB / 0.6391 GB, free: 1.555 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.4471, allocations: 8 kB / 0.6391 GB, free: 1.547 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/0.4474, allocations: 72.81 kB / 0.6392 GB, free: 1.473 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.4487, allocations: 303.6 kB / 0.6395 GB, free: 1.176 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/0.4505, allocations: 1.99 MB / 0.6414 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007287/0.4512, allocations: 76.05 kB / 0.6415 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.109e-05/0.4513, allocations: 44.86 kB / 0.6415 GB, free: 14.92 MB / 442.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.0003827/0.4517, allocations: 277.9 kB / 0.6418 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.4518, allocations: 67.25 kB / 0.6418 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.455, allocations: 2.613 MB / 0.6444 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.974e-05/0.455, allocations: 35.94 kB / 0.6444 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.455, allocations: 0.5 kB / 0.6444 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.455, allocations: 0 / 0.6444 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004305/0.4593, allocations: 3.799 MB / 0.6481 GB, free: 8.051 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.4594, allocations: 0 / 0.6481 GB, free: 8.051 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.4605, allocations: 239.7 kB / 0.6484 GB, free: 7.816 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/0.4609, allocations: 92.45 kB / 0.6485 GB, free: 7.727 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.4609, allocations: 15.98 kB / 0.6485 GB, free: 7.711 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/0.4624, allocations: 1.999 MB / 0.6504 GB, free: 5.555 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4624, allocations: 0 / 0.6504 GB, free: 5.555 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003002/0.4654, allocations: 2.373 MB / 0.6527 GB, free: 3.156 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00047/0.4659, allocations: 330.8 kB / 0.6531 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.466, allocations: 12 kB / 0.6531 GB, free: 2.801 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005954/0.4666, allocations: 67.8 kB / 0.6531 GB, free: 2.734 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.4668, allocations: 56.47 kB / 0.6532 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.236e-05/0.4668, allocations: 19.98 kB / 0.6532 GB, free: 2.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007784/0.4676, allocations: 0.5575 MB / 0.6538 GB, free: 2.105 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4676, allocations: 0 / 0.6538 GB, free: 2.105 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003291/0.4709, allocations: 1.097 MB / 0.6548 GB, free: 1.008 MB / 442.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.004652/0.4756, allocations: 1.22 MB / 0.656 GB, free: 15.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002409/0.478, allocations: 1.097 MB / 0.6571 GB, free: 14.78 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.478, allocations: 0 / 0.6571 GB, free: 14.78 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.4795, allocations: 0.8051 MB / 0.6579 GB, free: 13.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.4816, allocations: 391.8 kB / 0.6582 GB, free: 13.61 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/0.4856, allocations: 3.092 MB / 0.6613 GB, free: 10.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007225/0.4863, allocations: 1.154 MB / 0.6624 GB, free: 9.309 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.4865, allocations: 71.44 kB / 0.6625 GB, free: 9.238 MB / 458.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4865, allocations: 0 / 0.6625 GB, free: 9.238 MB / 458.7 MB Notification: Performance of Templates: time 0.05299/0.5395, allocations: 39.46 MB / 0.701 GB, free: 1.805 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