Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|XSet.y.1.|senHum.X|hum.sta_a.T|hum.sta_b.T|hum.mWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic") translateModel(Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|XSet.y.1.|senHum.X|hum.sta_a.T|hum.sta_b.T|hum.mWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic") [: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 7.0.3-maint.7.0.x/package.mo): time 1.219/1.219, allocations: 249.4 MB / 256.7 MB, free: 7.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009849/0.0009848, allocations: 189.2 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.108/1.108, allocations: 205.1 MB / 0.5667 GB, free: 15.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008261/0.0008261, allocations: 82.22 kB / 0.671 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.142e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1568, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.396/3.553, allocations: 2.2 GB / 3.084 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/3.553, allocations: 83.95 kB / 3.084 GB, free: 205.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.431/5.985, allocations: 0.9341 GB / 4.018 GB, free: 198 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.951e-05/5.985, allocations: 18.41 kB / 4.018 GB, free: 198 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.002216/5.987, allocations: 1.014 MB / 4.019 GB, free: 197.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/5.987, allocations: 9.688 kB / 4.019 GB, free: 197.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/5.988, allocations: 237.7 kB / 4.019 GB, free: 197.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/5.99, allocations: 0.8795 MB / 4.02 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/5.99, allocations: 14.89 kB / 4.02 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/5.99, allocations: 29.66 kB / 4.02 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005332/5.991, allocations: 365.6 kB / 4.021 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005556/5.991, allocations: 439 kB / 4.021 GB, free: 197.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/5.991, allocations: 0 / 4.021 GB, free: 197.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/5.991, allocations: 3.906 kB / 4.021 GB, free: 197.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/5.991, allocations: 16.38 kB / 4.021 GB, free: 197.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/5.994, allocations: 2.262 MB / 4.023 GB, free: 195.9 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/5.994, allocations: 238.8 kB / 4.024 GB, free: 195.8 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/5.994, allocations: 118.6 kB / 4.024 GB, free: 195.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008134/5.995, allocations: 0.8302 MB / 4.025 GB, free: 195 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/5.995, allocations: 192 kB / 4.025 GB, free: 194.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=26): time 2.214e-06/5.995, allocations: 0 / 4.025 GB, free: 194.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=26): time 0.0009585/5.996, allocations: 415.2 kB / 4.025 GB, free: 194.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/5.996, allocations: 106.5 kB / 4.025 GB, free: 194.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004165/5.996, allocations: 458.3 kB / 4.026 GB, free: 194.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/5.996, allocations: 25.7 kB / 4.026 GB, free: 194.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/5.997, allocations: 246.5 kB / 4.026 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.246e-05/5.997, allocations: 96.22 kB / 4.026 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/5.997, allocations: 3.094 kB / 4.026 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.798e-05/5.997, allocations: 359.2 kB / 4.026 GB, free: 194.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/5.997, allocations: 103.1 kB / 4.026 GB, free: 194.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/5.997, allocations: 295.2 kB / 4.027 GB, free: 193.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/5.998, allocations: 226 kB / 4.027 GB, free: 193.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/5.998, allocations: 3.625 kB / 4.027 GB, free: 193.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007134/5.998, allocations: 486.3 kB / 4.027 GB, free: 193.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000291/5.999, allocations: 1.824 MB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/5.999, allocations: 6.375 kB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/5.999, allocations: 7.281 kB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/5.999, allocations: 80.03 kB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/5.999, allocations: 14.27 kB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/5.999, allocations: 45.36 kB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/5.999, allocations: 24.39 kB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.759e-06/5.999, allocations: 6.859 kB / 4.029 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006345/6, allocations: 394.2 kB / 4.03 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/6, allocations: 6.031 kB / 4.03 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.811e-06/6, allocations: 7.969 kB / 4.03 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/6, allocations: 87.53 kB / 4.03 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/6, allocations: 17.67 kB / 4.03 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/6.001, allocations: 32.98 kB / 4.03 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/6.001, allocations: 26.56 kB / 4.03 GB, free: 191.9 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.XSet.nextTimeEvent,XSet.nextTimeEvent,$PRE.XSet.nextTimeEventScaled,XSet.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.235e-05/6.001, allocations: 125.2 kB / 4.03 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.676e-05/6.001, allocations: 55.84 kB / 4.03 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006894/6.002, allocations: 367.5 kB / 4.03 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/6.002, allocations: 7.422 kB / 4.03 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/6.002, allocations: 96 / 4.03 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/6.002, allocations: 10.84 kB / 4.03 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/6.003, allocations: 1.16 MB / 4.032 GB, free: 191.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/6.003, allocations: 3.688 kB / 4.032 GB, free: 191.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/6.003, allocations: 44.5 kB / 4.032 GB, free: 191.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/6.003, allocations: 6.344 kB / 4.032 GB, free: 191.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/6.003, allocations: 13.56 kB / 4.032 GB, free: 191.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/6.003, allocations: 7.531 kB / 4.032 GB, free: 191.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/6.003, allocations: 0 / 4.032 GB, free: 191.2 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008006/6.004, allocations: 0.7678 MB / 4.032 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/6.004, allocations: 164.7 kB / 4.033 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.107e-05/6.004, allocations: 14.75 kB / 4.033 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/6.005, allocations: 14.66 kB / 4.033 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/6.005, allocations: 12.92 kB / 4.033 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/6.005, allocations: 18.3 kB / 4.033 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0002807/6.005, allocations: 351.3 kB / 4.033 GB, free: 190.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001027/6.006, allocations: 381 kB / 4.033 GB, free: 190.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 1 (hum.outCon.Xi) * Number of discrete variables: 3 ($whenCondition1,XSet.nextTimeEvent,XSet.nextTimeEventScaled) * Number of discrete states: 2 (XSet.nextTimeEvent,XSet.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001806/6.008, allocations: 1.788 MB / 4.035 GB, free: 190.1 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005651/6.008, allocations: 479.7 kB / 4.036 GB, free: 190.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/6.008, allocations: 0 / 4.036 GB, free: 190.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001457/6.009, allocations: 135.7 kB / 4.036 GB, free: 190.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008418/6.009, allocations: 193.8 kB / 4.036 GB, free: 190.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/6.013, allocations: 1.575 MB / 4.037 GB, free: 189.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004003/6.013, allocations: 0.9702 MB / 4.038 GB, free: 189.1 MB / 0.8855 GB Notification: Performance of SimCode: time 2.6e-07/6.013, allocations: 0 / 4.038 GB, free: 189.1 MB / 0.8855 GB Notification: Performance of Templates: time 0.02379/6.037, allocations: 18.6 MB / 4.056 GB, free: 188.7 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Humidifiers_Validation_SprayAirWasher_X_dynamic.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,XSet.y[1],senHum.X,hum.sta_a.T,hum.sta_b.T,hum.mWat_flow Variables in the result:XSet.columns[1],XSet.extrapolation,XSet.nout,XSet.offset[1],XSet.p_offset[1],XSet.shiftTime,XSet.smoothness,XSet.startTime,XSet.t_max,XSet.t_maxScaled,XSet.t_min,XSet.t_minScaled,XSet.tableOnFile,XSet.table[1,1],XSet.table[1,2],XSet.table[2,1],XSet.table[2,2],XSet.table[3,1],XSet.table[3,2],XSet.table[4,1],XSet.table[4,2],XSet.table[5,1],XSet.table[5,2],XSet.table[6,1],XSet.table[6,2],XSet.table[7,1],XSet.table[7,2],XSet.timeEvents,XSet.timeScale,XSet.verboseExtrapolation,XSet.verboseRead,XSet.y[1],hum.X_start[1],hum.X_start[2],hum._dp_start,hum._m_flow_start,hum.allowFlowReversal,hum.computeFlowResistance,hum.deltaM,hum.dp_nominal,hum.from_dp,hum.linearizeFlowResistance,hum.mWatMax_flow,hum.mWat_flow,hum.m_flow_nominal,hum.m_flow_small,hum.massDynamics,hum.outCon.QMax_flow,hum.outCon.QMin_flow,hum.outCon.T_start,hum.outCon.X_start[1],hum.outCon.X_start[2],hum.outCon._dp_start,hum.outCon._m_flow_start,hum.outCon.allowFlowReversal,hum.outCon.cp_default,hum.outCon.deltaH,hum.outCon.deltaXi,hum.outCon.energyDynamics,hum.outCon.mWatMax_flow,hum.outCon.mWatMin_flow,hum.outCon.m_flow_nominal,hum.outCon.m_flow_small,hum.outCon.massDynamics,hum.outCon.restrictCool,hum.outCon.restrictDehu,hum.outCon.restrictHeat,hum.outCon.restrictHumi,hum.outCon.show_T,hum.outCon.tau,hum.outCon.use_TSet,hum.outCon.use_X_wSet,hum.preDro._dp_start,hum.preDro._m_flow_start,hum.preDro.allowFlowReversal,hum.preDro.coeff,hum.preDro.computeFlowResistance,hum.preDro.deltaM,hum.preDro.dp_nominal,hum.preDro.dp_nominal_pos,hum.preDro.eta_default,hum.preDro.from_dp,hum.preDro.k,hum.preDro.linearized,hum.preDro.m_flow_nominal,hum.preDro.m_flow_nominal_pos,hum.preDro.m_flow_small,hum.preDro.m_flow_turbulent,hum.preDro.show_T,hum.preDro.sta_default.T,hum.preDro.sta_default.X[1],hum.preDro.sta_default.X[2],hum.preDro.sta_default.p,hum.show_T,hum.sta_a.T,hum.sta_b.T,hum.tau,mWat_flow_nominal,m_flow_nominal,senHum.X,senHum.X_start,senHum.allowFlowReversal,senHum.dynamic,senHum.i_x,senHum.initType,senHum.m_flow_nominal,senHum.m_flow_small,senHum.tau,senHum.tauInv,sin.T,sin.X[1],sin.X[2],sin.flowDirection,sin.nPorts,sin.p,sin.verifyInputs,sou1.T,sou1.X[1],sou1.X[2],sou1.flowDirection,sou1.m_flow,sou1.nPorts,sou1.verifyInputs,time