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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.519/2.519, allocations: 393.5 MB / 408.4 MB, free: 11.06 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.001667/0.001667, allocations: 186.8 kB / 0.4902 GB, free: 2.258 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.835/1.835, allocations: 223.1 MB / 0.7992 GB, free: 14.79 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.001432/0.001432, allocations: 104.6 kB / 0.9396 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003836, allocations: 6.938 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3618, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2318/0.5937, allocations: 153.4 MB / 1.379 GB, free: 172 kB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.5941, allocations: 95.88 kB / 1.379 GB, free: 76 kB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0139/0.608, allocations: 4.74 MB / 1.384 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.156e-06/0.608, allocations: 4 kB / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.377e-05/0.6081, allocations: 16.59 kB / 1.384 GB, free: 11.28 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001077/0.6092, allocations: 0.544 MB / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 7.053e-05/0.6092, allocations: 12.52 kB / 1.384 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.6094, allocations: 27.72 kB / 1.384 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004515/0.6098, allocations: 278.5 kB / 1.385 GB, free: 10.32 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.6099, allocations: 28.66 kB / 1.385 GB, free: 10.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/0.6099, allocations: 28 kB / 1.385 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007451/0.6107, allocations: 332.8 kB / 1.385 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.6107, allocations: 0 / 1.385 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.6108, allocations: 19.95 kB / 1.385 GB, free: 9.914 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.6108, allocations: 12 kB / 1.385 GB, free: 9.902 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006101/0.6114, allocations: 258 kB / 1.385 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.6131, allocations: 0.9514 MB / 1.386 GB, free: 8.645 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006858/0.6138, allocations: 272.6 kB / 1.386 GB, free: 8.371 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.6139, allocations: 4 kB / 1.386 GB, free: 8.367 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004708/0.6143, allocations: 192.1 kB / 1.387 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=32): time 2.555e-06/0.6143, allocations: 0 / 1.387 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of matching and sorting (n=32): time 0.0008841/0.6152, allocations: 369.1 kB / 1.387 GB, free: 7.801 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.6153, allocations: 67.39 kB / 1.387 GB, free: 7.723 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.6155, allocations: 182.4 kB / 1.387 GB, free: 7.531 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.017e-05/0.6156, allocations: 37.7 kB / 1.387 GB, free: 7.488 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.6157, allocations: 156.6 kB / 1.387 GB, free: 7.332 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.798e-05/0.6158, allocations: 82.94 kB / 1.388 GB, free: 7.25 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.721e-05/0.6158, allocations: 8 kB / 1.388 GB, free: 7.242 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001956/0.616, allocations: 334.8 kB / 1.388 GB, free: 6.906 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002713/0.6163, allocations: 108.8 kB / 1.388 GB, free: 6.801 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.6166, allocations: 173.4 kB / 1.388 GB, free: 6.613 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.6169, allocations: 129.6 kB / 1.388 GB, free: 6.48 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.6169, allocations: 0 / 1.388 GB, free: 6.48 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007515/0.6177, allocations: 378.8 kB / 1.389 GB, free: 6.098 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.872e-05/0.6178, allocations: 35.89 kB / 1.389 GB, free: 6.059 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.6178, allocations: 0 / 1.389 GB, free: 6.059 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.6178, allocations: 12.09 kB / 1.389 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.618, allocations: 51.86 kB / 1.389 GB, free: 5.996 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.251e-05/0.6181, allocations: 7.984 kB / 1.389 GB, free: 5.988 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.6184, allocations: 43.81 kB / 1.389 GB, free: 5.945 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.6184, allocations: 16 kB / 1.389 GB, free: 5.93 MB / 0.8855 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.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,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.0002351/0.6186, allocations: 181.7 kB / 1.389 GB, free: 5.742 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.551e-05/0.6187, allocations: 23.72 kB / 1.389 GB, free: 5.719 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000689/0.6194, allocations: 299.2 kB / 1.389 GB, free: 5.426 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.6194, allocations: 4 kB / 1.389 GB, free: 5.422 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.6194, allocations: 11.89 kB / 1.389 GB, free: 5.41 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.6194, allocations: 3.984 kB / 1.389 GB, free: 5.406 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.6207, allocations: 0.7517 MB / 1.39 GB, free: 4.598 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.6207, allocations: 0 / 1.39 GB, free: 4.598 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.6209, allocations: 31.92 kB / 1.39 GB, free: 4.566 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.6209, allocations: 3.953 kB / 1.39 GB, free: 4.562 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.6209, allocations: 11.98 kB / 1.39 GB, free: 4.551 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.6209, allocations: 4 kB / 1.39 GB, free: 4.547 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6209, allocations: 0 / 1.39 GB, free: 4.547 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00062/0.6216, allocations: 372.8 kB / 1.39 GB, free: 4.168 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-05/0.6217, allocations: 104.8 kB / 1.39 GB, free: 4.047 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.6217, allocations: 15.95 kB / 1.391 GB, free: 4.031 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.622, allocations: 35.97 kB / 1.391 GB, free: 3.996 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.6221, allocations: 43.88 kB / 1.391 GB, free: 3.953 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.6222, allocations: 11.98 kB / 1.391 GB, free: 3.941 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001175/0.6223, allocations: 127.2 kB / 1.391 GB, free: 3.816 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6223, allocations: 4 kB / 1.391 GB, free: 3.812 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003276/0.6226, allocations: 60 kB / 1.391 GB, free: 3.754 MB / 0.8855 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.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,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.0002102/0.6228, allocations: 130 kB / 1.391 GB, free: 3.613 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000684/0.6235, allocations: 339.3 kB / 1.391 GB, free: 3.27 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.6236, allocations: 3.938 kB / 1.391 GB, free: 3.266 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.6239, allocations: 141 kB / 1.391 GB, free: 3.129 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.6241, allocations: 28.42 kB / 1.391 GB, free: 3.102 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009435/0.6251, allocations: 0.5203 MB / 1.392 GB, free: 2.555 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.6255, allocations: 0.7642 MB / 1.393 GB, free: 1.758 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001278/0.6256, allocations: 34.27 kB / 1.393 GB, free: 1.723 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.226e-05/0.6257, allocations: 31.38 kB / 1.393 GB, free: 1.691 MB / 0.8855 GB Notification: Performance of SimCode: time 3.8e-07/0.6257, allocations: 0 / 1.393 GB, free: 1.691 MB / 0.8855 GB Notification: Performance of Templates: time 0.006477/0.6322, allocations: 2.665 MB / 1.395 GB, free: 15.05 MB / 0.9011 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