Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.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.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001665/0.001665, allocations: 177.1 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.371/1.371, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007014/0.0007014, allocations: 95.83 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002935, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1863, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01169/0.198, allocations: 11.96 MB / 386.5 MB, free: 35.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009422/0.2075, allocations: 10.71 MB / 397.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.2076, allocations: 4 kB / 397.2 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.2079, allocations: 55.67 kB / 397.3 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/0.2081, allocations: 79.5 kB / 397.3 MB, free: 26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009481/0.2176, allocations: 3.866 MB / 401.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.2179, allocations: 234.9 kB / 401.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.221e-05/0.2179, allocations: 13.45 kB / 401.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003736/0.2183, allocations: 179.2 kB / 401.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.2185, allocations: 67.75 kB / 401.7 MB, free: 21.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.2185, allocations: 4 kB / 401.7 MB, free: 21.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009833/0.2283, allocations: 6.652 MB / 408.3 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.464e-05/0.2284, allocations: 31.89 kB / 408.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.582e-05/0.2284, allocations: 49.64 kB / 408.4 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00347/0.2319, allocations: 2.577 MB / 411 MB, free: 12.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2319, allocations: 0 / 411 MB, free: 12.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.232, allocations: 4 kB / 411 MB, free: 12.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.232, allocations: 0 / 411 MB, free: 12.32 MB / 298.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.004551/0.2365, allocations: 1.104 MB / 412.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2366, allocations: 8.031 kB / 412.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004824/0.2371, allocations: 67.7 kB / 412.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.2373, allocations: 218.8 kB / 412.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.2373, allocations: 12.28 kB / 412.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.392e-05/0.2374, allocations: 16 kB / 412.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.2385, allocations: 386.5 kB / 412.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.2386, allocations: 0 / 412.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.2386, allocations: 8 kB / 412.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.2386, allocations: 4 kB / 412.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.24, allocations: 380.2 kB / 413.2 MB, free: 10.02 MB / 298.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.001119/0.2411, allocations: 1.188 MB / 414.4 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007426/0.2418, allocations: 296.3 kB / 414.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002488/0.2421, allocations: 118.8 kB / 414.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08791/0.33, allocations: 47.87 MB / 462.7 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.3e-05/0.3301, allocations: 34.75 kB / 462.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.735e-06/0.3301, allocations: 0 / 462.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.006876/0.337, allocations: 1.612 MB / 464.3 MB, free: 1.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.3371, allocations: 114.7 kB / 464.4 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.3372, allocations: 129.6 kB / 464.5 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.3372, allocations: 37.7 kB / 464.6 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.191e-05/0.3373, allocations: 104.5 kB / 464.7 MB, free: 0.668 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.395e-05/0.3374, allocations: 122.3 kB / 464.8 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.138e-05/0.3374, allocations: 8 kB / 464.8 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3375, allocations: 322.8 kB / 465.1 MB, free: 220 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.3379, allocations: 143.7 kB / 465.3 MB, free: 76 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004252/0.3384, allocations: 206.6 kB / 465.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000402/0.3388, allocations: 155.8 kB / 465.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3388, allocations: 4 kB / 465.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001068/0.3399, allocations: 430 kB / 466 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3399, allocations: 8 kB / 466 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.3399, allocations: 0 / 466 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000243/0.3402, allocations: 36.83 kB / 466.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.3407, allocations: 100 kB / 466.2 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003533/0.341, allocations: 0.5407 MB / 466.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.3413, allocations: 28.08 kB / 466.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.3414, allocations: 27.88 kB / 466.8 MB, free: 14.49 MB / 362.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 (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 prepare postOptimizeDAE: time 0.000152/0.3416, allocations: 138.6 kB / 466.9 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.66e-05/0.3417, allocations: 15.81 kB / 466.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002114/0.3438, allocations: 1.455 MB / 468.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-05/0.3438, allocations: 27.98 kB / 468.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3438, allocations: 0 / 468.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3438, allocations: 7.984 kB / 468.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.3467, allocations: 1.99 MB / 470.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.3467, allocations: 4 kB / 470.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004368/0.3471, allocations: 87.86 kB / 470.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003474/0.3475, allocations: 76.91 kB / 470.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.3475, allocations: 11.98 kB / 470.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000337/0.3479, allocations: 0.5913 MB / 471.2 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3479, allocations: 0 / 471.2 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.35, allocations: 1.706 MB / 472.9 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.67e-05/0.3501, allocations: 132.3 kB / 473 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.354e-05/0.3502, allocations: 8 kB / 473 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.3506, allocations: 31.98 kB / 473 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.223e-05/0.3506, allocations: 28.28 kB / 473.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/0.3507, allocations: 23.98 kB / 473.1 MB, free: 8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.381e-05/0.3507, allocations: 99.14 kB / 473.2 MB, free: 7.902 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3508, allocations: 0 / 473.2 MB, free: 7.902 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002627/0.3534, allocations: 0.9527 MB / 474.1 MB, free: 6.949 MB / 362.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 (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.004422/0.3578, allocations: 1.127 MB / 475.3 MB, free: 5.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.359, allocations: 0.6049 MB / 475.9 MB, free: 5.207 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.359, allocations: 0 / 475.9 MB, free: 5.207 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007945/0.3598, allocations: 0.5131 MB / 476.4 MB, free: 4.691 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007122/0.3606, allocations: 79.92 kB / 476.5 MB, free: 4.613 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.363, allocations: 1.586 MB / 478.1 MB, free: 2.977 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.3634, allocations: 0.8139 MB / 478.9 MB, free: 2.141 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.3635, allocations: 39.41 kB / 478.9 MB, free: 2.102 MB / 362.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3635, allocations: 0 / 478.9 MB, free: 2.102 MB / 362.7 MB Notification: Performance of Templates: time 0.02981/0.3934, allocations: 21.77 MB / 0.4889 GB, free: 12.3 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches