Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.927/2.927, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004007, allocations: 8 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8249/0.8253, allocations: 153.7 MB / 1.021 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002346/0.8277, allocations: 1.684 MB / 1.022 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001164/0.8289, allocations: 0.6705 MB / 1.023 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.829, allocations: 8 kB / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.8292, allocations: 27.72 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.167e-05/0.8293, allocations: 39.88 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.8296, allocations: 99.88 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.83, allocations: 215.6 kB / 1.023 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003166/0.8303, allocations: 198.4 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.8305, allocations: 91.7 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.8306, allocations: 111.4 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.8307, allocations: 19.98 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.392e-05/0.8307, allocations: 23.94 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.698e-05/0.8308, allocations: 55.77 kB / 1.024 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.831, allocations: 69.58 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.8313, allocations: 309.2 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.8313, allocations: 0 / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8313, allocations: 0 / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.8313, allocations: 0 / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008381/0.8322, allocations: 0.5443 MB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.8322, allocations: 8.031 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.432e-05/0.8323, allocations: 31.62 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.8326, allocations: 266.5 kB / 1.025 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/0.8327, allocations: 36.55 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.8327, allocations: 32 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007098/0.8334, allocations: 340.8 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.8335, allocations: 0 / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.8335, allocations: 15.94 kB / 1.026 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.8335, allocations: 4 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006213/0.8341, allocations: 262.1 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.8356, allocations: 0.9513 MB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006103/0.8362, allocations: 285.4 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.8363, allocations: 4 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004025/0.8367, allocations: 179.3 kB / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=32): time 1.693e-06/0.8367, allocations: 0 / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=32): time 0.000844/0.8375, allocations: 370 kB / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.8376, allocations: 63.39 kB / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.8378, allocations: 199.3 kB / 1.028 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.8378, allocations: 45.62 kB / 1.028 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.838, allocations: 156.5 kB / 1.028 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.296e-05/0.838, allocations: 79 kB / 1.028 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.87e-05/0.8381, allocations: 12 kB / 1.028 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.8382, allocations: 330.8 kB / 1.028 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.8385, allocations: 112.8 kB / 1.029 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.8388, allocations: 169.5 kB / 1.029 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.8391, allocations: 133.6 kB / 1.029 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.8391, allocations: 4 kB / 1.029 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006776/0.8398, allocations: 382.5 kB / 1.029 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.152e-05/0.8399, allocations: 33.7 kB / 1.029 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.8399, allocations: 4.156 kB / 1.029 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.8399, allocations: 4 kB / 1.029 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.8401, allocations: 47.91 kB / 1.029 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.8401, allocations: 0 / 1.029 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.8404, allocations: 63.64 kB / 1.029 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.749e-05/0.8404, allocations: 20 kB / 1.029 GB, free: 8.07 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.on.active,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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.0002429/0.8407, allocations: 173.7 kB / 1.029 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.449e-05/0.8407, allocations: 27.67 kB / 1.03 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006121/0.8413, allocations: 307.2 kB / 1.03 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.8413, allocations: 4 kB / 1.03 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.8414, allocations: 0 / 1.03 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.8414, allocations: 3.984 kB / 1.03 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.8425, allocations: 0.7724 MB / 1.031 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.8426, allocations: 0 / 1.031 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.8427, allocations: 35.91 kB / 1.031 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.8427, allocations: 0 / 1.031 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.8428, allocations: 12 kB / 1.031 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.8428, allocations: 0 / 1.031 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.8428, allocations: 0 / 1.031 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006057/0.8434, allocations: 375.1 kB / 1.031 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-05/0.8435, allocations: 104.8 kB / 1.031 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.8435, allocations: 11.92 kB / 1.031 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002754/0.8438, allocations: 35.97 kB / 1.031 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.8439, allocations: 43.94 kB / 1.031 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.8439, allocations: 8 kB / 1.031 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001095/0.8441, allocations: 139.7 kB / 1.031 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8441, allocations: 0 / 1.031 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004388/0.8445, allocations: 63.84 kB / 1.031 GB, free: 5.875 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000221/0.8447, allocations: 127.1 kB / 1.031 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000686/0.8454, allocations: 339.1 kB / 1.032 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.8454, allocations: 0 / 1.032 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.8457, allocations: 147.8 kB / 1.032 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.846, allocations: 32.44 kB / 1.032 GB, free: 5.227 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.8471, allocations: 0.512 MB / 1.032 GB, free: 4.691 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.8476, allocations: 0.7681 MB / 1.033 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001141/0.8477, allocations: 34.28 kB / 1.033 GB, free: 3.859 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.055e-05/0.8478, allocations: 31.42 kB / 1.033 GB, free: 3.828 MB / 0.7794 GB Notification: Performance of SimCode: time 4.51e-07/0.8478, allocations: 0 / 1.033 GB, free: 3.828 MB / 0.7794 GB Notification: Performance of Templates: time 0.006295/0.8541, allocations: 2.715 MB / 1.036 GB, free: 1.133 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches