Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009351/0.0009351, allocations: 98.06 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007897/0.0007898, allocations: 35.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1964, allocations: 49.45 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01321/0.2097, allocations: 13.73 MB / 413.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009871/0.2196, allocations: 12.48 MB / 425.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2197, allocations: 0 / 425.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003215/0.2201, allocations: 63.67 kB / 425.7 MB, free: 7.004 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002424/0.2204, allocations: 87.48 kB / 425.8 MB, free: 6.918 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01008/0.2305, allocations: 3.998 MB / 429.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002892/0.2308, allocations: 270.8 kB / 430.1 MB, free: 2.664 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.388e-05/0.2308, allocations: 17.39 kB / 430.1 MB, free: 2.648 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003907/0.2312, allocations: 191.4 kB / 430.3 MB, free: 2.461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.2313, allocations: 71.75 kB / 430.4 MB, free: 2.391 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.2314, allocations: 4 kB / 430.4 MB, free: 2.387 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01111/0.2425, allocations: 6.896 MB / 437.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.2426, allocations: 35.89 kB / 437.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2428, allocations: 67.67 kB / 437.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00988/0.2527, allocations: 3.883 MB / 441.2 MB, free: 7.492 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2527, allocations: 0 / 441.2 MB, free: 7.492 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2527, allocations: 0 / 441.2 MB, free: 7.492 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.2527, allocations: 3.938 kB / 441.2 MB, free: 7.488 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.004732/0.2575, allocations: 1.146 MB / 442.4 MB, free: 6.293 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2575, allocations: 11.97 kB / 442.4 MB, free: 6.281 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004719/0.258, allocations: 48.8 kB / 442.4 MB, free: 6.234 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.2583, allocations: 220.1 kB / 442.7 MB, free: 5.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.2583, allocations: 12.38 kB / 442.7 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.401e-05/0.2583, allocations: 16.38 kB / 442.7 MB, free: 5.953 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.2596, allocations: 384.8 kB / 443.1 MB, free: 5.547 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.2596, allocations: 4 kB / 443.1 MB, free: 5.543 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.2597, allocations: 8 kB / 443.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.2597, allocations: 4 kB / 443.1 MB, free: 5.531 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.2611, allocations: 357.2 kB / 443.4 MB, free: 5.184 MB / 314.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.001349/0.2624, allocations: 1.184 MB / 444.6 MB, free: 3.898 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008123/0.2632, allocations: 279.8 kB / 444.9 MB, free: 3.598 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002772/0.2635, allocations: 118.8 kB / 445 MB, free: 3.473 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09737/0.3609, allocations: 47.47 MB / 492.5 MB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.361, allocations: 38.56 kB / 492.5 MB, free: 14.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.361, allocations: 0 / 492.5 MB, free: 14.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006904/0.3679, allocations: 1.574 MB / 494.1 MB, free: 12.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.368, allocations: 106.8 kB / 494.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.3682, allocations: 125.7 kB / 494.3 MB, free: 12.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.3682, allocations: 29.7 kB / 494.3 MB, free: 12.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.755e-05/0.3683, allocations: 108.4 kB / 494.4 MB, free: 12.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.692e-05/0.3684, allocations: 118.4 kB / 494.6 MB, free: 12.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.3685, allocations: 65.59 kB / 494.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.3687, allocations: 326.8 kB / 494.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.3691, allocations: 131.9 kB / 495.1 MB, free: 11.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004266/0.3695, allocations: 202.8 kB / 495.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008027/0.3703, allocations: 346.5 kB / 495.6 MB, free: 11.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3703, allocations: 0 / 495.6 MB, free: 11.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001121/0.3714, allocations: 429.9 kB / 496 MB, free: 10.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3715, allocations: 8 kB / 496 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3715, allocations: 0 / 496 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.3717, allocations: 40.83 kB / 496.1 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004506/0.3722, allocations: 87.88 kB / 496.2 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003554/0.3726, allocations: 0.5485 MB / 496.7 MB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.3729, allocations: 24 kB / 496.7 MB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.735e-05/0.3729, allocations: 16.38 kB / 496.7 MB, free: 9.895 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 prepare postOptimizeDAE: time 0.0001467/0.3731, allocations: 141.8 kB / 496.9 MB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.3732, allocations: 19.81 kB / 496.9 MB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.3753, allocations: 1.451 MB / 498.4 MB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.019e-05/0.3753, allocations: 15.97 kB / 498.4 MB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3753, allocations: 4 kB / 498.4 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.3753, allocations: 0 / 498.4 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.3782, allocations: 1.979 MB / 0.4886 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.3782, allocations: 8 kB / 0.4886 GB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004431/0.3787, allocations: 79.88 kB / 0.4887 GB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002943/0.379, allocations: 76.62 kB / 0.4888 GB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.379, allocations: 12.06 kB / 0.4888 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003947/0.3794, allocations: 0.5913 MB / 0.4894 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3794, allocations: 4.031 kB / 0.4894 GB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3456/0.725, allocations: 63.56 MB / 0.5514 GB, free: 51.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/0.7251, allocations: 132.6 kB / 0.5516 GB, free: 51.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.7251, allocations: 12 kB / 0.5516 GB, free: 51.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.7255, allocations: 27.5 kB / 0.5516 GB, free: 51.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.519e-05/0.7256, allocations: 35.83 kB / 0.5516 GB, free: 51.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.7256, allocations: 23.92 kB / 0.5517 GB, free: 50.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.708e-05/0.7257, allocations: 91.27 kB / 0.5518 GB, free: 50.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7257, allocations: 4 kB / 0.5518 GB, free: 50.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008477/0.7342, allocations: 3.249 MB / 0.5549 GB, free: 47.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01963/0.7538, allocations: 2.419 MB / 0.5573 GB, free: 45.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.7553, allocations: 0.6053 MB / 0.5579 GB, free: 44.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.7553, allocations: 4 kB / 0.5579 GB, free: 44.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007118/0.7561, allocations: 0.5007 MB / 0.5584 GB, free: 44.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008055/0.7569, allocations: 76.42 kB / 0.5584 GB, free: 44.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003582/0.7605, allocations: 2.347 MB / 0.5607 GB, free: 41.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.7608, allocations: 0.8578 MB / 0.5616 GB, free: 41.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004986/0.7613, allocations: 162.8 kB / 0.5617 GB, free: 40.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.7615, allocations: 47.41 kB / 0.5618 GB, free: 40.82 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7615, allocations: 0 / 0.5618 GB, free: 40.82 MB / 378.7 MB Notification: Performance of Templates: time 0.3371/1.099, allocations: 144.9 MB / 0.7033 GB, free: 112 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches