Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2/2, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.001081/0.001081, allocations: 181.3 kB / 487 MB, free: 5.375 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.443/1.443, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009337/0.0009337, allocations: 92.69 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.065e-06/8.085e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2849, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.396/4.681, allocations: 1.869 GB / 3.074 GB, free: 432 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/4.681, allocations: 87.31 kB / 3.074 GB, free: 431.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.407/5.088, allocations: 222.8 MB / 3.291 GB, free: 209.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 3.657e-05/5.088, allocations: 15.98 kB / 3.291 GB, free: 209.9 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.001511/5.09, allocations: 0.6722 MB / 3.292 GB, free: 209.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.486e-05/5.09, allocations: 9.031 kB / 3.292 GB, free: 209.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006067/5.09, allocations: 99.44 kB / 3.292 GB, free: 209.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/5.091, allocations: 302 kB / 3.292 GB, free: 208.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/5.091, allocations: 4 kB / 3.292 GB, free: 208.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-05/5.091, allocations: 16 kB / 3.292 GB, free: 208.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003705/5.091, allocations: 188.9 kB / 3.293 GB, free: 208.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/5.092, allocations: 254.5 kB / 3.293 GB, free: 208.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/5.092, allocations: 0 / 3.293 GB, free: 208.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.196e-05/5.092, allocations: 4 kB / 3.293 GB, free: 208.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/5.092, allocations: 7.906 kB / 3.293 GB, free: 208.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/5.094, allocations: 1.018 MB / 3.294 GB, free: 207.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004374/5.094, allocations: 179.6 kB / 3.294 GB, free: 207 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/5.094, allocations: 88.83 kB / 3.294 GB, free: 206.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006422/5.095, allocations: 392.7 kB / 3.295 GB, free: 206.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/5.095, allocations: 38.56 kB / 3.295 GB, free: 206.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=19): time 2.535e-06/5.095, allocations: 0 / 3.295 GB, free: 206.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=19): time 0.001299/5.096, allocations: 345.1 kB / 3.295 GB, free: 206.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/5.096, allocations: 51.41 kB / 3.295 GB, free: 206 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/5.096, allocations: 192.2 kB / 3.295 GB, free: 205.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/5.096, allocations: 29.64 kB / 3.295 GB, free: 205.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 7.968e-05/5.096, allocations: 152.2 kB / 3.295 GB, free: 205.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.895e-05/5.097, allocations: 66.95 kB / 3.295 GB, free: 205.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/5.097, allocations: 0 / 3.295 GB, free: 205.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.814e-05/5.097, allocations: 330.8 kB / 3.296 GB, free: 205.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/5.097, allocations: 67.98 kB / 3.296 GB, free: 205.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/5.097, allocations: 140.2 kB / 3.296 GB, free: 205 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007016/5.098, allocations: 202.5 kB / 3.296 GB, free: 204.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/5.098, allocations: 0 / 3.296 GB, free: 204.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008826/5.099, allocations: 345 kB / 3.296 GB, free: 204.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/5.099, allocations: 8 kB / 3.296 GB, free: 204.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/5.099, allocations: 0 / 3.296 GB, free: 204.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/5.099, allocations: 4 kB / 3.296 GB, free: 204.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/5.099, allocations: 72.05 kB / 3.297 GB, free: 204.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/5.099, allocations: 4 kB / 3.297 GB, free: 204.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/5.099, allocations: 51.8 kB / 3.297 GB, free: 204.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/5.099, allocations: 15.84 kB / 3.297 GB, free: 204.3 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 8.07e-05/5.099, allocations: 104.9 kB / 3.297 GB, free: 204.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.948e-05/5.099, allocations: 23.72 kB / 3.297 GB, free: 204.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009507/5.1, allocations: 366.2 kB / 3.297 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/5.1, allocations: 4 kB / 3.297 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/5.1, allocations: 0 / 3.297 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/5.1, allocations: 0 / 3.297 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/5.102, allocations: 0.8676 MB / 3.298 GB, free: 202.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/5.102, allocations: 0 / 3.298 GB, free: 202.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/5.102, allocations: 68.14 kB / 3.298 GB, free: 202.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/5.102, allocations: 0 / 3.298 GB, free: 202.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/5.102, allocations: 4 kB / 3.298 GB, free: 202.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/5.102, allocations: 7.938 kB / 3.298 GB, free: 202.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/5.102, allocations: 0 / 3.298 GB, free: 202.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001031/5.103, allocations: 0.6324 MB / 3.299 GB, free: 202.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 9.357e-05/5.103, allocations: 120.8 kB / 3.299 GB, free: 202 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/5.103, allocations: 7.844 kB / 3.299 GB, free: 202 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/5.104, allocations: 39.97 kB / 3.299 GB, free: 201.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.444e-05/5.104, allocations: 23.97 kB / 3.299 GB, free: 201.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/5.104, allocations: 8 kB / 3.299 GB, free: 201.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0001427/5.104, allocations: 148.5 kB / 3.299 GB, free: 201.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0006596/5.105, allocations: 175.8 kB / 3.299 GB, free: 201.6 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.001363/5.106, allocations: 1.185 MB / 3.3 GB, free: 200.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0003195/5.106, allocations: 179.9 kB / 3.3 GB, free: 200.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/5.106, allocations: 0 / 3.3 GB, free: 200.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001445/5.107, allocations: 99.86 kB / 3.301 GB, free: 200.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/5.107, allocations: 78.47 kB / 3.301 GB, free: 200.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008925/5.108, allocations: 442.8 kB / 3.301 GB, free: 199.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002973/5.108, allocations: 0.8218 MB / 3.302 GB, free: 198.7 MB / 1.151 GB Notification: Performance of SimCode: time 2.8e-07/5.108, allocations: 0 / 3.302 GB, free: 198.7 MB / 1.151 GB Notification: Performance of Templates: time 0.01547/5.124, allocations: 10.55 MB / 3.312 GB, free: 188.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_RelativeHumidity.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches