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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 180.2 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 223.2 MB / 241 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.618/2.618, allocations: 390.9 MB / 0.667 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003851, allocations: 8 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9242/0.9246, allocations: 142.4 MB / 0.9557 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed): time 0.003541/0.9281, allocations: 2.585 MB / 0.9582 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00249/0.9307, allocations: 1.451 MB / 0.9597 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000245/0.9309, allocations: 11.53 kB / 0.9597 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004061/0.9313, allocations: 80.25 kB / 0.9597 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000301/0.9317, allocations: 119.3 kB / 0.9599 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000834/0.9325, allocations: 373.2 kB / 0.9602 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.9331, allocations: 497 kB / 0.9607 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003246/0.9334, allocations: 200.8 kB / 0.9609 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.9336, allocations: 146.3 kB / 0.961 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.9338, allocations: 160.5 kB / 0.9612 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.9339, allocations: 9.625 kB / 0.9612 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.934, allocations: 60.72 kB / 0.9612 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.9342, allocations: 75.14 kB / 0.9613 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.9343, allocations: 196.8 kB / 0.9615 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004473/0.9348, allocations: 451.1 kB / 0.9619 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.9348, allocations: 0 / 0.9619 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9348, allocations: 0 / 0.9619 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.9348, allocations: 0 / 0.9619 GB, free: 2.887 MB / 0.7169 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.001161/0.936, allocations: 0.7143 MB / 0.9626 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.936, allocations: 12.69 kB / 0.9626 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.9362, allocations: 57.12 kB / 0.9627 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000579/0.9367, allocations: 432.6 kB / 0.9631 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.243e-05/0.9368, allocations: 29.16 kB / 0.9631 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.9369, allocations: 33.19 kB / 0.9632 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.9375, allocations: 328.7 kB / 0.9635 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.9375, allocations: 3.938 kB / 0.9635 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.314e-05/0.9376, allocations: 11.19 kB / 0.9635 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.9376, allocations: 7 kB / 0.9635 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005431/0.9381, allocations: 221.3 kB / 0.9637 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.9395, allocations: 1.106 MB / 0.9648 GB, free: 492 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000639/0.9401, allocations: 240.7 kB / 0.965 GB, free: 360 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.9404, allocations: 119.8 kB / 0.9651 GB, free: 296 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.9405, allocations: 10.2 kB / 0.9651 GB, free: 288 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004033/0.9409, allocations: 157.8 kB / 0.9653 GB, free: 176 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.9409, allocations: 0 / 0.9653 GB, free: 176 kB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0009299/0.9418, allocations: 369.8 kB / 0.9656 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.077e-05/0.9419, allocations: 112.2 kB / 0.9658 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006175/0.9425, allocations: 449.6 kB / 0.9662 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.9426, allocations: 31.86 kB / 0.9662 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.9428, allocations: 236.2 kB / 0.9664 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.9429, allocations: 68.69 kB / 0.9665 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.156e-05/0.943, allocations: 34.42 kB / 0.9665 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.9431, allocations: 350 kB / 0.9669 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.9434, allocations: 85.45 kB / 0.967 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/0.9437, allocations: 165.5 kB / 0.9671 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005275/0.9442, allocations: 225 kB / 0.9673 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.9442, allocations: 0 / 0.9673 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006975/0.9449, allocations: 310.1 kB / 0.9676 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.945, allocations: 9.906 kB / 0.9676 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.945, allocations: 2.031 kB / 0.9676 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.945, allocations: 6.484 kB / 0.9676 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.9453, allocations: 52.62 kB / 0.9677 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.9453, allocations: 6 kB / 0.9677 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.9455, allocations: 33.02 kB / 0.9677 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.9456, allocations: 11.5 kB / 0.9677 GB, free: 14.39 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.cooMod.combiTimeTable.nextTimeEvent,$whenCondition1,cooMod.combiTimeTable.nextTimeEventScaled,$PRE.cooMod.combiTimeTable.nextTimeEventScaled,cooMod.combiTimeTable.nextTimeEvent,cooMod.y,cooTowSpeCon.fmcMod.y,cooTowSpeCon.pmcMod.y,cooTowSpeCon.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002273/0.9458, allocations: 179.7 kB / 0.9679 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.06e-05/0.9459, allocations: 46.97 kB / 0.968 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.946, allocations: 45.09 kB / 0.968 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.946, allocations: 2.438 kB / 0.968 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.946, allocations: 4.766 kB / 0.968 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.946, allocations: 3.938 kB / 0.968 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/0.9465, allocations: 410.1 kB / 0.9684 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.9465, allocations: 3.938 kB / 0.9684 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.9468, allocations: 37.56 kB / 0.9684 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.9468, allocations: 1 kB / 0.9684 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.9468, allocations: 6.156 kB / 0.9684 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.291e-05/0.9468, allocations: 1 kB / 0.9684 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.9468, allocations: 4 kB / 0.9684 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009782/0.9478, allocations: 439.6 kB / 0.9689 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.948, allocations: 147.7 kB / 0.969 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.948, allocations: 5.984 kB / 0.969 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.9482, allocations: 17.45 kB / 0.969 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/0.9483, allocations: 16.48 kB / 0.969 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.9483, allocations: 9.234 kB / 0.9691 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000419/0.9488, allocations: 316.3 kB / 0.9694 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9488, allocations: 64 / 0.9694 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004495/0.9492, allocations: 88.14 kB / 0.9694 GB, free: 13.15 MB / 0.7325 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.nextTimeEventScaled,cooMod.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/0.9504, allocations: 432.8 kB / 0.9699 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006482/0.951, allocations: 233.2 kB / 0.9701 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.951, allocations: 1.031 kB / 0.9701 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.9513, allocations: 117.5 kB / 0.9702 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000624/0.952, allocations: 108.7 kB / 0.9703 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.9535, allocations: 0.8594 MB / 0.9711 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.954, allocations: 0.8171 MB / 0.9719 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.9541, allocations: 35.36 kB / 0.972 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of SimCode: time 2.475e-06/0.9541, allocations: 0 / 0.972 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of Templates: time 0.01041/0.9645, allocations: 5.565 MB / 0.9774 GB, free: 8.477 MB / 0.7325 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches