Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.RelativeHumidity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|relHum.port_a.m_flow|relHum.phi|senRelHum.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity") translateModel(Buildings.Fluid.Sensors.Examples.RelativeHumidity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|relHum.port_a.m_flow|relHum.phi|senRelHum.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity") [: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/Buildings 10.0.0-master/package.mo): time 1.95/1.95, allocations: 390.4 MB / 397.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001043, allocations: 177.3 kB / 490.8 MB, free: 1.98 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 221.4 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009307/0.0009312, allocations: 95.16 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.544e-06, allocations: 4 kB / 1.072 GB, free: 182.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2802, allocations: 143 MB / 1.212 GB, free: 40.19 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.304/4.585, allocations: 1.869 GB / 3.081 GB, free: 435 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004416/4.585, allocations: 87.2 kB / 3.081 GB, free: 435 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.4316/5.017, allocations: 222.8 MB / 3.299 GB, free: 233.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 3.313e-05/5.017, allocations: 16 kB / 3.299 GB, free: 233.6 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001539/5.018, allocations: 0.6696 MB / 3.299 GB, free: 232.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.549e-05/5.019, allocations: 8.031 kB / 3.299 GB, free: 232.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006582/5.019, allocations: 87.55 kB / 3.299 GB, free: 232.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/5.02, allocations: 313.8 kB / 3.3 GB, free: 232.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/5.02, allocations: 8 kB / 3.3 GB, free: 232.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.31e-05/5.02, allocations: 16 kB / 3.3 GB, free: 232.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003772/5.02, allocations: 188.9 kB / 3.3 GB, free: 232.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/5.021, allocations: 250.5 kB / 3.3 GB, free: 232 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/5.021, allocations: 0 / 3.3 GB, free: 232 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/5.021, allocations: 7.938 kB / 3.3 GB, free: 232 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/5.021, allocations: 7.984 kB / 3.3 GB, free: 232 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/5.022, allocations: 1.023 MB / 3.301 GB, free: 230.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/5.023, allocations: 179.6 kB / 3.301 GB, free: 230.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/5.023, allocations: 92.83 kB / 3.301 GB, free: 230.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005624/5.023, allocations: 396.4 kB / 3.302 GB, free: 230.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/5.023, allocations: 34.56 kB / 3.302 GB, free: 230.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=19): time 2.434e-06/5.023, allocations: 0 / 3.302 GB, free: 230.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=19): time 0.001204/5.025, allocations: 345 kB / 3.302 GB, free: 229.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.079e-05/5.025, allocations: 55.41 kB / 3.302 GB, free: 229.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/5.025, allocations: 188.2 kB / 3.302 GB, free: 229.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/5.025, allocations: 25.7 kB / 3.302 GB, free: 229.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 5.88e-05/5.025, allocations: 148.2 kB / 3.302 GB, free: 229.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/5.025, allocations: 66.95 kB / 3.303 GB, free: 229.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/5.025, allocations: 0 / 3.303 GB, free: 229.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.686e-05/5.025, allocations: 330.8 kB / 3.303 GB, free: 229 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.855e-05/5.025, allocations: 75.78 kB / 3.303 GB, free: 228.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/5.025, allocations: 136 kB / 3.303 GB, free: 228.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006916/5.026, allocations: 207.7 kB / 3.303 GB, free: 228.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/5.026, allocations: 0 / 3.303 GB, free: 228.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008844/5.027, allocations: 343.9 kB / 3.304 GB, free: 228.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/5.027, allocations: 8 kB / 3.304 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/5.027, allocations: 0 / 3.304 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/5.027, allocations: 7.984 kB / 3.304 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/5.027, allocations: 68.11 kB / 3.304 GB, free: 228.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/5.027, allocations: 4 kB / 3.304 GB, free: 228.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/5.028, allocations: 55.73 kB / 3.304 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/5.028, allocations: 12 kB / 3.304 GB, free: 228 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 7.596e-05/5.028, allocations: 104.9 kB / 3.304 GB, free: 227.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/5.028, allocations: 23.72 kB / 3.304 GB, free: 227.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009167/5.029, allocations: 355.2 kB / 3.304 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/5.029, allocations: 4 kB / 3.304 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/5.029, allocations: 0 / 3.304 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/5.029, allocations: 0 / 3.304 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/5.03, allocations: 0.8637 MB / 3.305 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/5.03, allocations: 4.188 kB / 3.305 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/5.031, allocations: 67.89 kB / 3.305 GB, free: 226.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/5.031, allocations: 7.938 kB / 3.305 GB, free: 226.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/5.031, allocations: 4 kB / 3.305 GB, free: 226.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/5.031, allocations: 4 kB / 3.305 GB, free: 226.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/5.031, allocations: 4.047 kB / 3.305 GB, free: 226.5 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00105/5.032, allocations: 0.6344 MB / 3.306 GB, free: 225.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/5.032, allocations: 124.9 kB / 3.306 GB, free: 225.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/5.032, allocations: 0 / 3.306 GB, free: 225.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/5.032, allocations: 47.8 kB / 3.306 GB, free: 225.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.169e-05/5.032, allocations: 15.98 kB / 3.306 GB, free: 225.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/5.032, allocations: 8 kB / 3.306 GB, free: 225.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 9.472e-05/5.032, allocations: 148.5 kB / 3.306 GB, free: 225.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0006796/5.033, allocations: 187.7 kB / 3.306 GB, free: 225.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 1 (relHum.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.001836/5.035, allocations: 1.166 MB / 3.307 GB, free: 224.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0003668/5.035, allocations: 183.8 kB / 3.308 GB, free: 223.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/5.035, allocations: 0 / 3.308 GB, free: 223.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001676/5.035, allocations: 102.8 kB / 3.308 GB, free: 223.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006217/5.036, allocations: 84.27 kB / 3.308 GB, free: 223.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/5.037, allocations: 450.6 kB / 3.308 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/5.038, allocations: 0.8218 MB / 3.309 GB, free: 222.4 MB / 1.151 GB Notification: Performance of SimCode: time 6.81e-07/5.038, allocations: 0 / 3.309 GB, free: 222.4 MB / 1.151 GB Notification: Performance of Templates: time 0.01808/5.056, allocations: 10.54 MB / 3.319 GB, free: 211.9 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_RelativeHumidity.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches