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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 182.4 kB / 8.137 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.223/1.223, allocations: 221.4 MB / 229.9 MB, free: 3.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009651/0.0009652, allocations: 95.44 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.6e-06/5.62e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2643, allocations: 50.41 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.584/5.849, allocations: 2.786 GB / 3.164 GB, free: 25.95 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/5.849, allocations: 68.44 kB / 3.164 GB, free: 25.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.5365/6.385, allocations: 105.2 MB / 3.267 GB, free: 95.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.049e-05/6.385, allocations: 5.219 kB / 3.267 GB, free: 95.89 MB / 442.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.007787/6.393, allocations: 1.168 MB / 3.268 GB, free: 94.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/6.393, allocations: 12.03 kB / 3.268 GB, free: 94.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005474/6.394, allocations: 59.23 kB / 3.268 GB, free: 94.78 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/6.394, allocations: 218.2 kB / 3.268 GB, free: 94.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.443e-05/6.394, allocations: 12.75 kB / 3.268 GB, free: 94.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/6.394, allocations: 8 kB / 3.268 GB, free: 94.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004172/6.395, allocations: 215.8 kB / 3.268 GB, free: 94.33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/6.395, allocations: 193.1 kB / 3.269 GB, free: 94.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/6.395, allocations: 4 kB / 3.269 GB, free: 94.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/6.395, allocations: 4 kB / 3.269 GB, free: 94.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/6.395, allocations: 4 kB / 3.269 GB, free: 94.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/6.396, allocations: 1.166 MB / 3.27 GB, free: 92.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/6.397, allocations: 123.4 kB / 3.27 GB, free: 92.83 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/6.397, allocations: 98.42 kB / 3.27 GB, free: 92.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09191/6.489, allocations: 47.22 MB / 3.316 GB, free: 40.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/6.489, allocations: 34.75 kB / 3.316 GB, free: 40.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/6.489, allocations: 0 / 3.316 GB, free: 40.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.003638/6.492, allocations: 1.08 MB / 3.317 GB, free: 39.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/6.492, allocations: 110.8 kB / 3.317 GB, free: 39.06 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/6.493, allocations: 113 kB / 3.317 GB, free: 38.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/6.493, allocations: 25.7 kB / 3.317 GB, free: 38.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.648e-05/6.493, allocations: 108.4 kB / 3.318 GB, free: 38.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.479e-05/6.493, allocations: 118.3 kB / 3.318 GB, free: 38.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/6.493, allocations: 0 / 3.318 GB, free: 38.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.552e-05/6.493, allocations: 322.8 kB / 3.318 GB, free: 38.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/6.493, allocations: 106.4 kB / 3.318 GB, free: 38.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/6.493, allocations: 179.3 kB / 3.318 GB, free: 38.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/6.493, allocations: 124.4 kB / 3.318 GB, free: 37.94 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/6.493, allocations: 0 / 3.318 GB, free: 37.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009932/6.494, allocations: 434 kB / 3.319 GB, free: 37.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/6.494, allocations: 8 kB / 3.319 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/6.495, allocations: 0.5625 kB / 3.319 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001784/6.495, allocations: 28.84 kB / 3.319 GB, free: 37.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004854/6.495, allocations: 100 kB / 3.319 GB, free: 37.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003128/6.496, allocations: 0.5562 MB / 3.319 GB, free: 36.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/6.496, allocations: 24.75 kB / 3.319 GB, free: 36.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/6.496, allocations: 19.91 kB / 3.32 GB, free: 36.74 MB / 442.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 () * 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.0001108/6.496, allocations: 116.9 kB / 3.32 GB, free: 36.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003297/6.496, allocations: 95.7 kB / 3.32 GB, free: 36.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/6.498, allocations: 1.368 MB / 3.321 GB, free: 35.15 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/6.498, allocations: 24 kB / 3.321 GB, free: 35.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/6.498, allocations: 0 / 3.321 GB, free: 35.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/6.498, allocations: 3.984 kB / 3.321 GB, free: 35.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/6.5, allocations: 1.711 MB / 3.323 GB, free: 33.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/6.5, allocations: 4.375 kB / 3.323 GB, free: 33.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/6.5, allocations: 83.86 kB / 3.323 GB, free: 33.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002178/6.501, allocations: 64.92 kB / 3.323 GB, free: 33.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/6.501, allocations: 11.98 kB / 3.323 GB, free: 33.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002721/6.501, allocations: 0.6185 MB / 3.324 GB, free: 32.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/6.501, allocations: 3.984 kB / 3.324 GB, free: 32.55 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001585/6.503, allocations: 1.785 MB / 3.325 GB, free: 30.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/6.503, allocations: 108.6 kB / 3.325 GB, free: 30.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/6.503, allocations: 7.984 kB / 3.325 GB, free: 30.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004058/6.503, allocations: 23.98 kB / 3.325 GB, free: 30.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.906e-05/6.503, allocations: 27.89 kB / 3.325 GB, free: 30.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.711e-05/6.503, allocations: 19.98 kB / 3.325 GB, free: 30.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.383e-05/6.503, allocations: 83.28 kB / 3.326 GB, free: 30.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004828/6.508, allocations: 0.9795 MB / 3.326 GB, free: 29.44 MB / 442.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: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.00604/6.514, allocations: 1.37 MB / 3.328 GB, free: 28.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001047/6.515, allocations: 0.6536 MB / 3.328 GB, free: 27.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/6.515, allocations: 4 kB / 3.328 GB, free: 27.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/6.516, allocations: 0.6143 MB / 3.329 GB, free: 26.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005911/6.516, allocations: 64 kB / 3.329 GB, free: 26.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/6.518, allocations: 1.012 MB / 3.33 GB, free: 25.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/6.519, allocations: 0.8513 MB / 3.331 GB, free: 24.86 MB / 442.7 MB Notification: Performance of SimCode: time 6.61e-07/6.519, allocations: 0 / 3.331 GB, free: 24.86 MB / 442.7 MB Notification: Performance of Templates: time 0.2647/6.783, allocations: 29.47 MB / 3.36 GB, free: 139.3 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/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