Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.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.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_9_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_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.273/2.273, allocations: 387.1 MB / 399.7 MB, free: 9.453 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.001053/0.001053, allocations: 172.9 kB / 492.3 MB, free: 0.6289 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.457/1.457, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0008822/0.000882, allocations: 91.95 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.819e-05/2.821e-05, allocations: 8 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2687, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8931/1.162, allocations: 157.9 MB / 1.367 GB, free: 18.79 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/1.162, allocations: 107.1 kB / 1.367 GB, free: 18.78 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Experimental/DHC/Plants/Cooling/Controls/ChilledWaterBypass.mo:78:3-78:77:writable] Warning: connect(y, y) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.03109/1.193, allocations: 13.06 MB / 1.379 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.193, allocations: 0 / 1.379 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.076e-05/1.193, allocations: 11.38 kB / 1.379 GB, free: 33.03 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.000991/1.194, allocations: 0.7645 MB / 1.38 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/1.194, allocations: 15.56 kB / 1.38 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/1.195, allocations: 57.94 kB / 1.38 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006579/1.195, allocations: 450.4 kB / 1.381 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/1.195, allocations: 29.41 kB / 1.381 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.832e-05/1.195, allocations: 31.31 kB / 1.381 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005344/1.196, allocations: 370.1 kB / 1.381 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/1.196, allocations: 7.938 kB / 1.381 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/1.196, allocations: 19.44 kB / 1.381 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/1.196, allocations: 11.53 kB / 1.381 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003656/1.196, allocations: 255 kB / 1.381 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/1.198, allocations: 1.193 MB / 1.383 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007099/1.198, allocations: 475.4 kB / 1.383 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/1.199, allocations: 157.3 kB / 1.383 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/1.199, allocations: 3.844 kB / 1.383 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002807/1.199, allocations: 212 kB / 1.383 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.944e-06/1.199, allocations: 0 / 1.383 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004978/1.2, allocations: 352.8 kB / 1.384 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/1.2, allocations: 132.4 kB / 1.384 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004583/1.2, allocations: 463.7 kB / 1.384 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/1.2, allocations: 31.89 kB / 1.384 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000135/1.2, allocations: 246.8 kB / 1.385 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.211e-05/1.2, allocations: 107 kB / 1.385 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.441e-05/1.2, allocations: 7.375 kB / 1.385 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001096/1.2, allocations: 362.2 kB / 1.385 GB, free: 30 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/1.201, allocations: 101.8 kB / 1.385 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/1.201, allocations: 189.6 kB / 1.385 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/1.201, allocations: 117.5 kB / 1.385 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/1.201, allocations: 3.844 kB / 1.385 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004183/1.201, allocations: 340.4 kB / 1.386 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.94e-05/1.201, allocations: 282 kB / 1.386 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/1.201, allocations: 0 / 1.386 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/1.202, allocations: 3.844 kB / 1.386 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/1.202, allocations: 61.88 kB / 1.386 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/1.202, allocations: 11.77 kB / 1.386 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/1.202, allocations: 50.23 kB / 1.386 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/1.202, allocations: 15.14 kB / 1.386 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/1.202, allocations: 4.75 kB / 1.386 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003477/1.202, allocations: 262.2 kB / 1.386 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-06/1.202, allocations: 0 / 1.386 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.188e-06/1.202, allocations: 3.812 kB / 1.386 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/1.203, allocations: 77.62 kB / 1.386 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/1.203, allocations: 3.844 kB / 1.386 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/1.203, allocations: 34.83 kB / 1.386 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.885e-05/1.203, allocations: 11.72 kB / 1.386 GB, free: 29.4 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.0001018/1.203, allocations: 137.7 kB / 1.387 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/1.203, allocations: 50.56 kB / 1.387 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005297/1.204, allocations: 376.1 kB / 1.387 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/1.204, allocations: 7.906 kB / 1.387 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.204, allocations: 3.953 kB / 1.387 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/1.204, allocations: 11.8 kB / 1.387 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/1.205, allocations: 0.9833 MB / 1.388 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/1.205, allocations: 0 / 1.388 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/1.205, allocations: 61.91 kB / 1.388 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/1.205, allocations: 7.703 kB / 1.388 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/1.205, allocations: 10.95 kB / 1.388 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/1.205, allocations: 0 / 1.388 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.205, allocations: 0 / 1.388 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007185/1.206, allocations: 0.6158 MB / 1.389 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/1.206, allocations: 133.9 kB / 1.389 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/1.206, allocations: 18.31 kB / 1.389 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/1.206, allocations: 30.83 kB / 1.389 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/1.206, allocations: 26.95 kB / 1.389 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/1.206, allocations: 11.06 kB / 1.389 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003668/1.207, allocations: 366.8 kB / 1.389 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.207, allocations: 0 / 1.389 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005279/1.207, allocations: 176.6 kB / 1.389 GB, free: 28.13 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.0009201/1.208, allocations: 421 kB / 1.39 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006288/1.209, allocations: 455.8 kB / 1.39 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.209, allocations: 0 / 1.39 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/1.209, allocations: 155.2 kB / 1.39 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/1.21, allocations: 112.3 kB / 1.391 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/1.211, allocations: 0.626 MB / 1.391 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/1.211, allocations: 0.8597 MB / 1.392 GB, free: 26.79 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004085/1.211, allocations: 160.5 kB / 1.392 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.081e-05/1.211, allocations: 30.22 kB / 1.392 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.211, allocations: 0 / 1.392 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of Templates: time 0.01013/1.222, allocations: 6.538 MB / 1.399 GB, free: 23.57 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.makefile (rm -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.sim & ./Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass.csv","../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches