Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.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.TestOnly.FlueGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium2.T|medium2.X.1.|medium2.X.2.|medium2.X.3.|medium2.X.4.|medium2.p|state.T|state.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas") translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium2.T|medium2.X.1.|medium2.X.2.|medium2.X.3.|medium2.X.4.|medium2.p|state.T|state.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas") [: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.002496/0.002496, allocations: 175.9 kB / 8.151 MB, free: 2.215 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.939/1.939, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.001287/0.001287, allocations: 91.88 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.158e-06/9.287e-06, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2943, allocations: 47.56 MB / 361.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.624/1.918, allocations: 0.7538 GB / 1.107 GB, free: 37.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/1.918, allocations: 75.02 kB / 1.107 GB, free: 37.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.3814/2.3, allocations: 61.2 MB / 1.167 GB, free: 138.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.576e-05/2.3, allocations: 0 / 1.167 GB, free: 138.7 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008247/2.301, allocations: 468.3 kB / 1.167 GB, free: 138.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/2.301, allocations: 11.05 kB / 1.167 GB, free: 138.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01055/2.311, allocations: 0.8379 MB / 1.168 GB, free: 138.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007272/2.312, allocations: 280.5 kB / 1.169 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/2.312, allocations: 11.31 kB / 1.169 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/2.312, allocations: 9.406 kB / 1.169 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002055/2.314, allocations: 0.6552 MB / 1.169 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/2.315, allocations: 417.3 kB / 1.17 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/2.316, allocations: 0 / 1.17 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-05/2.316, allocations: 3.906 kB / 1.17 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/2.316, allocations: 8.844 kB / 1.17 GB, free: 138 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005273/2.321, allocations: 1.321 MB / 1.171 GB, free: 137.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008412/2.322, allocations: 317 kB / 1.171 GB, free: 137.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005286/2.322, allocations: 225 kB / 1.171 GB, free: 137.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009121/2.323, allocations: 250 kB / 1.172 GB, free: 137.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/2.323, allocations: 36.81 kB / 1.172 GB, free: 137.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=28): time 2.845e-06/2.323, allocations: 0 / 1.172 GB, free: 137.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=28): time 0.001522/2.325, allocations: 449.4 kB / 1.172 GB, free: 137 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/2.325, allocations: 84.98 kB / 1.172 GB, free: 136.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/2.325, allocations: 122 kB / 1.172 GB, free: 136.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/2.325, allocations: 25.7 kB / 1.172 GB, free: 136.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.992e-05/2.325, allocations: 184.8 kB / 1.173 GB, free: 136.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/2.325, allocations: 101.1 kB / 1.173 GB, free: 136.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-05/2.325, allocations: 0 / 1.173 GB, free: 136.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.297e-05/2.326, allocations: 330.2 kB / 1.173 GB, free: 136.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005175/2.326, allocations: 197.8 kB / 1.173 GB, free: 136.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005786/2.327, allocations: 308.4 kB / 1.173 GB, free: 135.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006756/2.327, allocations: 236.2 kB / 1.174 GB, free: 135.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/2.327, allocations: 0 / 1.174 GB, free: 135.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001553/2.329, allocations: 0.529 MB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/2.329, allocations: 6.406 kB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/2.329, allocations: 6.812 kB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/2.329, allocations: 9.922 kB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/2.33, allocations: 81.72 kB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/2.33, allocations: 11.5 kB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008679/2.331, allocations: 35.53 kB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/2.331, allocations: 25.38 kB / 1.174 GB, free: 135.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 0.0001992/2.332, allocations: 45.58 kB / 1.174 GB, free: 135.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/2.332, allocations: 12.94 kB / 1.174 GB, free: 135.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/2.334, allocations: 0.551 MB / 1.175 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/2.334, allocations: 3.906 kB / 1.175 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/2.334, allocations: 0 / 1.175 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/2.334, allocations: 3.844 kB / 1.175 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/2.335, allocations: 0.5018 MB / 1.175 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/2.335, allocations: 0 / 1.175 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/2.336, allocations: 68.48 kB / 1.176 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/2.336, allocations: 2.25 kB / 1.176 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.252e-05/2.336, allocations: 9.172 kB / 1.176 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/2.336, allocations: 240 / 1.176 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/2.336, allocations: 7.547 kB / 1.176 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001775/2.338, allocations: 0.73 MB / 1.176 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.668e-05/2.338, allocations: 98.8 kB / 1.176 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/2.339, allocations: 6.156 kB / 1.176 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/2.34, allocations: 14.42 kB / 1.176 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.123e-05/2.34, allocations: 13.81 kB / 1.176 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/2.34, allocations: 22.84 kB / 1.176 GB, free: 134.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000106/2.34, allocations: 106.4 kB / 1.176 GB, free: 134.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001276/2.341, allocations: 197.8 kB / 1.177 GB, free: 134.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (state.p,state.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.002587/2.344, allocations: 0.8758 MB / 1.178 GB, free: 134 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/2.345, allocations: 479.5 kB / 1.178 GB, free: 133.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/2.345, allocations: 0 / 1.178 GB, free: 133.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006474/2.346, allocations: 240.6 kB / 1.178 GB, free: 133.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/2.347, allocations: 80.48 kB / 1.178 GB, free: 133.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/2.35, allocations: 0.8106 MB / 1.179 GB, free: 133.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000771/2.35, allocations: 0.782 MB / 1.18 GB, free: 132.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.393e-06/2.35, allocations: 0 / 1.18 GB, free: 132.5 MB / 426.7 MB Notification: Performance of Templates: time 0.02418/2.375, allocations: 10.03 MB / 1.19 GB, free: 130.7 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/FlueGas/FlueGas.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.FlueGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches