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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 108 kB / 15.61 MB, free: 152 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.001188/0.001187, allocations: 194 kB / 16.53 MB, free: 6.664 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.185/1.185, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.088/2.088, allocations: 390.2 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 67.91 kB / 0.8127 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5038/0.505, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed): time 0.003329/0.5084, allocations: 2.921 MB / 0.9526 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00181/0.5102, allocations: 1.511 MB / 0.9541 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.5104, allocations: 16.03 kB / 0.9541 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003162/0.5107, allocations: 105.6 kB / 0.9542 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00028/0.511, allocations: 136.5 kB / 0.9543 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000675/0.5117, allocations: 419.2 kB / 0.9547 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003695/0.5121, allocations: 0.519 MB / 0.9552 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/0.5123, allocations: 206.2 kB / 0.9554 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.5125, allocations: 208 kB / 0.9556 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.5126, allocations: 197.4 kB / 0.9558 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.236e-05/0.5127, allocations: 39.03 kB / 0.9558 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.5129, allocations: 103 kB / 0.9559 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.938e-05/0.513, allocations: 102.5 kB / 0.956 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.5131, allocations: 220.6 kB / 0.9562 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003993/0.5135, allocations: 0.5762 MB / 0.9568 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.5135, allocations: 0 / 0.9568 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5135, allocations: 0 / 0.9568 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.5135, allocations: 4 kB / 0.9568 GB, free: 3.766 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.0009295/0.5145, allocations: 0.7903 MB / 0.9576 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.5145, allocations: 9.906 kB / 0.9576 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.5145, allocations: 63.11 kB / 0.9576 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.5146, allocations: 57.75 kB / 0.9577 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.5151, allocations: 435.3 kB / 0.9581 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.5151, allocations: 25 kB / 0.9581 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.5151, allocations: 29.75 kB / 0.9582 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.5156, allocations: 335.9 kB / 0.9585 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.5156, allocations: 1.094 kB / 0.9585 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.5157, allocations: 10.78 kB / 0.9585 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.5157, allocations: 6.469 kB / 0.9585 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.5161, allocations: 211.1 kB / 0.9587 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009811/0.5171, allocations: 1.103 MB / 0.9598 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005161/0.5176, allocations: 243.2 kB / 0.96 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.5178, allocations: 112 kB / 0.9601 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.5179, allocations: 2.156 kB / 0.9601 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.5182, allocations: 147.8 kB / 0.9603 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.5182, allocations: 0 / 0.9603 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0009633/0.5192, allocations: 365 kB / 0.9606 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.5192, allocations: 105.5 kB / 0.9607 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.5196, allocations: 458.2 kB / 0.9611 GB, free: 368 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.5196, allocations: 27.39 kB / 0.9612 GB, free: 336 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.5197, allocations: 231.8 kB / 0.9614 GB, free: 124 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.987e-05/0.5198, allocations: 72.81 kB / 0.9615 GB, free: 60 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-05/0.5198, allocations: 58.28 kB / 0.9615 GB, free: 16 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.52, allocations: 353.2 kB / 0.9619 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.5202, allocations: 82.3 kB / 0.9619 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.5204, allocations: 171.1 kB / 0.9621 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004176/0.5209, allocations: 216.1 kB / 0.9623 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5209, allocations: 0 / 0.9623 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005482/0.5214, allocations: 307 kB / 0.9626 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.5215, allocations: 5.938 kB / 0.9626 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.5215, allocations: 1.094 kB / 0.9626 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.5215, allocations: 2.625 kB / 0.9626 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.5217, allocations: 54.06 kB / 0.9627 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.5217, allocations: 3.594 kB / 0.9627 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.5219, allocations: 25.72 kB / 0.9627 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.5219, allocations: 15.8 kB / 0.9627 GB, free: 15.15 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.0001612/0.5221, allocations: 175.6 kB / 0.9629 GB, free: 15 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.926e-05/0.5222, allocations: 47.72 kB / 0.9629 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.29e-05/0.5223, allocations: 48.33 kB / 0.963 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.5223, allocations: 6.656 kB / 0.963 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5223, allocations: 1.062 kB / 0.963 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5223, allocations: 3.938 kB / 0.963 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003368/0.5226, allocations: 414 kB / 0.9634 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.5226, allocations: 0 / 0.9634 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.5228, allocations: 38.84 kB / 0.9634 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.5228, allocations: 1.438 kB / 0.9634 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.5229, allocations: 6.719 kB / 0.9634 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.5229, allocations: 3.984 kB / 0.9634 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.5229, allocations: 1.156 kB / 0.9634 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007871/0.5237, allocations: 415.1 kB / 0.9638 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.5238, allocations: 147.5 kB / 0.964 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.898e-05/0.5239, allocations: 6.031 kB / 0.964 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.524, allocations: 14.86 kB / 0.964 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.976e-05/0.5241, allocations: 20.89 kB / 0.964 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.5241, allocations: 13.98 kB / 0.964 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000312/0.5244, allocations: 315.4 kB / 0.9643 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5244, allocations: 0 / 0.9643 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002944/0.5247, allocations: 76.02 kB / 0.9644 GB, free: 13.92 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.001799/0.5265, allocations: 1.292 MB / 0.9656 GB, free: 13.01 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005387/0.5271, allocations: 231.2 kB / 0.9659 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5271, allocations: 5 kB / 0.9659 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.5274, allocations: 115 kB / 0.966 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.5278, allocations: 111.7 kB / 0.9661 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004099/0.532, allocations: 3.479 MB / 0.9695 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.5323, allocations: 0.8121 MB / 0.9703 GB, free: 9.648 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000182/0.5325, allocations: 51.06 kB / 0.9703 GB, free: 9.621 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.5327, allocations: 143.5 kB / 0.9705 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.5327, allocations: 4 kB / 0.9705 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02519/0.5579, allocations: 8.842 MB / 0.9791 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.821/7.379, allocations: 9.156 kB / 0.9791 GB, free: 3.531 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed_res.csv --start-time 0 --stop-time 1080 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.432 Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed.fmu > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed_res.csv","/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