Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|TSup.T|TRet.T",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|TSup.T|TRet.T",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.233/2.233, allocations: 387.4 MB / 394.9 MB, free: 13.33 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.001014/0.001014, allocations: 180.8 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.558/1.558, allocations: 221.5 MB / 0.7824 GB, free: 1 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.00093/0.0009302, allocations: 95.95 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.665e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2978, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.353/5.651, allocations: 2.222 GB / 3.428 GB, free: 101 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/5.652, allocations: 103.9 kB / 3.428 GB, free: 100.9 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 6.757/12.41, allocations: 1.704 GB / 5.132 GB, free: 132.9 MB / 1.182 GB Notification: Performance of FrontEnd: time 3.196e-06/12.41, allocations: 0 / 5.132 GB, free: 132.9 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0007542/12.41, allocations: 98.97 kB / 5.132 GB, free: 132.9 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 569 * Number of variables: 569 Notification: Performance of Generate backend data structure: time 0.01482/12.42, allocations: 3.707 MB / 5.136 GB, free: 130.8 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/12.42, allocations: 10.02 kB / 5.136 GB, free: 130.8 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/12.44, allocations: 1.423 MB / 5.137 GB, free: 130.3 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01495/12.45, allocations: 4.144 MB / 5.141 GB, free: 127.6 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007098/12.45, allocations: 241.1 kB / 5.141 GB, free: 127.5 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/12.45, allocations: 153.1 kB / 5.142 GB, free: 127.5 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006085/12.46, allocations: 2.221 MB / 5.144 GB, free: 126.4 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00557/12.46, allocations: 2.331 MB / 5.146 GB, free: 125 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.902e-05/12.46, allocations: 1.625 kB / 5.146 GB, free: 125 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002394/12.46, allocations: 8.844 kB / 5.146 GB, free: 125 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-05/12.46, allocations: 88.62 kB / 5.146 GB, free: 125 MB / 1.182 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02075/12.49, allocations: 12.48 MB / 5.158 GB, free: 114.7 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00289/12.49, allocations: 1.965 MB / 5.16 GB, free: 113.6 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/12.49, allocations: 0.8214 MB / 5.161 GB, free: 113.2 MB / 1.182 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt evalFunc (simulation): time 0.01012/12.5, allocations: 5.333 MB / 5.166 GB, free: 108.7 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001284/12.5, allocations: 0.9208 MB / 5.167 GB, free: 108.1 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00187/12.5, allocations: 190.3 kB / 5.167 GB, free: 108.1 MB / 1.182 GB Notification: Performance of pre-optimization done (n=146): time 4.479e-06/12.5, allocations: 0 / 5.167 GB, free: 108.1 MB / 1.182 GB Notification: Performance of matching and sorting (n=146): time 0.004293/12.51, allocations: 1.748 MB / 5.169 GB, free: 107.2 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/12.51, allocations: 174.7 kB / 5.169 GB, free: 107 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003809/12.51, allocations: 2.398 MB / 5.172 GB, free: 105.8 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0002451/12.51, allocations: 29.64 kB / 5.172 GB, free: 105.8 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.001304/12.51, allocations: 1.593 MB / 5.173 GB, free: 104.4 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004388/12.51, allocations: 484.2 kB / 5.174 GB, free: 104 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/12.51, allocations: 0 / 5.174 GB, free: 104 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.000108/12.51, allocations: 375 kB / 5.174 GB, free: 103.6 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/12.51, allocations: 0.6755 MB / 5.175 GB, free: 103.3 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/12.52, allocations: 1.299 MB / 5.176 GB, free: 102.2 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002247/12.52, allocations: 0.9531 MB / 5.177 GB, free: 101.7 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/12.52, allocations: 6.969 kB / 5.177 GB, free: 101.7 MB / 1.182 GB Notification: Performance of matching and sorting (n=233) (initialization): time 0.004685/12.52, allocations: 2.268 MB / 5.179 GB, free: 100.6 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001073/12.52, allocations: 5.916 MB / 5.185 GB, free: 94.21 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/12.52, allocations: 13.09 kB / 5.185 GB, free: 94.21 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.388e-05/12.52, allocations: 31.98 kB / 5.185 GB, free: 94.21 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/12.53, allocations: 0.5484 MB / 5.185 GB, free: 94.07 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.571e-05/12.53, allocations: 37.45 kB / 5.185 GB, free: 94.06 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/12.53, allocations: 316.1 kB / 5.186 GB, free: 93.97 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/12.53, allocations: 111.7 kB / 5.186 GB, free: 93.93 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/12.53, allocations: 7.344 kB / 5.186 GB, free: 93.93 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003791/12.53, allocations: 1.863 MB / 5.188 GB, free: 93.07 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/12.53, allocations: 15.5 kB / 5.188 GB, free: 93.07 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/12.53, allocations: 25.72 kB / 5.188 GB, free: 93.07 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002243/12.54, allocations: 0.5402 MB / 5.188 GB, free: 92.94 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.23e-05/12.54, allocations: 31.81 kB / 5.188 GB, free: 92.93 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003319/12.54, allocations: 270 kB / 5.188 GB, free: 92.85 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000217/12.54, allocations: 107.6 kB / 5.189 GB, free: 92.82 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.triAndRes.firstTrigger,triAndRes.firstTrigger,$whenCondition3,triAndRes.sampleTrigger,$PRE.triAndRes.sam.firstTrigger,triAndRes.sam.firstTrigger,$PRE.triAndRes.uniDel1.firstTrigger,triAndRes.uniDel1.firstTrigger,$whenCondition1,triAndRes.uniDel1.sampleTrigger,$whenCondition2,triAndRes.sam.sampleTrigger,triAndRes.incY.y,triAndRes.sam.y,$PRE.triAndRes.uniDel1.y,triAndRes.uniDel1.y,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 231 * Array equations: 1 * 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.0005411/12.54, allocations: 167 kB / 5.189 GB, free: 92.67 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006553/12.54, allocations: 317.2 kB / 5.189 GB, free: 92.5 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004226/12.55, allocations: 1.983 MB / 5.191 GB, free: 91.46 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/12.55, allocations: 24.98 kB / 5.191 GB, free: 91.45 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/12.55, allocations: 0 / 5.191 GB, free: 91.45 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002714/12.55, allocations: 1.763 MB / 5.193 GB, free: 89.86 MB / 1.182 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/12.56, allocations: 4.882 MB / 5.197 GB, free: 84.92 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/12.56, allocations: 0 / 5.197 GB, free: 84.92 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001941/12.56, allocations: 392.9 kB / 5.198 GB, free: 84.55 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.213e-05/12.56, allocations: 15.98 kB / 5.198 GB, free: 84.53 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/12.56, allocations: 31.97 kB / 5.198 GB, free: 84.5 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.317e-06/12.56, allocations: 12.7 kB / 5.198 GB, free: 84.49 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/12.56, allocations: 0 / 5.198 GB, free: 84.49 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005285/12.57, allocations: 3.275 MB / 5.201 GB, free: 81.11 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002023/12.57, allocations: 0.6569 MB / 5.202 GB, free: 80.43 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005355/12.57, allocations: 16.7 kB / 5.202 GB, free: 80.42 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002499/12.57, allocations: 248.9 kB / 5.202 GB, free: 80.2 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/12.57, allocations: 105.1 kB / 5.202 GB, free: 80.09 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001649/12.57, allocations: 79.94 kB / 5.202 GB, free: 80.02 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.00267/12.57, allocations: 1.788 MB / 5.204 GB, free: 78.24 MB / 1.182 GB Notification: Performance of sort global known variables: time 2.71e-07/12.57, allocations: 1.906 kB / 5.204 GB, free: 78.24 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.007104/12.58, allocations: 1.883 MB / 5.206 GB, free: 76.36 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 11 (chi.vol1.dynBal.U,chi.vol2.dynBal.U,limPID.I.y,TRet.T,pum.vol.dynBal.U,pum.filter.s[1],pum.filter.s[2],expVesChi.m,expVesChi.H,firstOrder1.y,TSup.T) * Number of discrete variables: 12 (triAndRes.sam.sampleTrigger,triAndRes.uniDel1.sampleTrigger,$whenCondition2,$whenCondition1,triAndRes.incY.y,triAndRes.sam.firstTrigger,triAndRes.sam.y,triAndRes.uniDel1.firstTrigger,triAndRes.uniDel1.y,triAndRes.sampleTrigger,$whenCondition3,triAndRes.firstTrigger) * Number of discrete states: 1 (triAndRes.uniDel1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 5 * 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.006974/12.59, allocations: 3.832 MB / 5.21 GB, free: 72.96 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.005034/12.59, allocations: 2.741 MB / 5.212 GB, free: 70.22 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/12.59, allocations: 3.453 kB / 5.212 GB, free: 70.22 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001116/12.59, allocations: 0.7895 MB / 5.213 GB, free: 69.43 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006662/12.6, allocations: 1.213 MB / 5.214 GB, free: 68.26 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/12.61, allocations: 5.144 MB / 5.219 GB, free: 63.09 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001446/12.62, allocations: 2.098 MB / 5.221 GB, free: 60.96 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.005853/12.62, allocations: 1.174 MB / 5.222 GB, free: 59.86 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006604/12.62, allocations: 199.3 kB / 5.223 GB, free: 59.66 MB / 1.182 GB Notification: Performance of SimCode: time 1.122e-06/12.62, allocations: 0 / 5.223 GB, free: 59.66 MB / 1.182 GB Notification: Performance of Templates: time 0.1104/12.73, allocations: 69.43 MB / 5.29 GB, free: 7.723 MB / 1.198 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches