Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009188/0.0009188, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007458/0.0007459, allocations: 84.98 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003028, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2098, allocations: 47.57 MB / 374.6 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.02099/0.2309, allocations: 30.12 MB / 404.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.2429, allocations: 14.62 MB / 419.3 MB, free: 4.012 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003152/0.2432, allocations: 7.938 kB / 419.3 MB, free: 4.004 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006232/0.2438, allocations: 222.8 kB / 419.5 MB, free: 3.785 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005701/0.2444, allocations: 334.2 kB / 419.9 MB, free: 3.457 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01126/0.2557, allocations: 4.457 MB / 424.3 MB, free: 15 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001386/0.2571, allocations: 1.196 MB / 425.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.2573, allocations: 81.02 kB / 425.6 MB, free: 13.72 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005126/0.2624, allocations: 3.31 MB / 428.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004604/0.2629, allocations: 302.9 kB / 429.2 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.518e-05/0.263, allocations: 20 kB / 429.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009642/0.2726, allocations: 5.81 MB / 435 MB, free: 4.273 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.2727, allocations: 75.72 kB / 435.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.2729, allocations: 105.6 kB / 435.2 MB, free: 4.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003474/0.2764, allocations: 2.588 MB / 437.8 MB, free: 1.496 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2764, allocations: 3.938 kB / 437.8 MB, free: 1.492 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2764, allocations: 0 / 437.8 MB, free: 1.492 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.2764, allocations: 0 / 437.8 MB, free: 1.492 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002289/0.2787, allocations: 0.9435 MB / 438.7 MB, free: 0.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.2788, allocations: 12.03 kB / 438.7 MB, free: 500 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/0.28, allocations: 159.4 kB / 438.9 MB, free: 340 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004218/0.2804, allocations: 310.5 kB / 439.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.514e-05/0.2805, allocations: 40.55 kB / 439.2 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.2806, allocations: 32 kB / 439.3 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.282, allocations: 0.5697 MB / 439.8 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.2821, allocations: 0 / 439.8 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.2821, allocations: 16 kB / 439.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.2821, allocations: 8 kB / 439.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.2836, allocations: 0.5329 MB / 440.4 MB, free: 14.75 MB / 330.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.002991/0.2866, allocations: 2.623 MB / 443 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.2881, allocations: 488.6 kB / 443.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/0.2886, allocations: 176.8 kB / 443.7 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007614/0.2893, allocations: 0.5638 MB / 444.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.2894, allocations: 34.56 kB / 444.3 MB, free: 10.51 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.263e-06/0.2894, allocations: 0 / 444.3 MB, free: 10.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.004688/0.2941, allocations: 1.606 MB / 445.9 MB, free: 8.832 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.2941, allocations: 59.39 kB / 445.9 MB, free: 8.762 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.2944, allocations: 248.8 kB / 446.2 MB, free: 8.512 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.2944, allocations: 33.7 kB / 446.2 MB, free: 8.473 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.2946, allocations: 184.2 kB / 446.4 MB, free: 8.289 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.183e-05/0.2947, allocations: 118.4 kB / 446.5 MB, free: 8.172 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.816e-05/0.2947, allocations: 4 kB / 446.5 MB, free: 8.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.2948, allocations: 338.8 kB / 446.8 MB, free: 7.828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004104/0.2952, allocations: 152.8 kB / 447 MB, free: 7.676 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004806/0.2957, allocations: 251.4 kB / 447.2 MB, free: 7.395 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004326/0.2962, allocations: 179.9 kB / 447.4 MB, free: 7.219 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2962, allocations: 0 / 447.4 MB, free: 7.219 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001283/0.2975, allocations: 0.5268 MB / 447.9 MB, free: 6.676 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.2975, allocations: 11.94 kB / 447.9 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2975, allocations: 0 / 447.9 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005003/0.298, allocations: 122.8 kB / 448.1 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.2984, allocations: 95.88 kB / 448.2 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.3002, allocations: 2.42 MB / 450.6 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.3005, allocations: 52 kB / 450.6 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.3006, allocations: 16 kB / 450.6 MB, free: 3.766 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.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 initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001726/0.3008, allocations: 169.6 kB / 450.8 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.016e-05/0.3008, allocations: 31.62 kB / 450.8 MB, free: 3.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.3027, allocations: 1.371 MB / 452.2 MB, free: 2.172 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.3027, allocations: 19.97 kB / 452.2 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.3027, allocations: 0 / 452.2 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001643/0.3044, allocations: 1.464 MB / 453.7 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.3069, allocations: 2.139 MB / 455.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3069, allocations: 0 / 455.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004142/0.3074, allocations: 99.92 kB / 455.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003475/0.3077, allocations: 76.73 kB / 456 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.3078, allocations: 15.94 kB / 456 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003587/0.3081, allocations: 0.5953 MB / 456.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3081, allocations: 0 / 456.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.3099, allocations: 1.305 MB / 457.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.3101, allocations: 164.1 kB / 458.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.364e-05/0.3101, allocations: 11.98 kB / 458.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003147/0.3104, allocations: 47.94 kB / 458.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/0.3105, allocations: 31.95 kB / 458.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.3106, allocations: 15.98 kB / 458.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000226/0.3108, allocations: 235 kB / 458.4 MB, free: 11.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3108, allocations: 0 / 458.4 MB, free: 11.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0022/0.313, allocations: 0.859 MB / 459.3 MB, free: 10.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.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 (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.002955/0.316, allocations: 0.9715 MB / 460.3 MB, free: 9.895 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.3172, allocations: 0.6675 MB / 460.9 MB, free: 9.215 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3172, allocations: 0 / 460.9 MB, free: 9.215 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006466/0.3179, allocations: 424.7 kB / 461.3 MB, free: 8.801 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.3189, allocations: 200.5 kB / 461.5 MB, free: 8.609 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.3209, allocations: 1.592 MB / 463.1 MB, free: 6.988 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.3213, allocations: 0.8688 MB / 464 MB, free: 6.098 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.907e-05/0.3214, allocations: 47.42 kB / 464 MB, free: 6.051 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3214, allocations: 0 / 464 MB, free: 6.051 MB / 346.7 MB Notification: Performance of Templates: time 0.02987/0.3513, allocations: 24.49 MB / 488.5 MB, free: 13.53 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches