Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 110.2 kB / 18.25 MB, free: 4.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 195.3 kB / 19.18 MB, free: 3.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.1 MB / 225 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001215, allocations: 55.92 kB / 281.3 MB, free: 3.145 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08583/0.08706, allocations: 46.63 MB / 328 MB, free: 4.449 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03266/0.1198, allocations: 32.57 MB / 360.5 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.1372, allocations: 15.73 MB / 376.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003537/0.1377, allocations: 7.938 kB / 376.3 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008441/0.1385, allocations: 266.4 kB / 376.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007904/0.1393, allocations: 365.9 kB / 376.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1824/0.3217, allocations: 5.776 MB / 382.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001662/0.3234, allocations: 1.005 MB / 383.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/0.3237, allocations: 111.8 kB / 383.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005472/0.3292, allocations: 2.201 MB / 386 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004548/0.3297, allocations: 301.2 kB / 386.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.067e-05/0.3298, allocations: 41.16 kB / 386.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01234/0.3421, allocations: 5.932 MB / 392.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002296/0.3424, allocations: 113 kB / 392.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005446/0.3429, allocations: 231.2 kB / 392.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01012/0.3531, allocations: 3.797 MB / 396.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3531, allocations: 0 / 396.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3531, allocations: 0 / 396.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.3531, allocations: 0 / 396.4 MB, free: 11.11 MB / 318.1 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.003181/0.3563, allocations: 0.997 MB / 397.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3564, allocations: 10.28 kB / 397.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/0.3578, allocations: 141.6 kB / 397.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.3582, allocations: 326.2 kB / 397.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.3582, allocations: 23.69 kB / 397.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.041e-05/0.3582, allocations: 37.88 kB / 397.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.3594, allocations: 0.517 MB / 398.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.3594, allocations: 3.375 kB / 398.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.3595, allocations: 13.73 kB / 398.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3595, allocations: 6.5 kB / 398.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005688/0.3601, allocations: 331.1 kB / 398.8 MB, free: 10.12 MB / 318.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.00253/0.3626, allocations: 2.556 MB / 401.3 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.3631, allocations: 275.5 kB / 401.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.3633, allocations: 112.6 kB / 401.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06619/0.4295, allocations: 30.9 MB / 432.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.331e-05/0.4296, allocations: 39.12 kB / 432.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.524e-06/0.4296, allocations: 4 kB / 432.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.003896/0.4335, allocations: 1.197 MB / 433.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.4336, allocations: 55.41 kB / 433.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000445/0.434, allocations: 267.7 kB / 434.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.343e-05/0.4341, allocations: 30.27 kB / 434.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.4343, allocations: 191.5 kB / 434.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.44e-05/0.4344, allocations: 111.7 kB / 434.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.4345, allocations: 76.16 kB / 434.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.4347, allocations: 337.1 kB / 434.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.4348, allocations: 101.3 kB / 435 MB, free: 9.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.4351, allocations: 211.9 kB / 435.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004467/0.4355, allocations: 341.4 kB / 435.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4356, allocations: 0 / 435.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007438/0.4363, allocations: 424.1 kB / 435.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.4363, allocations: 4.5 kB / 435.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4364, allocations: 8 kB / 436 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002935/0.4367, allocations: 60.25 kB / 436 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003721/0.437, allocations: 93.67 kB / 436.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.4389, allocations: 2.526 MB / 438.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.4392, allocations: 13.95 kB / 438.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.4392, allocations: 15.12 kB / 438.7 MB, free: 5.461 MB / 350.1 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 (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002173/0.4394, allocations: 153.5 kB / 438.8 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.4395, allocations: 38.61 kB / 438.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.4406, allocations: 0.8596 MB / 439.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.4406, allocations: 11.86 kB / 439.7 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4406, allocations: 5.25 kB / 439.7 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009656/0.4416, allocations: 1.039 MB / 440.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.4434, allocations: 1.488 MB / 442.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.4435, allocations: 3.938 kB / 442.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.4437, allocations: 63.72 kB / 442.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003252/0.444, allocations: 68.7 kB / 442.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.4441, allocations: 7.984 kB / 442.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003859/0.4445, allocations: 0.5951 MB / 443 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4445, allocations: 0 / 443 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.4455, allocations: 0.8237 MB / 443.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.4457, allocations: 110 kB / 443.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.232e-05/0.4457, allocations: 15.92 kB / 443.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/0.446, allocations: 20.14 kB / 444 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.4461, allocations: 31.91 kB / 444 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-05/0.4462, allocations: 15.98 kB / 444 MB, free: 0.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002551/0.4464, allocations: 235.1 kB / 444.2 MB, free: 316 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4464, allocations: 0 / 444.2 MB, free: 316 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.004038/0.4505, allocations: 0.8589 MB / 445.1 MB, free: 15.45 MB / 366.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006653/0.4571, allocations: 0.9702 MB / 446.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.4585, allocations: 494.5 kB / 446.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.4585, allocations: 7.562 kB / 446.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003993/0.4589, allocations: 248.8 kB / 446.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.4601, allocations: 190.5 kB / 447 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001743/0.4619, allocations: 1.018 MB / 448 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.4623, allocations: 0.8211 MB / 448.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.273e-05/0.4624, allocations: 39.44 kB / 448.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4624, allocations: 0 / 448.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of Templates: time 0.03535/0.4978, allocations: 22.97 MB / 471.8 MB, free: 4.793 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins1/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches