Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.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.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooTowSpeCon.TCHWSupSet|cooTowSpeCon.TCWSupSet|cooTowSpeCon.TCHWSup|cooTowSpeCon.TCWSup|cooTowSpeCon.cooMod|cooTowSpeCon.y",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooTowSpeCon.TCHWSupSet|cooTowSpeCon.TCWSupSet|cooTowSpeCon.TCHWSup|cooTowSpeCon.TCWSup|cooTowSpeCon.cooMod|cooTowSpeCon.y",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed") [: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.791/1.791, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001059/0.001059, allocations: 188.3 kB / 487 MB, free: 5.352 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.154/1.154, allocations: 221.3 MB / 0.7819 GB, free: 1.398 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.0008758/0.0008758, allocations: 92.05 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.871e-06/5.961e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2203, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5641/0.7844, allocations: 159.2 MB / 1.361 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.7847, allocations: 94.5 kB / 1.361 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02261/0.8073, allocations: 10.14 MB / 1.371 GB, free: 7.461 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.17e-05/0.8074, allocations: 16 kB / 1.371 GB, free: 7.445 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.0007393/0.8081, allocations: 0.6868 MB / 1.371 GB, free: 6.734 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.8082, allocations: 8.031 kB / 1.371 GB, free: 6.727 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.182e-05/0.8083, allocations: 56.19 kB / 1.371 GB, free: 6.672 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005201/0.8088, allocations: 426 kB / 1.372 GB, free: 6.285 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.8088, allocations: 15.94 kB / 1.372 GB, free: 6.27 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.8089, allocations: 16 kB / 1.372 GB, free: 6.254 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003103/0.8092, allocations: 180.3 kB / 1.372 GB, free: 6.152 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003565/0.8096, allocations: 290 kB / 1.372 GB, free: 5.906 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.8096, allocations: 4 kB / 1.372 GB, free: 5.902 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.8096, allocations: 0 / 1.372 GB, free: 5.902 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.8096, allocations: 4 kB / 1.372 GB, free: 5.898 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.8107, allocations: 1.109 MB / 1.373 GB, free: 4.945 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.811, allocations: 215.8 kB / 1.374 GB, free: 4.797 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.8111, allocations: 96.97 kB / 1.374 GB, free: 4.738 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.8112, allocations: 192 / 1.374 GB, free: 4.738 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.8113, allocations: 144.6 kB / 1.374 GB, free: 4.621 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=23): time 1.262e-06/0.8114, allocations: 4 kB / 1.374 GB, free: 4.617 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23): time 0.0003434/0.8117, allocations: 227.9 kB / 1.374 GB, free: 4.449 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.8117, allocations: 162.2 kB / 1.374 GB, free: 4.254 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.8121, allocations: 356.5 kB / 1.375 GB, free: 3.977 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.8121, allocations: 25.7 kB / 1.375 GB, free: 3.945 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.8121, allocations: 170.3 kB / 1.375 GB, free: 3.793 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.759e-05/0.8122, allocations: 66.56 kB / 1.375 GB, free: 3.734 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.219e-05/0.8122, allocations: 0 / 1.375 GB, free: 3.734 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.925e-05/0.8123, allocations: 360 kB / 1.375 GB, free: 3.391 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.8124, allocations: 69.19 kB / 1.375 GB, free: 3.355 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.8125, allocations: 163.7 kB / 1.375 GB, free: 3.207 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.8127, allocations: 86.59 kB / 1.375 GB, free: 3.156 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.8127, allocations: 0 / 1.375 GB, free: 3.156 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000317/0.813, allocations: 249.5 kB / 1.376 GB, free: 2.965 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/0.813, allocations: 8 kB / 1.376 GB, free: 2.957 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.813, allocations: 0 / 1.376 GB, free: 2.957 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.813, allocations: 4 kB / 1.376 GB, free: 2.953 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.8133, allocations: 59.72 kB / 1.376 GB, free: 2.898 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.8133, allocations: 15.91 kB / 1.376 GB, free: 2.883 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.8135, allocations: 39.73 kB / 1.376 GB, free: 2.844 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.8135, allocations: 4.062 kB / 1.376 GB, free: 2.84 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.cooMod.combiTimeTable.nextTimeEvent,cooTowSpeCon.pmcMod.y,cooTowSpeCon.fmcMod.y,cooMod.y,cooMod.combiTimeTable.nextTimeEvent,$PRE.cooMod.combiTimeTable.nextTimeEventScaled,cooMod.combiTimeTable.nextTimeEventScaled,cooTowSpeCon.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 7.381e-05/0.8136, allocations: 131.7 kB / 1.376 GB, free: 2.707 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.8136, allocations: 35.53 kB / 1.376 GB, free: 2.672 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.814, allocations: 250.8 kB / 1.376 GB, free: 2.488 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.814, allocations: 0 / 1.376 GB, free: 2.488 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.814, allocations: 3.906 kB / 1.376 GB, free: 2.484 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.814, allocations: 0 / 1.376 GB, free: 2.484 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002597/0.8143, allocations: 397.9 kB / 1.377 GB, free: 2.148 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8143, allocations: 0 / 1.377 GB, free: 2.148 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.8145, allocations: 47.91 kB / 1.377 GB, free: 2.102 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.8146, allocations: 0 / 1.377 GB, free: 2.102 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.8146, allocations: 4 kB / 1.377 GB, free: 2.098 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.8146, allocations: 0 / 1.377 GB, free: 2.098 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.8146, allocations: 0 / 1.377 GB, free: 2.098 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004573/0.8151, allocations: 396.1 kB / 1.377 GB, free: 1.816 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.8152, allocations: 149.3 kB / 1.377 GB, free: 1.668 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.867e-05/0.8152, allocations: 11.06 kB / 1.377 GB, free: 1.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.8154, allocations: 24.05 kB / 1.377 GB, free: 1.637 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.8155, allocations: 14.91 kB / 1.377 GB, free: 1.625 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.8155, allocations: 11.98 kB / 1.377 GB, free: 1.613 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0002086/0.8157, allocations: 279.6 kB / 1.377 GB, free: 1.41 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003058/0.816, allocations: 91.12 kB / 1.378 GB, free: 1.324 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cooTowSpeCon.conPID.I.y) * Number of discrete variables: 6 ($whenCondition1,cooTowSpeCon.pmcMod.y,cooTowSpeCon.fmcMod.y,cooMod.y,cooMod.combiTimeTable.nextTimeEvent,cooMod.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (cooMod.combiTimeTable.nextTimeEvent,cooMod.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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.0005778/0.8166, allocations: 337.9 kB / 1.378 GB, free: 1.074 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003108/0.817, allocations: 203.3 kB / 1.378 GB, free: 0.9453 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.817, allocations: 4 kB / 1.378 GB, free: 0.9414 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.8171, allocations: 108.7 kB / 1.378 GB, free: 0.8711 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.8175, allocations: 81.61 kB / 1.378 GB, free: 0.8047 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008483/0.8184, allocations: 0.4899 MB / 1.379 GB, free: 364 kB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.8188, allocations: 0.8529 MB / 1.38 GB, free: 15.47 MB / 0.823 GB Notification: Performance of SimCode: time 3e-07/0.8188, allocations: 0 / 1.38 GB, free: 15.47 MB / 0.823 GB Notification: Performance of Templates: time 0.008788/0.8276, allocations: 4.819 MB / 1.384 GB, free: 10.75 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.makefile (rm -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe ; mkfifo Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe >> ../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.sim & ./Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed.csv","../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches