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.453/2.453, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001148/0.001148, allocations: 184.9 kB / 487.4 MB, free: 5.016 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.648/1.648, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 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.001208/0.001208, allocations: 93.41 kB / 0.9219 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.973e-05/1.976e-05, allocations: 6.25 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.301, allocations: 142.4 MB / 1.206 GB, free: 43.91 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9399/1.241, allocations: 157.2 MB / 1.359 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/1.241, allocations: 103.8 kB / 1.36 GB, free: 18.34 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.0315/1.273, allocations: 12.95 MB / 1.372 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.182e-06/1.273, allocations: 3.938 kB / 1.372 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.826e-05/1.273, allocations: 7.781 kB / 1.372 GB, free: 33.29 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.001419/1.274, allocations: 0.772 MB / 1.373 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.274, allocations: 11.75 kB / 1.373 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/1.275, allocations: 62.09 kB / 1.373 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007984/1.275, allocations: 449.1 kB / 1.374 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/1.275, allocations: 14.72 kB / 1.374 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.012e-05/1.276, allocations: 21.69 kB / 1.374 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004417/1.276, allocations: 236.4 kB / 1.374 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/1.276, allocations: 331.8 kB / 1.374 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/1.276, allocations: 3.938 kB / 1.374 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/1.277, allocations: 1.641 kB / 1.374 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/1.277, allocations: 7.719 kB / 1.374 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/1.278, allocations: 1.127 MB / 1.375 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007148/1.279, allocations: 456.4 kB / 1.376 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/1.279, allocations: 147.5 kB / 1.376 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/1.279, allocations: 5.156 kB / 1.376 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002677/1.279, allocations: 200.6 kB / 1.376 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.773e-06/1.279, allocations: 0 / 1.376 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0005108/1.28, allocations: 320 kB / 1.376 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/1.28, allocations: 132.3 kB / 1.376 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005141/1.281, allocations: 434.4 kB / 1.377 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/1.281, allocations: 25.7 kB / 1.377 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/1.281, allocations: 243.3 kB / 1.377 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.888e-05/1.281, allocations: 102.6 kB / 1.377 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.519e-05/1.281, allocations: 4 kB / 1.377 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000194/1.281, allocations: 360.5 kB / 1.378 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/1.281, allocations: 103.9 kB / 1.378 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/1.281, allocations: 176.7 kB / 1.378 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/1.282, allocations: 111.4 kB / 1.378 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/1.282, allocations: 0 / 1.378 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004429/1.282, allocations: 319.3 kB / 1.378 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000181/1.282, allocations: 273.9 kB / 1.378 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/1.282, allocations: 3.844 kB / 1.378 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/1.282, allocations: 0 / 1.378 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000284/1.283, allocations: 73.05 kB / 1.379 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/1.283, allocations: 3.812 kB / 1.379 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/1.283, allocations: 46.5 kB / 1.379 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/1.283, allocations: 7.812 kB / 1.379 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/1.283, allocations: 3.844 kB / 1.379 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003672/1.283, allocations: 236.7 kB / 1.379 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-06/1.283, allocations: 3.969 kB / 1.379 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.008e-06/1.283, allocations: 0 / 1.379 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/1.284, allocations: 61.06 kB / 1.379 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/1.284, allocations: 3.875 kB / 1.379 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/1.284, allocations: 46.86 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/1.284, allocations: 11.09 kB / 1.379 GB, free: 30.21 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.0001572/1.284, allocations: 122.3 kB / 1.379 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.275e-05/1.284, allocations: 46.38 kB / 1.379 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000545/1.285, allocations: 356.3 kB / 1.379 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/1.285, allocations: 3.844 kB / 1.379 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/1.285, allocations: 0 / 1.379 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/1.285, allocations: 3.938 kB / 1.379 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/1.286, allocations: 0.9142 MB / 1.38 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/1.286, allocations: 0 / 1.38 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/1.286, allocations: 61.88 kB / 1.38 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/1.286, allocations: 3.812 kB / 1.38 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/1.286, allocations: 7.984 kB / 1.38 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/1.286, allocations: 3.906 kB / 1.38 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.286, allocations: 3.953 kB / 1.38 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006641/1.287, allocations: 0.5753 MB / 1.381 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/1.287, allocations: 139 kB / 1.381 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.646e-05/1.287, allocations: 3.938 kB / 1.381 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/1.287, allocations: 31.31 kB / 1.381 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.523e-05/1.287, allocations: 23.53 kB / 1.381 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/1.287, allocations: 15.75 kB / 1.381 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003731/1.288, allocations: 333.9 kB / 1.381 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.288, allocations: 0 / 1.381 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006089/1.288, allocations: 158.7 kB / 1.382 GB, free: 28.99 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.0009556/1.289, allocations: 390.5 kB / 1.382 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006169/1.29, allocations: 425.9 kB / 1.382 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/1.29, allocations: 0 / 1.382 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001832/1.29, allocations: 142.5 kB / 1.383 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/1.291, allocations: 99.91 kB / 1.383 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/1.292, allocations: 0.607 MB / 1.383 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/1.292, allocations: 0.8655 MB / 1.384 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004511/1.293, allocations: 150 kB / 1.384 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.657e-05/1.293, allocations: 38.39 kB / 1.384 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of SimCode: time 3.61e-07/1.293, allocations: 0 / 1.384 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of Templates: time 0.01093/1.304, allocations: 5.943 MB / 1.39 GB, free: 24.7 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