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.431/2.431, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001463/0.001463, allocations: 184.2 kB / 498.1 MB, free: 5.684 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.804/1.804, allocations: 223.2 MB / 0.7949 GB, free: 17.87 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.001122/0.001122, allocations: 96.34 kB / 0.9346 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004934/0.0004937, allocations: 6.938 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3575, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.205/0.5625, allocations: 157.9 MB / 1.377 GB, free: 4.078 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.5629, allocations: 107.9 kB / 1.377 GB, free: 3.973 MB / 0.8698 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.03438/0.5973, allocations: 13.1 MB / 1.39 GB, free: 6.848 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.803e-06/0.5973, allocations: 0 / 1.39 GB, free: 6.848 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.977e-05/0.5974, allocations: 8 kB / 1.39 GB, free: 6.84 MB / 0.8855 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.001355/0.5987, allocations: 0.8624 MB / 1.391 GB, free: 5.914 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.5988, allocations: 8.031 kB / 1.391 GB, free: 5.906 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.5989, allocations: 67.25 kB / 1.391 GB, free: 5.84 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008062/0.5997, allocations: 453.5 kB / 1.391 GB, free: 5.355 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.5998, allocations: 28.66 kB / 1.391 GB, free: 5.328 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.5998, allocations: 28 kB / 1.391 GB, free: 5.301 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006976/0.6005, allocations: 402.7 kB / 1.392 GB, free: 4.891 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.6005, allocations: 0 / 1.392 GB, free: 4.891 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.6006, allocations: 16 kB / 1.392 GB, free: 4.875 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.6006, allocations: 8 kB / 1.392 GB, free: 4.867 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000578/0.6012, allocations: 302.5 kB / 1.392 GB, free: 4.57 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.603, allocations: 1.198 MB / 1.393 GB, free: 3.312 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.6041, allocations: 0.5227 MB / 1.394 GB, free: 2.766 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.905e-05/0.6041, allocations: 4 kB / 1.394 GB, free: 2.762 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004331/0.6046, allocations: 239 kB / 1.394 GB, free: 2.516 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=35): time 2.625e-06/0.6046, allocations: 0 / 1.394 GB, free: 2.516 MB / 0.8855 GB Notification: Performance of matching and sorting (n=35): time 0.001057/0.6057, allocations: 0.5045 MB / 1.395 GB, free: 2.004 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.071e-05/0.6058, allocations: 136.5 kB / 1.395 GB, free: 1.84 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006028/0.6064, allocations: 469 kB / 1.395 GB, free: 1.375 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.6064, allocations: 33.7 kB / 1.395 GB, free: 1.336 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.6066, allocations: 248.4 kB / 1.395 GB, free: 1.086 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.109e-05/0.6067, allocations: 102.6 kB / 1.395 GB, free: 0.9844 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.579e-05/0.6067, allocations: 4 kB / 1.395 GB, free: 0.9805 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.6069, allocations: 358.8 kB / 1.396 GB, free: 0.6211 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/0.6072, allocations: 132.6 kB / 1.396 GB, free: 500 kB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.6075, allocations: 206.3 kB / 1.396 GB, free: 268 kB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.6078, allocations: 139.8 kB / 1.396 GB, free: 128 kB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.6078, allocations: 7.938 kB / 1.396 GB, free: 120 kB / 0.8855 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007691/0.6086, allocations: 390.1 kB / 1.397 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/0.6088, allocations: 275.3 kB / 1.397 GB, free: 15.44 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.6088, allocations: 11.92 kB / 1.397 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.6088, allocations: 3.984 kB / 1.397 GB, free: 15.42 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/0.6092, allocations: 71.91 kB / 1.397 GB, free: 15.35 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.6092, allocations: 4 kB / 1.397 GB, free: 15.35 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.6095, allocations: 51.66 kB / 1.397 GB, free: 15.3 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.6095, allocations: 12 kB / 1.397 GB, free: 15.29 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 9.809e-06/0.6096, allocations: 4 kB / 1.397 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006112/0.6102, allocations: 291.5 kB / 1.397 GB, free: 15 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.6102, allocations: 3.984 kB / 1.397 GB, free: 14.99 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.804e-06/0.6102, allocations: 7.953 kB / 1.397 GB, free: 14.98 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.6105, allocations: 63.91 kB / 1.397 GB, free: 14.92 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-06/0.6105, allocations: 0 / 1.397 GB, free: 14.92 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.6108, allocations: 39.77 kB / 1.397 GB, free: 14.88 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.6108, allocations: 16.06 kB / 1.397 GB, free: 14.87 MB / 0.9011 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 () * Number of clocked 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.000378/0.6112, allocations: 279.3 kB / 1.398 GB, free: 14.59 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.351e-05/0.6113, allocations: 55.33 kB / 1.398 GB, free: 14.53 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009782/0.6123, allocations: 429.7 kB / 1.398 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.6123, allocations: 7.953 kB / 1.398 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6123, allocations: 64 / 1.398 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.6123, allocations: 4 kB / 1.398 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.6142, allocations: 1.044 MB / 1.399 GB, free: 13 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.6142, allocations: 0 / 1.399 GB, free: 13 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.6145, allocations: 59.92 kB / 1.399 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.6146, allocations: 0 / 1.399 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.6146, allocations: 11.94 kB / 1.399 GB, free: 12.93 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.6146, allocations: 4 kB / 1.399 GB, free: 12.92 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.6146, allocations: 0 / 1.399 GB, free: 12.92 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.6159, allocations: 0.6786 MB / 1.4 GB, free: 12.23 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000143/0.616, allocations: 136.4 kB / 1.4 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.365e-05/0.6161, allocations: 15.95 kB / 1.4 GB, free: 12.06 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.6163, allocations: 32.03 kB / 1.4 GB, free: 12.03 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.567e-05/0.6164, allocations: 27.97 kB / 1.4 GB, free: 12 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.6165, allocations: 15.98 kB / 1.4 GB, free: 11.98 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0004625/0.6169, allocations: 363.1 kB / 1.401 GB, free: 11.63 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6169, allocations: 0 / 1.401 GB, free: 11.63 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0006232/0.6176, allocations: 183.5 kB / 1.401 GB, free: 11.45 MB / 0.9011 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) * Number of clocked states: 0 () * 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.001111/0.6187, allocations: 453.9 kB / 1.401 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001028/0.6197, allocations: 0.4913 MB / 1.402 GB, free: 10.67 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.6197, allocations: 256 / 1.402 GB, free: 10.67 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.6201, allocations: 183.7 kB / 1.402 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005771/0.6207, allocations: 101.6 kB / 1.402 GB, free: 10.39 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.6223, allocations: 0.9951 MB / 1.403 GB, free: 9.371 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.6227, allocations: 0.8667 MB / 1.404 GB, free: 8.477 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003285/0.623, allocations: 87.19 kB / 1.404 GB, free: 8.387 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.6232, allocations: 43.42 kB / 1.404 GB, free: 8.348 MB / 0.9011 GB Notification: Performance of SimCode: time 6.81e-07/0.6232, allocations: 3.938 kB / 1.404 GB, free: 8.344 MB / 0.9011 GB Notification: Performance of Templates: time 0.01188/0.6351, allocations: 5.682 MB / 1.409 GB, free: 2.727 MB / 0.9011 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