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.WaterIF97OnePhase_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.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001359/0.001359, allocations: 177.2 kB / 16.41 MB, free: 5.727 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.268/1.268, 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.0006701/0.0006702, allocations: 90.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002922, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2032, 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.WaterIF97OnePhase_ph): time 0.02054/0.2238, allocations: 30.13 MB / 404.7 MB, free: 18.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.2348, allocations: 14.62 MB / 419.3 MB, free: 4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003073/0.2351, allocations: 8 kB / 419.3 MB, free: 3.992 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005322/0.2357, allocations: 210.8 kB / 419.5 MB, free: 3.785 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000484/0.2362, allocations: 342.2 kB / 419.9 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01042/0.2466, allocations: 4.449 MB / 424.3 MB, free: 15 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.2478, allocations: 1.212 MB / 425.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.248, allocations: 85 kB / 425.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004636/0.2526, allocations: 3.318 MB / 428.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/0.253, allocations: 286.9 kB / 429.2 MB, free: 10.1 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/0.2531, allocations: 16 kB / 429.2 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009994/0.2631, allocations: 5.806 MB / 435 MB, free: 4.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.2633, allocations: 87.7 kB / 435.1 MB, free: 4.184 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.2635, allocations: 109.5 kB / 435.2 MB, free: 4.07 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004401/0.2679, allocations: 2.592 MB / 437.8 MB, free: 1.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2679, allocations: 4 kB / 437.8 MB, free: 1.469 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.2679, allocations: 0 / 437.8 MB, free: 1.469 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.268, allocations: 0 / 437.8 MB, free: 1.469 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.002096/0.2701, allocations: 0.9045 MB / 438.7 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.2701, allocations: 12.03 kB / 438.7 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/0.2713, allocations: 163.4 kB / 438.9 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.2717, allocations: 310.5 kB / 439.2 MB, free: 0 / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.2718, allocations: 24.73 kB / 439.2 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.69e-05/0.2718, allocations: 43.88 kB / 439.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.273, allocations: 0.5229 MB / 439.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.273, allocations: 3.938 kB / 439.8 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.036e-05/0.2731, allocations: 12 kB / 439.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.2731, allocations: 8 kB / 439.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005769/0.2737, allocations: 325.9 kB / 440.1 MB, free: 15.02 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.002693/0.2764, allocations: 2.565 MB / 442.7 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005124/0.2769, allocations: 274.1 kB / 442.9 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.2771, allocations: 116.6 kB / 443.1 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0596/0.3367, allocations: 31.21 MB / 474.3 MB, free: 9.062 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.3367, allocations: 50.5 kB / 474.3 MB, free: 9.004 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.625e-06/0.3368, allocations: 0 / 474.3 MB, free: 9.004 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.003388/0.3401, allocations: 1.211 MB / 475.5 MB, free: 7.715 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.3402, allocations: 55.41 kB / 475.6 MB, free: 7.648 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.3405, allocations: 262.5 kB / 475.8 MB, free: 7.383 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.3405, allocations: 33.7 kB / 475.9 MB, free: 7.344 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3406, allocations: 192 kB / 476.1 MB, free: 7.152 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.638e-05/0.3407, allocations: 106.4 kB / 476.2 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.629e-05/0.3408, allocations: 12 kB / 476.2 MB, free: 7.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3409, allocations: 338.8 kB / 476.5 MB, free: 6.695 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.341, allocations: 88.84 kB / 476.6 MB, free: 6.609 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.3413, allocations: 214.9 kB / 476.8 MB, free: 6.348 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.3415, allocations: 131.9 kB / 476.9 MB, free: 6.219 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3415, allocations: 0 / 476.9 MB, free: 6.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007111/0.3422, allocations: 411.1 kB / 477.3 MB, free: 5.805 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3423, allocations: 11.95 kB / 477.3 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3423, allocations: 4.5 kB / 477.4 MB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002708/0.3426, allocations: 69.67 kB / 477.4 MB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.3429, allocations: 87.84 kB / 477.5 MB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.3445, allocations: 2.415 MB / 479.9 MB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.3448, allocations: 31.98 kB / 480 MB, free: 3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.3448, allocations: 23.94 kB / 480 MB, free: 2.977 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * 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: 2 * 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: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.345, allocations: 169.7 kB / 480.1 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.594e-05/0.3451, allocations: 27.72 kB / 480.2 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.3461, allocations: 0.8707 MB / 481 MB, free: 1.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.3461, allocations: 8 kB / 481 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3461, allocations: 7.891 kB / 481.1 MB, free: 1.871 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008585/0.347, allocations: 1.041 MB / 482.1 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.3487, allocations: 1.485 MB / 483.6 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3487, allocations: 0 / 483.6 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.3489, allocations: 59.91 kB / 483.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003949/0.3493, allocations: 76.73 kB / 483.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.3494, allocations: 8 kB / 483.7 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003337/0.3497, allocations: 0.5952 MB / 484.3 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3497, allocations: 0 / 484.3 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008871/0.3506, allocations: 0.8276 MB / 485.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.3507, allocations: 136.4 kB / 485.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.3508, allocations: 8 kB / 485.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003595/0.3512, allocations: 40.12 kB / 485.3 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.3512, allocations: 15.97 kB / 485.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.3512, allocations: 19.92 kB / 485.4 MB, free: 13.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002141/0.3514, allocations: 231.1 kB / 485.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3515, allocations: 4 kB / 485.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002202/0.3537, allocations: 0.859 MB / 486.4 MB, free: 12.25 MB / 378.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: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.004033/0.3577, allocations: 0.9608 MB / 487.4 MB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008211/0.3585, allocations: 482.2 kB / 487.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3586, allocations: 0 / 487.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.3589, allocations: 250.5 kB / 488.1 MB, free: 10.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.36, allocations: 192.4 kB / 488.3 MB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.3615, allocations: 1.226 MB / 489.5 MB, free: 9.113 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.3619, allocations: 0.8211 MB / 490.4 MB, free: 8.266 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.239e-05/0.362, allocations: 35.44 kB / 490.4 MB, free: 8.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.362, allocations: 0 / 490.4 MB, free: 8.23 MB / 378.7 MB Notification: Performance of Templates: time 0.02941/0.3914, allocations: 22.91 MB / 0.5013 GB, free: 1.289 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_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/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches