Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.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.Humidifiers.Examples.Humidifier_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u") translateModel(Buildings.Fluid.Humidifiers.Examples.Humidifier_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u") [: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.982/1.982, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001149/0.001149, allocations: 191.7 kB / 490.8 MB, free: 1.938 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.316/1.316, allocations: 221.4 MB / 0.7863 GB, free: 13.67 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.001011/0.001011, allocations: 94.05 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.618e-06/9.668e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2731, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.706/4.979, allocations: 1.933 GB / 3.144 GB, free: 339.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/4.98, allocations: 95.86 kB / 3.144 GB, free: 339.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.947/7.927, allocations: 1.052 GB / 4.196 GB, free: 150.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001408/7.927, allocations: 47.91 kB / 4.197 GB, free: 150.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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003321/7.93, allocations: 2.086 MB / 4.199 GB, free: 148.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/7.93, allocations: 8.031 kB / 4.199 GB, free: 148.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003681/7.934, allocations: 0.657 MB / 4.199 GB, free: 147.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002652/7.937, allocations: 1.473 MB / 4.201 GB, free: 146.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00032/7.937, allocations: 125.4 kB / 4.201 GB, free: 146.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/7.937, allocations: 75.91 kB / 4.201 GB, free: 146.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0016/7.939, allocations: 1.036 MB / 4.202 GB, free: 145.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/7.94, allocations: 1.231 MB / 4.203 GB, free: 143.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/7.941, allocations: 0 / 4.203 GB, free: 143.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/7.941, allocations: 4 kB / 4.203 GB, free: 143.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.825e-05/7.941, allocations: 42.27 kB / 4.203 GB, free: 143.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007092/7.948, allocations: 6.243 MB / 4.209 GB, free: 137.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/7.949, allocations: 0.8321 MB / 4.21 GB, free: 136.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005259/7.949, allocations: 479.5 kB / 4.21 GB, free: 135.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005353/7.95, allocations: 486 kB / 4.211 GB, free: 135.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006123/7.951, allocations: 0.528 MB / 4.211 GB, free: 134.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=85): time 2.665e-06/7.951, allocations: 0 / 4.211 GB, free: 134.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=87): time 0.005331/7.956, allocations: 2.556 MB / 4.214 GB, free: 132.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/7.956, allocations: 192.6 kB / 4.214 GB, free: 132 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000989/7.957, allocations: 0.9214 MB / 4.215 GB, free: 131.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.081e-05/7.957, allocations: 25.7 kB / 4.215 GB, free: 131 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/7.957, allocations: 0.4893 MB / 4.216 GB, free: 130.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/7.957, allocations: 287.6 kB / 4.216 GB, free: 130.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-05/7.958, allocations: 4 kB / 4.216 GB, free: 130.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.43e-05/7.958, allocations: 341.9 kB / 4.216 GB, free: 129.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004413/7.958, allocations: 353.9 kB / 4.216 GB, free: 129.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005386/7.959, allocations: 0.5726 MB / 4.217 GB, free: 128.9 MB / 1.151 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: humDyn.vol.dynBal.medium.p = humDyn.vol.dynBal.p_start (sin.p = humDyn.vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/7.963, allocations: 1.659 MB / 4.219 GB, free: 127.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/7.963, allocations: 7.938 kB / 4.219 GB, free: 127.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001779/7.964, allocations: 1.141 MB / 4.22 GB, free: 126.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002058/7.965, allocations: 1.427 MB / 4.221 GB, free: 124.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/7.965, allocations: 4 kB / 4.221 GB, free: 124.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001384/7.965, allocations: 56.78 kB / 4.221 GB, free: 124.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009066/7.966, allocations: 207.8 kB / 4.221 GB, free: 124.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003456/7.966, allocations: 0.6147 MB / 4.222 GB, free: 123.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/7.968, allocations: 127.8 kB / 4.222 GB, free: 123.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.186e-05/7.968, allocations: 40.05 kB / 4.222 GB, free: 123.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.514e-06/7.968, allocations: 8 kB / 4.222 GB, free: 123.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001523/7.969, allocations: 0.9429 MB / 4.223 GB, free: 122.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/7.969, allocations: 8.062 kB / 4.223 GB, free: 122.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001299/7.969, allocations: 44.83 kB / 4.223 GB, free: 122.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00089/7.97, allocations: 223.7 kB / 4.223 GB, free: 122.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/7.971, allocations: 1.462 MB / 4.225 GB, free: 120.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/7.973, allocations: 143.7 kB / 4.225 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-05/7.973, allocations: 32.06 kB / 4.225 GB, free: 120.5 MB / 1.151 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: humDyn.vol.dynBal.medium.p = humDyn.vol.dynBal.p_start Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000235/7.973, allocations: 170.4 kB / 4.225 GB, free: 120.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/7.973, allocations: 150.2 kB / 4.225 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/7.975, allocations: 1.115 MB / 4.226 GB, free: 119 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/7.975, allocations: 8 kB / 4.226 GB, free: 119 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/7.975, allocations: 0 / 4.226 GB, free: 119 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001326/7.977, allocations: 0.9897 MB / 4.227 GB, free: 118 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004032/7.981, allocations: 2.734 MB / 4.23 GB, free: 115.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/7.981, allocations: 4 kB / 4.23 GB, free: 115.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009725/7.982, allocations: 195.9 kB / 4.23 GB, free: 115 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/7.982, allocations: 44.84 kB / 4.23 GB, free: 115 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-05/7.982, allocations: 16 kB / 4.23 GB, free: 114.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002669/7.982, allocations: 0.5913 MB / 4.231 GB, free: 114.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/7.982, allocations: 4 kB / 4.231 GB, free: 114.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002155/7.984, allocations: 2.005 MB / 4.233 GB, free: 112.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005745/7.985, allocations: 347.1 kB / 4.233 GB, free: 111.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/7.985, allocations: 8 kB / 4.233 GB, free: 111.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/7.986, allocations: 135.7 kB / 4.233 GB, free: 111.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.732e-05/7.986, allocations: 48.59 kB / 4.233 GB, free: 111.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-05/7.986, allocations: 39.89 kB / 4.233 GB, free: 111.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0007808/7.987, allocations: 0.7031 MB / 4.234 GB, free: 110.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00221/7.989, allocations: 0.8268 MB / 4.235 GB, free: 110 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,humDyn.vol.dynBal.medium.Xi[1],humDyn.vol.dynBal.U,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002666/7.992, allocations: 2.648 MB / 4.237 GB, free: 107.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002124/7.994, allocations: 1.588 MB / 4.239 GB, free: 105.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/7.994, allocations: 8 kB / 4.239 GB, free: 105.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006007/7.995, allocations: 0.4999 MB / 4.239 GB, free: 105.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/7.998, allocations: 0.6836 MB / 4.24 GB, free: 104.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006214/8.004, allocations: 2.629 MB / 4.243 GB, free: 101.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009928/8.005, allocations: 1.49 MB / 4.244 GB, free: 100.4 MB / 1.151 GB Notification: Performance of SimCode: time 5.21e-07/8.005, allocations: 0 / 4.244 GB, free: 100.4 MB / 1.151 GB Notification: Performance of Templates: time 0.06041/8.066, allocations: 44.4 MB / 4.287 GB, free: 56.38 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.makefile (rm -f Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.sim & ./Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Humidifiers_Examples_Humidifier_u.csv","../files/Buildings_latest_Buildings.Fluid.Humidifiers.Examples.Humidifier_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches