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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.028/2.028, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001063/0.001063, allocations: 181.3 kB / 487 MB, free: 5.395 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.296/1.296, allocations: 221.3 MB / 0.7819 GB, free: 1.371 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.001041/0.00104, allocations: 97.42 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.212e-06/6.242e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2309, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6518/0.8827, allocations: 157.1 MB / 1.359 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.8831, allocations: 101.1 kB / 1.359 GB, free: 15.62 MB / 0.8073 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: time 0.0307/0.9138, allocations: 12.58 MB / 1.371 GB, free: 7.238 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.494e-05/0.9139, allocations: 12 kB / 1.371 GB, free: 7.227 MB / 0.8073 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.0009337/0.9148, allocations: 0.7699 MB / 1.372 GB, free: 6.434 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.9149, allocations: 8.031 kB / 1.372 GB, free: 6.426 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.915, allocations: 59.25 kB / 1.372 GB, free: 6.367 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000625/0.9156, allocations: 452.4 kB / 1.372 GB, free: 5.965 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.9157, allocations: 19.84 kB / 1.372 GB, free: 5.945 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.9157, allocations: 20 kB / 1.372 GB, free: 5.926 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003973/0.9161, allocations: 247.9 kB / 1.373 GB, free: 5.773 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.9166, allocations: 323.9 kB / 1.373 GB, free: 5.523 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.9166, allocations: 7.922 kB / 1.373 GB, free: 5.516 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.9167, allocations: 4 kB / 1.373 GB, free: 5.512 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.9167, allocations: 12 kB / 1.373 GB, free: 5.5 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.918, allocations: 1.123 MB / 1.374 GB, free: 4.602 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.9186, allocations: 434.5 kB / 1.374 GB, free: 4.266 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.9188, allocations: 146.4 kB / 1.375 GB, free: 4.176 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.9188, allocations: 4 kB / 1.375 GB, free: 4.172 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.9191, allocations: 191.1 kB / 1.375 GB, free: 4.02 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=35): time 2.114e-06/0.9191, allocations: 0 / 1.375 GB, free: 4.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=35): time 0.0004458/0.9195, allocations: 310.5 kB / 1.375 GB, free: 3.785 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.9196, allocations: 132.5 kB / 1.375 GB, free: 3.625 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00041/0.92, allocations: 420.7 kB / 1.376 GB, free: 3.305 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.92, allocations: 32.58 kB / 1.376 GB, free: 3.27 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.9201, allocations: 174 kB / 1.376 GB, free: 3.117 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.981e-05/0.9202, allocations: 101.1 kB / 1.376 GB, free: 3.027 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.9202, allocations: 0 / 1.376 GB, free: 3.027 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.362e-05/0.9203, allocations: 368.8 kB / 1.376 GB, free: 2.68 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.9204, allocations: 100 kB / 1.376 GB, free: 2.617 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.9206, allocations: 171.2 kB / 1.376 GB, free: 2.473 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.9207, allocations: 125.7 kB / 1.377 GB, free: 2.395 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.9207, allocations: 0 / 1.377 GB, free: 2.395 MB / 0.8073 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003873/0.9211, allocations: 319.7 kB / 1.377 GB, free: 2.148 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.567e-05/0.9212, allocations: 278.7 kB / 1.377 GB, free: 1.863 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.892e-06/0.9212, allocations: 0 / 1.377 GB, free: 1.863 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.9212, allocations: 4 kB / 1.377 GB, free: 1.859 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.9215, allocations: 67.89 kB / 1.377 GB, free: 1.793 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.9215, allocations: 4 kB / 1.377 GB, free: 1.789 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.9217, allocations: 39.73 kB / 1.377 GB, free: 1.75 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.9218, allocations: 14.98 kB / 1.377 GB, free: 1.738 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.519e-06/0.9218, allocations: 4 kB / 1.377 GB, free: 1.734 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003142/0.9221, allocations: 247.4 kB / 1.378 GB, free: 1.566 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-06/0.9221, allocations: 0 / 1.378 GB, free: 1.566 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.707e-06/0.9221, allocations: 4 kB / 1.378 GB, free: 1.562 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.9224, allocations: 66.41 kB / 1.378 GB, free: 1.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-06/0.9224, allocations: 0 / 1.378 GB, free: 1.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.9226, allocations: 39.88 kB / 1.378 GB, free: 1.461 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.9226, allocations: 11.31 kB / 1.378 GB, free: 1.453 MB / 0.8073 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 8.947e-05/0.9227, allocations: 119.5 kB / 1.378 GB, free: 1.332 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.9227, allocations: 47.42 kB / 1.378 GB, free: 1.285 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000458/0.9232, allocations: 336.6 kB / 1.378 GB, free: 1.043 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.9232, allocations: 11.97 kB / 1.378 GB, free: 1.031 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.9232, allocations: 4.062 kB / 1.378 GB, free: 1.027 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.9232, allocations: 7.938 kB / 1.378 GB, free: 1.02 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009184/0.9242, allocations: 0.8964 MB / 1.379 GB, free: 324 kB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9242, allocations: 0 / 1.379 GB, free: 324 kB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.9244, allocations: 59.91 kB / 1.379 GB, free: 264 kB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.9244, allocations: 0 / 1.379 GB, free: 264 kB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.9245, allocations: 7.984 kB / 1.379 GB, free: 256 kB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.9245, allocations: 0 / 1.379 GB, free: 256 kB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.9245, allocations: 0 / 1.379 GB, free: 256 kB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006664/0.9251, allocations: 0.5822 MB / 1.38 GB, free: 15.8 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.9253, allocations: 143.3 kB / 1.38 GB, free: 15.65 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.878e-05/0.9253, allocations: 0 / 1.38 GB, free: 15.65 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.9256, allocations: 32.03 kB / 1.38 GB, free: 15.62 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.9257, allocations: 19.47 kB / 1.38 GB, free: 15.61 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.9257, allocations: 15.3 kB / 1.38 GB, free: 15.59 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0003383/0.926, allocations: 327.4 kB / 1.38 GB, free: 15.36 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0005521/0.9266, allocations: 166.7 kB / 1.38 GB, free: 15.2 MB / 0.823 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.0007231/0.9273, allocations: 350.2 kB / 1.381 GB, free: 14.95 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000652/0.928, allocations: 435 kB / 1.381 GB, free: 14.66 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.928, allocations: 4 kB / 1.381 GB, free: 14.65 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.9282, allocations: 147.7 kB / 1.381 GB, free: 14.55 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005645/0.9288, allocations: 97.42 kB / 1.381 GB, free: 14.48 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.9302, allocations: 0.6366 MB / 1.382 GB, free: 13.91 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005408/0.9307, allocations: 0.9112 MB / 1.383 GB, free: 12.98 MB / 0.823 GB Notification: Performance of SimCode: time 2.21e-07/0.9307, allocations: 0 / 1.383 GB, free: 12.98 MB / 0.823 GB Notification: Performance of Templates: time 0.01357/0.9443, allocations: 7.638 MB / 1.39 GB, free: 5.441 MB / 0.823 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