Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.935/1.935, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001238/0.001238, allocations: 173.3 kB / 487 MB, free: 5.402 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.326/1.326, allocations: 221.3 MB / 0.7819 GB, free: 1.43 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.000947/0.000947, allocations: 91.75 kB / 0.9213 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.953e-06/6.973e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2561, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6991/0.9553, allocations: 154 MB / 1.356 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.9556, allocations: 84.34 kB / 1.356 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.05257/1.008, allocations: 22.39 MB / 1.378 GB, free: 1.715 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.885e-05/1.008, allocations: 39.36 kB / 1.378 GB, free: 1.68 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 352 * Number of variables: 352 Notification: Performance of Generate backend data structure: time 0.002302/1.011, allocations: 1.606 MB / 1.379 GB, free: 140 kB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/1.011, allocations: 8.031 kB / 1.379 GB, free: 132 kB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002885/1.011, allocations: 209.6 kB / 1.379 GB, free: 15.91 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/1.013, allocations: 1.131 MB / 1.38 GB, free: 14.99 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/1.013, allocations: 44 kB / 1.38 GB, free: 14.95 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/1.013, allocations: 95.91 kB / 1.381 GB, free: 14.86 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001523/1.015, allocations: 0.8219 MB / 1.381 GB, free: 14.37 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/1.017, allocations: 1.082 MB / 1.382 GB, free: 13.57 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/1.017, allocations: 0 / 1.382 GB, free: 13.57 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.834e-05/1.017, allocations: 10.53 kB / 1.382 GB, free: 13.56 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.952e-05/1.017, allocations: 35.94 kB / 1.382 GB, free: 13.53 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006158/1.023, allocations: 4.204 MB / 1.387 GB, free: 10.41 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/1.024, allocations: 0.682 MB / 1.387 GB, free: 9.93 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005253/1.025, allocations: 340.1 kB / 1.388 GB, free: 9.719 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 6.048e-05/1.025, allocations: 15.28 kB / 1.388 GB, free: 9.707 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005713/1.025, allocations: 423 kB / 1.388 GB, free: 9.391 MB / 0.823 GB Notification: Performance of pre-optimization done (n=87): time 3.337e-06/1.025, allocations: 0 / 1.388 GB, free: 9.391 MB / 0.823 GB Notification: Performance of matching and sorting (n=87): time 0.00104/1.026, allocations: 0.6116 MB / 1.389 GB, free: 8.93 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/1.026, allocations: 239.5 kB / 1.389 GB, free: 8.641 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008753/1.027, allocations: 0.7526 MB / 1.39 GB, free: 8.074 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 8.963e-05/1.027, allocations: 48.62 kB / 1.39 GB, free: 8.027 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/1.028, allocations: 0.567 MB / 1.39 GB, free: 7.535 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/1.028, allocations: 265.6 kB / 1.39 GB, free: 7.312 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/1.028, allocations: 4 kB / 1.39 GB, free: 7.309 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001185/1.028, allocations: 346.3 kB / 1.391 GB, free: 6.98 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004689/1.029, allocations: 296.5 kB / 1.391 GB, free: 6.82 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006581/1.029, allocations: 0.6253 MB / 1.392 GB, free: 6.199 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000638/1.03, allocations: 353 kB / 1.392 GB, free: 5.98 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/1.03, allocations: 0 / 1.392 GB, free: 5.98 MB / 0.823 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00156/1.031, allocations: 0.9565 MB / 1.393 GB, free: 5.254 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000898/1.032, allocations: 2.796 MB / 1.396 GB, free: 2.297 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/1.032, allocations: 11.98 kB / 1.396 GB, free: 2.285 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/1.032, allocations: 12 kB / 1.396 GB, free: 2.273 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008439/1.033, allocations: 245.4 kB / 1.396 GB, free: 2.043 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/1.033, allocations: 19.94 kB / 1.396 GB, free: 2.023 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009316/1.034, allocations: 187 kB / 1.396 GB, free: 1.84 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.725e-05/1.034, allocations: 50.62 kB / 1.396 GB, free: 1.801 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 6.613e-06/1.034, allocations: 4 kB / 1.396 GB, free: 1.797 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001361/1.036, allocations: 0.7571 MB / 1.397 GB, free: 1.254 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/1.036, allocations: 15.97 kB / 1.397 GB, free: 1.238 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/1.036, allocations: 16 kB / 1.397 GB, free: 1.223 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006786/1.036, allocations: 202.2 kB / 1.397 GB, free: 1.035 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/1.036, allocations: 16 kB / 1.397 GB, free: 1.02 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007734/1.037, allocations: 151.2 kB / 1.397 GB, free: 0.8711 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-05/1.037, allocations: 53.73 kB / 1.397 GB, free: 0.8281 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition4,$whenCondition5,$whenCondition6,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.y,uSupFan.y,$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): 141 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002259/1.038, allocations: 150.5 kB / 1.397 GB, free: 0.6797 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/1.038, allocations: 122.5 kB / 1.398 GB, free: 0.5586 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/1.039, allocations: 0.6659 MB / 1.398 GB, free: 96 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/1.039, allocations: 12 kB / 1.398 GB, free: 84 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.039, allocations: 0 / 1.398 GB, free: 84 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/1.039, allocations: 3.984 kB / 1.398 GB, free: 80 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/1.042, allocations: 2.132 MB / 1.4 GB, free: 14.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/1.042, allocations: 4 kB / 1.4 GB, free: 14.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006849/1.043, allocations: 159.4 kB / 1.4 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/1.043, allocations: 4 kB / 1.4 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/1.043, allocations: 15.23 kB / 1.4 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/1.043, allocations: 11.94 kB / 1.401 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.565e-06/1.043, allocations: 11.98 kB / 1.401 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001749/1.044, allocations: 1.468 MB / 1.402 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002498/1.045, allocations: 197.4 kB / 1.402 GB, free: 12.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/1.045, allocations: 19.5 kB / 1.402 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007431/1.046, allocations: 87.14 kB / 1.402 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/1.046, allocations: 85.48 kB / 1.402 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.269e-05/1.046, allocations: 31.34 kB / 1.402 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0008996/1.047, allocations: 0.534 MB / 1.403 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.002245/1.049, allocations: 461.3 kB / 1.403 GB, free: 11.82 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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,$whenCondition6,$whenCondition4,$whenCondition5,cooVal.TOutThr.y,cooVal.uFanFeeThr.y,cooVal.cha.u,uSupFan.y) * 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 (89): * Single equations (assignments): 88 * 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.0003419/1.049, allocations: 156.7 kB / 1.403 GB, free: 11.67 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.002531/1.052, allocations: 1.284 MB / 1.405 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/1.052, allocations: 1.25 kB / 1.405 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006403/1.053, allocations: 330 kB / 1.405 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/1.054, allocations: 213.5 kB / 1.405 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00406/1.058, allocations: 1.712 MB / 1.407 GB, free: 8.809 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/1.059, allocations: 1.322 MB / 1.408 GB, free: 7.469 MB / 0.8386 GB Notification: Performance of SimCode: time 8.12e-07/1.059, allocations: 0 / 1.408 GB, free: 7.469 MB / 0.8386 GB Notification: Performance of Templates: time 0.03306/1.092, allocations: 17.01 MB / 1.425 GB, free: 6.688 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.makefile (rm -f Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe ; mkfifo Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe >> ../files/Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.sim & ./Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Plotters_Examples_BaseClasses_Validation_CoolingCoilValve.csv","../files/Buildings_9_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches