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") [: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 3.2.3+maint.om/package.mo): time 0.002587/0.002586, allocations: 175.4 kB / 8.15 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.764/1.764, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.001255/0.001255, allocations: 93.88 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.154e-06/7.595e-06, allocations: 0 / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2344, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.263/6.498, allocations: 2.781 GB / 3.134 GB, free: 82.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/6.498, allocations: 70.47 kB / 3.135 GB, free: 82.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4929/6.991, allocations: 104.1 MB / 3.236 GB, free: 6.211 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.772e-05/6.991, allocations: 8 kB / 3.236 GB, free: 6.203 MB / 426.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.009416/7.001, allocations: 1.175 MB / 3.237 GB, free: 4.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/7.001, allocations: 11.97 kB / 3.237 GB, free: 4.969 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007704/7.002, allocations: 60.98 kB / 3.237 GB, free: 4.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/7.002, allocations: 214.9 kB / 3.238 GB, free: 4.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/7.002, allocations: 8 kB / 3.238 GB, free: 4.652 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.727e-05/7.002, allocations: 11.91 kB / 3.238 GB, free: 4.641 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006492/7.003, allocations: 208.5 kB / 3.238 GB, free: 4.438 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003846/7.003, allocations: 200.9 kB / 3.238 GB, free: 4.215 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/7.003, allocations: 3.938 kB / 3.238 GB, free: 4.211 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/7.003, allocations: 4 kB / 3.238 GB, free: 4.207 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/7.003, allocations: 4 kB / 3.238 GB, free: 4.203 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/7.005, allocations: 1.166 MB / 3.239 GB, free: 2.949 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/7.005, allocations: 131.3 kB / 3.239 GB, free: 2.797 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/7.005, allocations: 90.98 kB / 3.239 GB, free: 2.699 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3281/7.334, allocations: 47.21 MB / 3.286 GB, free: 90.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/7.334, allocations: 38 kB / 3.286 GB, free: 90.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.485e-06/7.334, allocations: 0 / 3.286 GB, free: 90.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.005809/7.34, allocations: 1.077 MB / 3.287 GB, free: 90.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/7.34, allocations: 115.5 kB / 3.287 GB, free: 90.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/7.34, allocations: 107.1 kB / 3.287 GB, free: 90.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/7.34, allocations: 25.7 kB / 3.287 GB, free: 90.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.506e-05/7.34, allocations: 175.5 kB / 3.287 GB, free: 89.97 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/7.34, allocations: 110.4 kB / 3.287 GB, free: 89.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/7.34, allocations: 0 / 3.287 GB, free: 89.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.547e-05/7.34, allocations: 327.8 kB / 3.287 GB, free: 89.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/7.34, allocations: 108.1 kB / 3.288 GB, free: 89.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/7.341, allocations: 171.1 kB / 3.288 GB, free: 89.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005575/7.341, allocations: 128.4 kB / 3.288 GB, free: 89.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/7.341, allocations: 0 / 3.288 GB, free: 89.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001727/7.343, allocations: 435.1 kB / 3.288 GB, free: 89.47 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/7.343, allocations: 6.875 kB / 3.288 GB, free: 89.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/7.343, allocations: 0 / 3.288 GB, free: 89.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002722/7.343, allocations: 34.98 kB / 3.288 GB, free: 89.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009059/7.344, allocations: 96.41 kB / 3.288 GB, free: 89.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005004/7.345, allocations: 0.553 MB / 3.289 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/7.345, allocations: 22.92 kB / 3.289 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.837e-05/7.346, allocations: 18 kB / 3.289 GB, free: 88.94 MB / 426.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.000139/7.346, allocations: 37.17 kB / 3.289 GB, free: 88.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005039/7.346, allocations: 94.55 kB / 3.289 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002997/7.349, allocations: 1.377 MB / 3.29 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.556e-05/7.349, allocations: 15.95 kB / 3.29 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/7.349, allocations: 0 / 3.29 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/7.349, allocations: 3.844 kB / 3.29 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003474/7.353, allocations: 1.717 MB / 3.292 GB, free: 88.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/7.353, allocations: 0 / 3.292 GB, free: 88.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008697/7.354, allocations: 81.98 kB / 3.292 GB, free: 88.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003666/7.354, allocations: 72.83 kB / 3.292 GB, free: 88.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.88e-05/7.354, allocations: 18.03 kB / 3.292 GB, free: 88.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004628/7.355, allocations: 0.6117 MB / 3.293 GB, free: 87.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/7.355, allocations: 5.375 kB / 3.293 GB, free: 87.86 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002829/7.358, allocations: 1.788 MB / 3.295 GB, free: 87.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/7.358, allocations: 104.5 kB / 3.295 GB, free: 87.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.926e-05/7.358, allocations: 6.281 kB / 3.295 GB, free: 87.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007005/7.358, allocations: 32.73 kB / 3.295 GB, free: 87.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-05/7.359, allocations: 26.92 kB / 3.295 GB, free: 87.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/7.359, allocations: 18.95 kB / 3.295 GB, free: 87.28 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.623e-05/7.359, allocations: 95.8 kB / 3.295 GB, free: 87.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005189/7.364, allocations: 0.9689 MB / 3.296 GB, free: 87.21 MB / 426.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.01045/7.374, allocations: 1.339 MB / 3.297 GB, free: 87.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001597/7.376, allocations: 0.6635 MB / 3.298 GB, free: 87.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/7.376, allocations: 448 / 3.298 GB, free: 87.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/7.377, allocations: 0.6137 MB / 3.298 GB, free: 87.01 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/7.378, allocations: 70.95 kB / 3.298 GB, free: 87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/7.381, allocations: 1.039 MB / 3.299 GB, free: 86.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005419/7.382, allocations: 0.8402 MB / 3.3 GB, free: 85.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.352e-06/7.382, allocations: 0 / 3.3 GB, free: 85.96 MB / 426.7 MB Notification: Performance of Templates: time 0.05172/7.434, allocations: 23.61 MB / 3.323 GB, free: 83.26 MB / 426.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/jenkins1/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