Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.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.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooVal.TOut|cooVal.TSupSet|cooVal.TSup|cooVal.uFanSta|cooVal.yCooVal|cooVal1.TOut|cooVal1.TSupSet|cooVal1.TSup|cooVal1.uFanSta|cooVal1.yCooVal|cooVal2.TOut|cooVal2.TSupSet|cooVal2.TSup|cooVal2.uFanSta|cooVal2.yCooVal|cooVal3.TOut|cooVal3.TSupSet|cooVal3.TSup|cooVal3.uFanSta|cooVal3.yCooVal|cooVal3.higLim.y|cooVal3.limPI.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve") translateModel(Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooVal.TOut|cooVal.TSupSet|cooVal.TSup|cooVal.uFanSta|cooVal.yCooVal|cooVal1.TOut|cooVal1.TSupSet|cooVal1.TSup|cooVal1.uFanSta|cooVal1.yCooVal|cooVal2.TOut|cooVal2.TSupSet|cooVal2.TSup|cooVal2.uFanSta|cooVal2.yCooVal|cooVal3.TOut|cooVal3.TSupSet|cooVal3.TSup|cooVal3.uFanSta|cooVal3.yCooVal|cooVal3.higLim.y|cooVal3.limPI.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve") [: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.224/1.224, 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.001081/0.001081, allocations: 177.2 kB / 316 MB, free: 3.559 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.057/1.057, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.000802/0.000802, allocations: 82.08 kB / 0.671 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.422e-06/6.442e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1525, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4534/0.6059, allocations: 138.4 MB / 1.02 GB, free: 392 kB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.6061, allocations: 93.45 kB / 1.02 GB, free: 336 kB / 0.6355 GB Notification: Performance of FrontEnd: time 0.05794/0.6641, allocations: 25.82 MB / 1.045 GB, free: 10.88 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 8.628e-05/0.6642, allocations: 43.98 kB / 1.045 GB, free: 10.84 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 377 * Number of variables: 377 Notification: Performance of Generate backend data structure: time 0.002517/0.6667, allocations: 1.711 MB / 1.047 GB, free: 9.188 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.6668, allocations: 8.031 kB / 1.047 GB, free: 9.18 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002737/0.667, allocations: 209.5 kB / 1.047 GB, free: 8.973 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.669, allocations: 1.241 MB / 1.048 GB, free: 7.941 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.003e-05/0.6691, allocations: 51.06 kB / 1.048 GB, free: 7.895 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.6693, allocations: 92 kB / 1.048 GB, free: 7.805 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001426/0.6707, allocations: 0.8821 MB / 1.049 GB, free: 7.285 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.6724, allocations: 1.151 MB / 1.05 GB, free: 6.441 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.962e-05/0.6725, allocations: 0 / 1.05 GB, free: 6.441 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.353e-05/0.6726, allocations: 7.984 kB / 1.05 GB, free: 6.434 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.14e-05/0.6726, allocations: 36 kB / 1.05 GB, free: 6.398 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006256/0.6789, allocations: 4.422 MB / 1.055 GB, free: 3.078 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.6801, allocations: 0.7107 MB / 1.055 GB, free: 2.566 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004533/0.6806, allocations: 319.2 kB / 1.056 GB, free: 2.363 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.6807, allocations: 19.48 kB / 1.056 GB, free: 2.348 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005876/0.6813, allocations: 416.9 kB / 1.056 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=85): time 2.013e-06/0.6813, allocations: 0 / 1.056 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of matching and sorting (n=85): time 0.0009588/0.6822, allocations: 0.6315 MB / 1.057 GB, free: 1.566 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.6823, allocations: 243.3 kB / 1.057 GB, free: 1.273 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008964/0.6832, allocations: 0.8228 MB / 1.058 GB, free: 0.6641 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.595e-05/0.6833, allocations: 49 kB / 1.058 GB, free: 0.6172 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003736/0.6837, allocations: 0.6125 MB / 1.058 GB, free: 84 kB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.6839, allocations: 258.6 kB / 1.059 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.684, allocations: 0 / 1.059 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.6841, allocations: 346.1 kB / 1.059 GB, free: 15.54 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/0.6845, allocations: 274.5 kB / 1.059 GB, free: 15.39 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000629/0.6852, allocations: 0.5956 MB / 1.06 GB, free: 14.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000458/0.6856, allocations: 328.2 kB / 1.06 GB, free: 14.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.6856, allocations: 4 kB / 1.06 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.001269/0.6869, allocations: 0.8997 MB / 1.061 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008855/0.6878, allocations: 2.737 MB / 1.064 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.6878, allocations: 4 kB / 1.064 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.6879, allocations: 16 kB / 1.064 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008807/0.6888, allocations: 238.2 kB / 1.064 GB, free: 10.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.641e-05/0.6888, allocations: 16 kB / 1.064 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007849/0.6896, allocations: 166.9 kB / 1.064 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.066e-05/0.6897, allocations: 42.86 kB / 1.064 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.202e-06/0.6897, allocations: 4 kB / 1.064 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001043/0.6907, allocations: 0.707 MB / 1.065 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.6907, allocations: 4.125 kB / 1.065 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.6908, allocations: 20 kB / 1.065 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.6915, allocations: 210.8 kB / 1.065 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.6915, allocations: 12 kB / 1.065 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006552/0.6922, allocations: 123.2 kB / 1.065 GB, free: 9.727 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.008e-05/0.6922, allocations: 39.19 kB / 1.065 GB, free: 9.695 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition4,$whenCondition5,cooVal.uFanSta,cooVal.limPI.trigger,$PRE.cooVal.TOutThr.y,cooVal.TOutThr.y,$PRE.cooVal.uFanFeeThr.y,cooVal.uFanFeeThr.y,$PRE.cooVal.cha.u,cooVal.cha.u,$PRE.uSupFan.pulseStart,uSupFan.pulseStart,$whenCondition3,cooVal3.limPI.trigger,$PRE.cooVal3.TOutThr.y,cooVal3.TOutThr.y,$PRE.cooVal3.uFanFeeThr.y,cooVal3.uFanFeeThr.y,$PRE.cooVal3.cha.u,cooVal3.cha.u,$whenCondition2,cooVal1.limPI.trigger,$PRE.cooVal1.TOutThr.y,cooVal1.TOutThr.y,$PRE.cooVal1.uFanFeeThr.y,cooVal1.uFanFeeThr.y,$PRE.cooVal1.cha.u,cooVal1.cha.u,$whenCondition1,cooVal2.limPI.trigger,$PRE.cooVal2.TOutThr.y,cooVal2.TOutThr.y,$PRE.cooVal2.uFanFeeThr.y,cooVal2.uFanFeeThr.y,$PRE.cooVal2.cha.u,cooVal2.cha.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 142 * 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 0.0001831/0.6924, allocations: 157.5 kB / 1.065 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.6926, allocations: 130.3 kB / 1.065 GB, free: 9.414 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.6937, allocations: 0.681 MB / 1.066 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.6937, allocations: 8 kB / 1.066 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.6937, allocations: 11.98 kB / 1.066 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.6937, allocations: 3.984 kB / 1.066 GB, free: 8.922 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.6962, allocations: 2.157 MB / 1.068 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.6963, allocations: 8 kB / 1.068 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006774/0.6969, allocations: 158.9 kB / 1.068 GB, free: 7.16 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.697, allocations: 11.94 kB / 1.068 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.96e-05/0.697, allocations: 11.92 kB / 1.068 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.697, allocations: 11.98 kB / 1.068 GB, free: 7.129 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.697, allocations: 4 kB / 1.068 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001494/0.6985, allocations: 1.466 MB / 1.07 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.6987, allocations: 202.7 kB / 1.07 GB, free: 5.711 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.6989, allocations: 11.94 kB / 1.07 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007426/0.6996, allocations: 91.84 kB / 1.07 GB, free: 5.617 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.6998, allocations: 83.36 kB / 1.07 GB, free: 5.547 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.552e-05/0.6999, allocations: 35.84 kB / 1.07 GB, free: 5.52 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0006467/0.7005, allocations: 0.5939 MB / 1.071 GB, free: 5.094 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001129/0.7016, allocations: 469.4 kB / 1.071 GB, free: 4.633 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (cooVal2.limPI.I.y,cooVal1.limPI.I.y,cooVal3.limPI.I.y,cooVal.limPI.I.y) * Number of discrete variables: 23 (cooVal2.limPI.trigger,$whenCondition1,cooVal2.TOutThr.y,cooVal2.uFanFeeThr.y,cooVal2.cha.u,cooVal1.limPI.trigger,$whenCondition2,cooVal1.TOutThr.y,cooVal1.uFanFeeThr.y,cooVal1.cha.u,cooVal3.limPI.trigger,$whenCondition3,cooVal3.TOutThr.y,cooVal3.uFanFeeThr.y,cooVal3.cha.u,cooVal.limPI.trigger,$whenCondition5,$whenCondition4,cooVal.uFanSta,cooVal.TOutThr.y,cooVal.uFanFeeThr.y,cooVal.cha.u,uSupFan.pulseStart) * Number of discrete states: 12 (cooVal.uFanFeeThr.y,cooVal.TOutThr.y,cooVal.cha.u,cooVal3.uFanFeeThr.y,cooVal3.TOutThr.y,cooVal3.cha.u,cooVal1.uFanFeeThr.y,cooVal1.TOutThr.y,cooVal1.cha.u,cooVal2.uFanFeeThr.y,cooVal2.TOutThr.y,cooVal2.cha.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002166/0.7019, allocations: 144.6 kB / 1.071 GB, free: 4.488 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00156/0.7034, allocations: 1.176 MB / 1.073 GB, free: 3.691 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.7034, allocations: 2.438 kB / 1.073 GB, free: 3.691 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.7039, allocations: 328.9 kB / 1.073 GB, free: 3.473 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.7051, allocations: 255.1 kB / 1.073 GB, free: 3.281 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.7083, allocations: 1.791 MB / 1.075 GB, free: 1.629 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/0.7095, allocations: 1.376 MB / 1.076 GB, free: 228 kB / 0.6823 GB Notification: Performance of SimCode: time 2.7e-07/0.7095, allocations: 0 / 1.076 GB, free: 228 kB / 0.6823 GB Notification: Performance of Templates: time 0.02855/0.738, allocations: 17.57 MB / 1.093 GB, free: 14.83 MB / 0.7136 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Plotters_Examples_BaseClasses_Validation_CoolingCoilValve.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches