Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.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.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir") translateModel(Modelica.Media.Examples.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir") [: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.001658/0.001658, allocations: 176.1 kB / 8.149 MB, free: 2.195 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.698/1.698, 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.001297/0.001296, allocations: 95.58 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.737e-06/8.947e-06, allocations: 0 / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2586, allocations: 47.56 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.108/8.366, allocations: 3.642 GB / 3.995 GB, free: 103.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/8.367, allocations: 70.47 kB / 3.995 GB, free: 103.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1796/8.546, allocations: 48.13 MB / 4.042 GB, free: 62.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.661e-05/8.546, allocations: 4 kB / 4.042 GB, free: 62.68 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002455/8.549, allocations: 0.6462 MB / 4.043 GB, free: 61.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/8.549, allocations: 8.031 kB / 4.043 GB, free: 61.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/8.549, allocations: 23.81 kB / 4.043 GB, free: 61.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/8.549, allocations: 202.9 kB / 4.043 GB, free: 61.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/8.549, allocations: 8 kB / 4.043 GB, free: 61.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.839e-05/8.55, allocations: 15.89 kB / 4.043 GB, free: 61.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000579/8.55, allocations: 204.6 kB / 4.043 GB, free: 61.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/8.551, allocations: 217.2 kB / 4.043 GB, free: 61.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/8.551, allocations: 0 / 4.043 GB, free: 61.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.326e-05/8.551, allocations: 6.156 kB / 4.043 GB, free: 61.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/8.551, allocations: 8 kB / 4.043 GB, free: 61.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/8.553, allocations: 0.6468 MB / 4.044 GB, free: 60.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/8.553, allocations: 181.2 kB / 4.044 GB, free: 60.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002588/8.554, allocations: 113.3 kB / 4.044 GB, free: 60.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003975/8.554, allocations: 360.4 kB / 4.044 GB, free: 59.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/8.554, allocations: 42.47 kB / 4.045 GB, free: 59.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.755e-06/8.554, allocations: 3.938 kB / 4.045 GB, free: 59.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.002705/8.557, allocations: 492.3 kB / 4.045 GB, free: 59.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/8.557, allocations: 81.3 kB / 4.045 GB, free: 59.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/8.557, allocations: 118.4 kB / 4.045 GB, free: 59.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/8.557, allocations: 25.7 kB / 4.045 GB, free: 59.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.202e-05/8.557, allocations: 179 kB / 4.045 GB, free: 58.85 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.697e-05/8.557, allocations: 122.1 kB / 4.046 GB, free: 58.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/8.557, allocations: 0 / 4.046 GB, free: 58.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.889e-05/8.557, allocations: 326.8 kB / 4.046 GB, free: 58.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/8.558, allocations: 99.98 kB / 4.046 GB, free: 58.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/8.558, allocations: 182.7 kB / 4.046 GB, free: 58.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005014/8.558, allocations: 135.6 kB / 4.046 GB, free: 57.97 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/8.558, allocations: 4 kB / 4.046 GB, free: 57.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009994/8.559, allocations: 359.6 kB / 4.047 GB, free: 57.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/8.559, allocations: 4 kB / 4.047 GB, free: 57.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/8.56, allocations: 0 / 4.047 GB, free: 57.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/8.56, allocations: 7.984 kB / 4.047 GB, free: 57.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009777/8.561, allocations: 87.88 kB / 4.047 GB, free: 57.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/8.561, allocations: 7.906 kB / 4.047 GB, free: 57.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005772/8.561, allocations: 16.2 kB / 4.047 GB, free: 57.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.003e-05/8.561, allocations: 19.98 kB / 4.047 GB, free: 57.47 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001242/8.561, allocations: 41.48 kB / 4.047 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.139e-05/8.561, allocations: 15.81 kB / 4.047 GB, free: 57.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008122/8.562, allocations: 182.2 kB / 4.047 GB, free: 57.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/8.562, allocations: 4 kB / 4.047 GB, free: 57.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/8.562, allocations: 7.984 kB / 4.047 GB, free: 57.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/8.562, allocations: 0 / 4.047 GB, free: 57.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/8.564, allocations: 0.6555 MB / 4.048 GB, free: 56.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/8.564, allocations: 9.156 kB / 4.048 GB, free: 56.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008453/8.565, allocations: 80.05 kB / 4.048 GB, free: 56.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/8.565, allocations: 7.906 kB / 4.048 GB, free: 56.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.531e-05/8.565, allocations: 7.984 kB / 4.048 GB, free: 56.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/8.565, allocations: 4 kB / 4.048 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/8.565, allocations: 3.938 kB / 4.048 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001323/8.566, allocations: 0.6949 MB / 4.048 GB, free: 55.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/8.567, allocations: 120.9 kB / 4.048 GB, free: 55.49 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.389e-05/8.567, allocations: 3.906 kB / 4.048 GB, free: 55.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006646/8.567, allocations: 23.91 kB / 4.049 GB, free: 55.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/8.567, allocations: 19.92 kB / 4.049 GB, free: 55.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/8.568, allocations: 19.98 kB / 4.049 GB, free: 55.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.085e-05/8.568, allocations: 96.83 kB / 4.049 GB, free: 55.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009142/8.569, allocations: 159.9 kB / 4.049 GB, free: 55.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.001365/8.57, allocations: 0.7444 MB / 4.05 GB, free: 54.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007778/8.571, allocations: 283.5 kB / 4.05 GB, free: 54.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/8.571, allocations: 0 / 4.05 GB, free: 54.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003247/8.571, allocations: 148.5 kB / 4.05 GB, free: 54.01 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/8.572, allocations: 83.62 kB / 4.05 GB, free: 53.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/8.574, allocations: 0.4898 MB / 4.05 GB, free: 53.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004895/8.574, allocations: 0.7834 MB / 4.051 GB, free: 52.57 MB / 426.7 MB Notification: Performance of SimCode: time 1.382e-06/8.574, allocations: 0 / 4.051 GB, free: 52.57 MB / 426.7 MB Notification: Performance of Templates: time 0.01397/8.588, allocations: 7.104 MB / 4.058 GB, free: 45.46 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MoistAir/MoistAir.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches