Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001037/0.001037, allocations: 187 kB / 17.92 MB, free: 3.855 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.16/1.16, allocations: 205.1 MB / 223.7 MB, free: 8.477 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.0008934/0.0008934, allocations: 97.23 kB / 271.1 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000772/0.0007723, allocations: 39.94 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1851, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01212/0.1973, allocations: 13.73 MB / 387.5 MB, free: 35.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009442/0.2067, allocations: 12.49 MB / 400 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.2069, allocations: 4 kB / 400 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.2072, allocations: 67.61 kB / 400.1 MB, free: 23.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.2075, allocations: 75.5 kB / 400.2 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009765/0.2173, allocations: 4.005 MB / 404.2 MB, free: 19.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002718/0.2175, allocations: 266.9 kB / 404.4 MB, free: 18.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.468e-05/0.2176, allocations: 9.453 kB / 404.4 MB, free: 18.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003582/0.218, allocations: 191.3 kB / 404.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.2181, allocations: 75.69 kB / 404.7 MB, free: 18.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.2181, allocations: 8 kB / 404.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009159/0.2273, allocations: 6.899 MB / 411.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.036e-05/0.2273, allocations: 27.91 kB / 411.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.898e-05/0.2274, allocations: 63.73 kB / 411.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006733/0.2342, allocations: 3.887 MB / 415.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2342, allocations: 3.984 kB / 415.6 MB, free: 7.648 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2342, allocations: 0 / 415.6 MB, free: 7.648 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.2342, allocations: 0 / 415.6 MB, free: 7.648 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.004213/0.2384, allocations: 1.139 MB / 416.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.2385, allocations: 8.031 kB / 416.7 MB, free: 6.453 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004274/0.2389, allocations: 60.7 kB / 416.8 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.2391, allocations: 220.2 kB / 417 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.2392, allocations: 8.375 kB / 417 MB, free: 6.133 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.2392, allocations: 20.28 kB / 417 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.2402, allocations: 380 kB / 417.4 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.2403, allocations: 0 / 417.4 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.2403, allocations: 8 kB / 417.4 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.2403, allocations: 4 kB / 417.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.2415, allocations: 363.5 kB / 417.8 MB, free: 5.344 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.0009806/0.2425, allocations: 1.188 MB / 419 MB, free: 4.055 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006877/0.2432, allocations: 275.8 kB / 419.2 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.2435, allocations: 118.8 kB / 419.4 MB, free: 3.633 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0874/0.3309, allocations: 47.44 MB / 466.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.3309, allocations: 38.56 kB / 466.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.3309, allocations: 0 / 466.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.006218/0.3372, allocations: 1.584 MB / 468.4 MB, free: 12.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.3372, allocations: 110.8 kB / 468.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.267e-05/0.3373, allocations: 125.9 kB / 468.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.3374, allocations: 29.7 kB / 468.7 MB, free: 12.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.3374, allocations: 108.5 kB / 468.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.684e-05/0.3375, allocations: 114.4 kB / 468.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.3376, allocations: 69.59 kB / 469 MB, free: 12.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.3377, allocations: 326.8 kB / 469.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.3381, allocations: 139.7 kB / 469.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003797/0.3385, allocations: 194.6 kB / 469.6 MB, free: 11.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007484/0.3392, allocations: 346.6 kB / 469.9 MB, free: 11.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3392, allocations: 0 / 469.9 MB, free: 11.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009521/0.3402, allocations: 426 kB / 470.4 MB, free: 10.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.3402, allocations: 8 kB / 470.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3402, allocations: 0 / 470.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001999/0.3404, allocations: 33.06 kB / 470.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.3409, allocations: 91.88 kB / 470.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003155/0.3412, allocations: 0.5561 MB / 471 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.3415, allocations: 27.92 kB / 471.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.3415, allocations: 24.08 kB / 471.1 MB, free: 10.05 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 (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.000117/0.3416, allocations: 132.5 kB / 471.2 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.849e-05/0.3417, allocations: 15.81 kB / 471.2 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.3436, allocations: 1.452 MB / 472.7 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/0.3436, allocations: 27.95 kB / 472.7 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3437, allocations: 0 / 472.7 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3437, allocations: 4 kB / 472.7 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.3462, allocations: 1.983 MB / 474.7 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3462, allocations: 4 kB / 474.7 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.3466, allocations: 79.86 kB / 474.8 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002692/0.3469, allocations: 72.83 kB / 474.9 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.514e-05/0.347, allocations: 23.92 kB / 474.9 MB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000303/0.3473, allocations: 0.5836 MB / 475.5 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3473, allocations: 4.031 kB / 475.5 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.307/0.6544, allocations: 63.55 MB / 0.5264 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.6544, allocations: 134.7 kB / 0.5265 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/0.6545, allocations: 15.67 kB / 0.5265 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.6548, allocations: 23.2 kB / 0.5266 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.6549, allocations: 33.89 kB / 0.5266 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.6549, allocations: 19.36 kB / 0.5266 GB, free: 106.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.276e-05/0.655, allocations: 86.61 kB / 0.5267 GB, free: 106.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.655, allocations: 288 / 0.5267 GB, free: 106.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006483/0.6615, allocations: 3.25 MB / 0.5299 GB, free: 106.6 MB / 394.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.01419/0.6757, allocations: 2.409 MB / 0.5322 GB, free: 105.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.6769, allocations: 0.6195 MB / 0.5328 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.6769, allocations: 0 / 0.5328 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005881/0.6775, allocations: 0.5096 MB / 0.5333 GB, free: 104.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007044/0.6782, allocations: 80.36 kB / 0.5334 GB, free: 104.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.6808, allocations: 2.351 MB / 0.5357 GB, free: 102.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.681, allocations: 0.8592 MB / 0.5365 GB, free: 101.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.6814, allocations: 154 kB / 0.5367 GB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.6816, allocations: 50.38 kB / 0.5367 GB, free: 101.4 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.6816, allocations: 0 / 0.5367 GB, free: 101.4 MB / 394.7 MB Notification: Performance of Templates: time 0.2639/0.9454, allocations: 144.8 MB / 0.6782 GB, free: 120.4 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches