Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.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.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater") [: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.002418/0.002418, allocations: 180.4 kB / 8.152 MB, free: 2.188 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.741/1.741, allocations: 205.2 MB / 213.8 MB, free: 13.92 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: 99.17 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.314e-06/7.424e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2326, allocations: 47.54 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4919/0.7246, allocations: 271.9 MB / 0.6188 GB, free: 10.19 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.7249, allocations: 60.72 kB / 0.6189 GB, free: 10.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03127/0.7562, allocations: 9.106 MB / 0.6278 GB, free: 2.906 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.7562, allocations: 4 kB / 0.6278 GB, free: 2.902 MB / 394.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.001052/0.7573, allocations: 460.1 kB / 0.6282 GB, free: 2.422 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.7573, allocations: 8.031 kB / 0.6282 GB, free: 2.414 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/0.7576, allocations: 19.89 kB / 0.6283 GB, free: 2.395 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.7579, allocations: 213.9 kB / 0.6285 GB, free: 2.152 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.7579, allocations: 4.656 kB / 0.6285 GB, free: 2.148 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.993e-05/0.7579, allocations: 8 kB / 0.6285 GB, free: 2.141 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003316/0.7583, allocations: 109.3 kB / 0.6286 GB, free: 2.066 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.7586, allocations: 187.3 kB / 0.6288 GB, free: 1.895 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.7587, allocations: 0 / 0.6288 GB, free: 1.895 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.7587, allocations: 4 kB / 0.6288 GB, free: 1.891 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.974e-06/0.7587, allocations: 4 kB / 0.6288 GB, free: 1.887 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.7603, allocations: 0.9109 MB / 0.6297 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.7606, allocations: 115.1 kB / 0.6298 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.818e-05/0.7607, allocations: 43.48 kB / 0.6298 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005909/0.7613, allocations: 0.509 MB / 0.6303 GB, free: 320 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.7614, allocations: 41.97 kB / 0.6304 GB, free: 272 kB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.7614, allocations: 0 / 0.6304 GB, free: 272 kB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.002937/0.7643, allocations: 0.5928 MB / 0.6309 GB, free: 15.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.7644, allocations: 55.41 kB / 0.631 GB, free: 15.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.7645, allocations: 132.8 kB / 0.6311 GB, free: 15.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.7646, allocations: 25.7 kB / 0.6311 GB, free: 15.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.7647, allocations: 213.4 kB / 0.6313 GB, free: 15.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.447e-05/0.7648, allocations: 70.02 kB / 0.6314 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.17e-05/0.7648, allocations: 0 / 0.6314 GB, free: 15.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.765, allocations: 318.3 kB / 0.6317 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.7652, allocations: 61.86 kB / 0.6318 GB, free: 14.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.7654, allocations: 172.6 kB / 0.6319 GB, free: 14.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.7657, allocations: 76.09 kB / 0.632 GB, free: 14.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.7657, allocations: 0 / 0.632 GB, free: 14.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006933/0.7664, allocations: 255.2 kB / 0.6322 GB, free: 14.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.7665, allocations: 4 kB / 0.6323 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.7665, allocations: 4 kB / 0.6323 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.7665, allocations: 8 kB / 0.6323 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007242/0.7673, allocations: 79.92 kB / 0.6323 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.7673, allocations: 7.984 kB / 0.6323 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.7677, allocations: 12.5 kB / 0.6324 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.7678, allocations: 19.67 kB / 0.6324 GB, free: 14.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.71e-05/0.7679, allocations: 41.48 kB / 0.6324 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.767e-05/0.7679, allocations: 11.91 kB / 0.6324 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007549/0.7687, allocations: 197.4 kB / 0.6326 GB, free: 14.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.7687, allocations: 4 kB / 0.6326 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.7687, allocations: 5.875 kB / 0.6326 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.23e-05/0.7688, allocations: 3.984 kB / 0.6326 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.7704, allocations: 0.5159 MB / 0.6331 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.7704, allocations: 12.06 kB / 0.6331 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005689/0.771, allocations: 55.45 kB / 0.6332 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.771, allocations: 4 kB / 0.6332 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.771, allocations: 0 / 0.6332 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.771, allocations: 4 kB / 0.6332 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.771, allocations: 0 / 0.6332 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007565/0.7718, allocations: 393.6 kB / 0.6336 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.518e-05/0.7719, allocations: 88.92 kB / 0.6337 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/0.772, allocations: 8.047 kB / 0.6337 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004394/0.7724, allocations: 8 kB / 0.6337 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.7725, allocations: 16.92 kB / 0.6337 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.7725, allocations: 7.984 kB / 0.6337 GB, free: 12.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.212e-05/0.7726, allocations: 108.5 kB / 0.6338 GB, free: 12.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005015/0.7731, allocations: 59.94 kB / 0.6339 GB, free: 12.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000279/0.7734, allocations: 135.1 kB / 0.634 GB, free: 12.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004559/0.7739, allocations: 168.3 kB / 0.6342 GB, free: 12.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.7739, allocations: 4 kB / 0.6342 GB, free: 12.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.7741, allocations: 73.05 kB / 0.6342 GB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.7746, allocations: 39.09 kB / 0.6343 GB, free: 12.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.7757, allocations: 310.7 kB / 0.6346 GB, free: 12.13 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004775/0.7762, allocations: 0.7519 MB / 0.6353 GB, free: 11.36 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.7762, allocations: 0 / 0.6353 GB, free: 11.36 MB / 410.7 MB Notification: Performance of Templates: time 0.006741/0.783, allocations: 2.759 MB / 0.638 GB, free: 8.625 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches