Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOne.y|onTwo.y|chiBypCon.bypValCon.u_s|chiBypCon.bypValCon.u_m|chiBypCon.y",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass") translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOne.y|onTwo.y|chiBypCon.bypValCon.u_s|chiBypCon.bypValCon.u_m|chiBypCon.y",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.737/2.737, allocations: 390.5 MB / 398 MB, free: 10.91 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.001351/0.001351, allocations: 184.8 kB / 491.2 MB, free: 1.559 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.675/1.675, allocations: 221.5 MB / 0.7868 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 110.3 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.988e-05/1.982e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3138, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.998/1.312, allocations: 158 MB / 1.367 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/1.312, allocations: 102.9 kB / 1.367 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03252/1.345, allocations: 12.95 MB / 1.379 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.603e-06/1.345, allocations: 0 / 1.379 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.011e-05/1.345, allocations: 11.31 kB / 1.379 GB, free: 32.05 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001454/1.346, allocations: 0.7677 MB / 1.38 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/1.346, allocations: 12.19 kB / 1.38 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/1.347, allocations: 61.94 kB / 1.38 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008912/1.348, allocations: 455.9 kB / 1.381 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/1.348, allocations: 11.53 kB / 1.381 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.463e-05/1.348, allocations: 23.38 kB / 1.381 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004968/1.348, allocations: 244.3 kB / 1.381 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/1.349, allocations: 329 kB / 1.381 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/1.349, allocations: 7.812 kB / 1.381 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/1.349, allocations: 4 kB / 1.381 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/1.349, allocations: 7.75 kB / 1.381 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/1.351, allocations: 1.126 MB / 1.382 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007024/1.351, allocations: 454.2 kB / 1.383 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/1.352, allocations: 147 kB / 1.383 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/1.352, allocations: 7.766 kB / 1.383 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/1.352, allocations: 193.4 kB / 1.383 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.763e-06/1.352, allocations: 4 kB / 1.383 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0005231/1.352, allocations: 327.2 kB / 1.383 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/1.352, allocations: 132.4 kB / 1.384 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/1.353, allocations: 426.3 kB / 1.384 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/1.353, allocations: 29.2 kB / 1.384 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/1.353, allocations: 249.8 kB / 1.384 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.001e-05/1.353, allocations: 95.92 kB / 1.384 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/1.353, allocations: 0 / 1.384 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.353, allocations: 358.3 kB / 1.385 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/1.354, allocations: 110.8 kB / 1.385 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/1.354, allocations: 173.5 kB / 1.385 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/1.354, allocations: 119.6 kB / 1.385 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.354, allocations: 0 / 1.385 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004557/1.354, allocations: 314 kB / 1.385 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/1.354, allocations: 274 kB / 1.386 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/1.354, allocations: 4 kB / 1.386 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/1.355, allocations: 3.938 kB / 1.386 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/1.355, allocations: 73.58 kB / 1.386 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/1.355, allocations: 0 / 1.386 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/1.355, allocations: 38.62 kB / 1.386 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/1.355, allocations: 15 kB / 1.386 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/1.355, allocations: 3.906 kB / 1.386 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003412/1.355, allocations: 239.9 kB / 1.386 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-06/1.355, allocations: 0 / 1.386 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.25e-06/1.355, allocations: 0 / 1.386 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/1.356, allocations: 65.91 kB / 1.386 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/1.356, allocations: 3.953 kB / 1.386 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/1.356, allocations: 46.91 kB / 1.386 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/1.356, allocations: 7.812 kB / 1.386 GB, free: 28.46 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$PRE.onTwo.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.onOne.combiTimeTable.nextTimeEvent,$whenCondition3,chiBypCon.chiOn[1],chiBypCon.chiOn[2],chiBypCon.bypValCon.trigger,chiBypCon.booToInt[1].y,chiBypCon.booToInt[2].y,chiBypCon.intGreThr.u,onOne.combiTimeTable.nextTimeEvent,$PRE.onOne.combiTimeTable.nextTimeEventScaled,onOne.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEvent,$PRE.onTwo.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001221/1.356, allocations: 126.1 kB / 1.386 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/1.356, allocations: 46.59 kB / 1.386 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004903/1.357, allocations: 353.9 kB / 1.387 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/1.357, allocations: 3.969 kB / 1.387 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/1.357, allocations: 0 / 1.387 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/1.357, allocations: 7.953 kB / 1.387 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/1.358, allocations: 0.9068 MB / 1.387 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.358, allocations: 3.938 kB / 1.387 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002242/1.358, allocations: 50.41 kB / 1.388 GB, free: 27.76 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/1.358, allocations: 0 / 1.388 GB, free: 27.76 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/1.358, allocations: 7.469 kB / 1.388 GB, free: 27.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/1.358, allocations: 3.953 kB / 1.388 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.358, allocations: 4 kB / 1.388 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/1.359, allocations: 0.5855 MB / 1.388 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.191e-05/1.359, allocations: 136.8 kB / 1.388 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.017e-05/1.359, allocations: 3.906 kB / 1.388 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/1.359, allocations: 27 kB / 1.388 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.59e-05/1.359, allocations: 34.67 kB / 1.388 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/1.359, allocations: 7.719 kB / 1.388 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003283/1.36, allocations: 337 kB / 1.389 GB, free: 27.28 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.36, allocations: 0 / 1.389 GB, free: 27.28 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005278/1.36, allocations: 160.8 kB / 1.389 GB, free: 27.24 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (chiBypCon.bypValCon.I.y) * Number of discrete variables: 13 (chiBypCon.bypValCon.trigger,$whenCondition3,$whenCondition2,$whenCondition1,chiBypCon.chiOn[1],chiBypCon.chiOn[2],chiBypCon.booToInt[1].y,chiBypCon.booToInt[2].y,chiBypCon.intGreThr.u,onOne.combiTimeTable.nextTimeEvent,onOne.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEvent,onTwo.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 4 (onTwo.combiTimeTable.nextTimeEvent,onOne.combiTimeTable.nextTimeEvent,onTwo.combiTimeTable.nextTimeEventScaled,onOne.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008114/1.361, allocations: 395.8 kB / 1.389 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000555/1.362, allocations: 422.9 kB / 1.39 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.362, allocations: 0 / 1.39 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001654/1.362, allocations: 150.8 kB / 1.39 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005488/1.362, allocations: 95.56 kB / 1.39 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009777/1.363, allocations: 0.6083 MB / 1.39 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004321/1.364, allocations: 0.8612 MB / 1.391 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004191/1.364, allocations: 158 kB / 1.391 GB, free: 25.81 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.068e-05/1.364, allocations: 38.02 kB / 1.391 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.364, allocations: 0 / 1.391 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of Templates: time 0.01031/1.375, allocations: 5.942 MB / 1.397 GB, free: 22.96 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.sim & ./Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass.csv","../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches