Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") [: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.002232/0.002232, 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.416/1.416, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0009912/0.0009912, allocations: 96.39 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.015e-06/8.055e-06, allocations: 0 / 336.5 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3328, allocations: 50.4 MB / 386.9 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.9/12.23, allocations: 6.122 GB / 6.5 GB, free: 124.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/12.23, allocations: 82.94 kB / 6.5 GB, free: 124.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.431/14.66, allocations: 0.6432 GB / 7.143 GB, free: 35.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.098e-05/14.66, allocations: 18.88 kB / 7.143 GB, free: 35.73 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.01127/14.67, allocations: 2.331 MB / 7.146 GB, free: 34.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/14.67, allocations: 13.94 kB / 7.146 GB, free: 34.77 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005783/14.67, allocations: 81.19 kB / 7.146 GB, free: 34.73 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007197/14.67, allocations: 447.8 kB / 7.146 GB, free: 34.53 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/14.67, allocations: 18.53 kB / 7.146 GB, free: 34.53 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.132e-05/14.67, allocations: 41.81 kB / 7.146 GB, free: 34.52 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001273/14.67, allocations: 0.9248 MB / 7.147 GB, free: 34.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009753/14.67, allocations: 0.6477 MB / 7.148 GB, free: 34.48 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/14.67, allocations: 10.06 kB / 7.148 GB, free: 34.48 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-05/14.67, allocations: 3.906 kB / 7.148 GB, free: 34.48 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/14.67, allocations: 16.34 kB / 7.148 GB, free: 34.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01408/14.69, allocations: 12.39 MB / 7.16 GB, free: 23.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008569/14.69, allocations: 497.9 kB / 7.16 GB, free: 23.55 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004903/14.69, allocations: 384.8 kB / 7.161 GB, free: 23.54 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03776/14.73, allocations: 30.81 MB / 7.191 GB, free: 24.67 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.531e-05/14.73, allocations: 43.56 kB / 7.191 GB, free: 24.63 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=78): time 5.831e-06/14.73, allocations: 0 / 7.191 GB, free: 24.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.009039/14.74, allocations: 2.5 MB / 7.193 GB, free: 24.22 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/14.74, allocations: 67.31 kB / 7.193 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/14.74, allocations: 257.6 kB / 7.194 GB, free: 24.05 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/14.74, allocations: 28.83 kB / 7.194 GB, free: 24.02 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/14.74, allocations: 217.1 kB / 7.194 GB, free: 23.88 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/14.74, allocations: 292.1 kB / 7.194 GB, free: 23.69 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.983e-05/14.74, allocations: 3.25 kB / 7.194 GB, free: 23.69 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001542/14.74, allocations: 357.6 kB / 7.194 GB, free: 23.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004458/14.74, allocations: 342.4 kB / 7.195 GB, free: 23.38 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/14.74, allocations: 446.8 kB / 7.195 GB, free: 23.29 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/14.74, allocations: 0.5416 MB / 7.196 GB, free: 23.27 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/14.74, allocations: 0 / 7.196 GB, free: 23.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=106) (initialization): time 0.00283/14.74, allocations: 1.159 MB / 7.197 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/14.74, allocations: 3.125 kB / 7.197 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/14.74, allocations: 3.188 kB / 7.197 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002994/14.74, allocations: 118.9 kB / 7.197 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008094/14.74, allocations: 190.4 kB / 7.197 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/14.75, allocations: 3.863 MB / 7.201 GB, free: 19.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006458/14.75, allocations: 50.88 kB / 7.201 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/14.75, allocations: 54.62 kB / 7.201 GB, free: 19.57 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003464/14.75, allocations: 123.5 kB / 7.201 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005171/14.75, allocations: 59.12 kB / 7.201 GB, free: 19.44 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002967/14.75, allocations: 1.394 MB / 7.203 GB, free: 19.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/14.75, allocations: 11.06 kB / 7.203 GB, free: 19.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/14.75, allocations: 3.609 kB / 7.203 GB, free: 19.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002264/14.75, allocations: 1.382 MB / 7.204 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/14.76, allocations: 1.944 MB / 7.206 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/14.76, allocations: 1.594 kB / 7.206 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007842/14.76, allocations: 173.9 kB / 7.206 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/14.76, allocations: 140.9 kB / 7.206 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.384e-05/14.76, allocations: 18.88 kB / 7.206 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/14.76, allocations: 1.368 MB / 7.207 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/14.76, allocations: 0 / 7.207 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003102/14.76, allocations: 1.489 MB / 7.209 GB, free: 32.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/14.76, allocations: 132.5 kB / 7.209 GB, free: 32.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/14.76, allocations: 13.05 kB / 7.209 GB, free: 32.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007495/14.77, allocations: 34.08 kB / 7.209 GB, free: 32.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.152e-05/14.77, allocations: 52.55 kB / 7.209 GB, free: 32.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/14.77, allocations: 50.64 kB / 7.209 GB, free: 32.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002716/14.77, allocations: 228.2 kB / 7.209 GB, free: 32.66 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01005/14.78, allocations: 2.23 MB / 7.212 GB, free: 32.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01786/14.79, allocations: 3.428 MB / 7.215 GB, free: 31.61 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00233/14.8, allocations: 1.098 MB / 7.216 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/14.8, allocations: 3.406 kB / 7.216 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008905/14.8, allocations: 491.4 kB / 7.216 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001943/14.8, allocations: 280.5 kB / 7.217 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/14.8, allocations: 1.35 MB / 7.218 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009367/14.8, allocations: 1.024 MB / 7.219 GB, free: 30.38 MB / 0.5105 GB Notification: Performance of SimCode: time 2.074e-06/14.8, allocations: 3.625 kB / 7.219 GB, free: 30.38 MB / 0.5105 GB Notification: Performance of Templates: time 0.08867/14.89, allocations: 67.39 MB / 7.285 GB, free: 26.51 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches