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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.169/2.169, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.00113/0.00113, allocations: 184.8 kB / 487.4 MB, free: 5.051 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.452/1.452, allocations: 221.5 MB / 0.7824 GB, free: 1.035 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.0008956/0.0008955, allocations: 95.78 kB / 0.9219 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.129e-05/2.133e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2455, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.687/4.933, allocations: 2.222 GB / 3.428 GB, free: 76.92 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/4.933, allocations: 107.9 kB / 3.428 GB, free: 76.86 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 5.765/10.7, allocations: 1.704 GB / 5.132 GB, free: 125.7 MB / 1.182 GB Notification: Performance of FrontEnd: time 1.293e-06/10.7, allocations: 0 / 5.132 GB, free: 125.7 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0003709/10.7, allocations: 99.55 kB / 5.132 GB, free: 125.7 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.007933/10.71, allocations: 3.709 MB / 5.136 GB, free: 123.2 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/10.71, allocations: 13.42 kB / 5.136 GB, free: 123.2 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009423/10.72, allocations: 1.419 MB / 5.137 GB, free: 122.7 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008933/10.72, allocations: 4.165 MB / 5.141 GB, free: 120 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004489/10.72, allocations: 243.6 kB / 5.142 GB, free: 119.9 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003661/10.73, allocations: 154.1 kB / 5.142 GB, free: 119.9 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003561/10.73, allocations: 2.207 MB / 5.144 GB, free: 118.8 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003538/10.73, allocations: 2.336 MB / 5.146 GB, free: 117.4 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.333e-05/10.73, allocations: 9.156 kB / 5.146 GB, free: 117.4 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002161/10.73, allocations: 2.75 kB / 5.146 GB, free: 117.4 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.002e-05/10.73, allocations: 86.33 kB / 5.146 GB, free: 117.4 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.01704/10.75, allocations: 12.47 MB / 5.158 GB, free: 107.1 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/10.75, allocations: 1.965 MB / 5.16 GB, free: 106 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/10.75, allocations: 0.8185 MB / 5.161 GB, free: 105.6 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.007941/10.76, allocations: 5.345 MB / 5.166 GB, free: 101.1 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/10.76, allocations: 0.9213 MB / 5.167 GB, free: 100.5 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001135/10.76, allocations: 192.1 kB / 5.167 GB, free: 100.3 MB / 1.182 GB Notification: Performance of pre-optimization done (n=146): time 3.948e-06/10.76, allocations: 0 / 5.167 GB, free: 100.3 MB / 1.182 GB Notification: Performance of matching and sorting (n=146): time 0.003494/10.77, allocations: 1.735 MB / 5.169 GB, free: 98.58 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/10.77, allocations: 179.5 kB / 5.169 GB, free: 98.37 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002905/10.77, allocations: 2.398 MB / 5.172 GB, free: 95.98 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0001418/10.77, allocations: 29.7 kB / 5.172 GB, free: 95.94 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.001095/10.77, allocations: 1.593 MB / 5.173 GB, free: 94.33 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003287/10.77, allocations: 486.8 kB / 5.174 GB, free: 93.85 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/10.77, allocations: 0 / 5.174 GB, free: 93.85 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 8.846e-05/10.77, allocations: 373.9 kB / 5.174 GB, free: 93.48 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009186/10.77, allocations: 0.6787 MB / 5.175 GB, free: 92.8 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/10.77, allocations: 1.301 MB / 5.176 GB, free: 91.24 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/10.78, allocations: 0.9527 MB / 5.177 GB, free: 90.31 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/10.78, allocations: 4 kB / 5.177 GB, free: 90.31 MB / 1.182 GB Notification: Performance of matching and sorting (n=233) (initialization): time 0.003961/10.78, allocations: 2.268 MB / 5.179 GB, free: 88.04 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001066/10.78, allocations: 5.92 MB / 5.185 GB, free: 81.62 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/10.78, allocations: 14.81 kB / 5.185 GB, free: 81.61 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.711e-05/10.78, allocations: 24 kB / 5.185 GB, free: 81.59 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002479/10.78, allocations: 0.5532 MB / 5.185 GB, free: 81.04 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.111e-05/10.78, allocations: 35.86 kB / 5.185 GB, free: 81.01 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003146/10.79, allocations: 317 kB / 5.186 GB, free: 80.72 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/10.79, allocations: 108 kB / 5.186 GB, free: 80.62 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 9.337e-06/10.79, allocations: 7.938 kB / 5.186 GB, free: 80.61 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003516/10.79, allocations: 1.875 MB / 5.188 GB, free: 78.75 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/10.79, allocations: 12 kB / 5.188 GB, free: 78.74 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/10.79, allocations: 24 kB / 5.188 GB, free: 78.71 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002239/10.79, allocations: 0.5373 MB / 5.188 GB, free: 78.19 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/10.79, allocations: 35.86 kB / 5.188 GB, free: 78.15 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/10.8, allocations: 269.4 kB / 5.189 GB, free: 77.91 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/10.8, allocations: 108 kB / 5.189 GB, free: 77.8 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.0004422/10.8, allocations: 164 kB / 5.189 GB, free: 77.64 MB / 1.182 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003074/10.8, allocations: 1.684 MB / 5.19 GB, free: 75.94 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00036/10.8, allocations: 312.1 kB / 5.191 GB, free: 75.63 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003873/10.8, allocations: 1.992 MB / 5.193 GB, free: 73.65 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/10.8, allocations: 16 kB / 5.193 GB, free: 73.63 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/10.8, allocations: 0 / 5.193 GB, free: 73.63 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002486/10.81, allocations: 1.756 MB / 5.194 GB, free: 71.79 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.00786/10.81, allocations: 4.885 MB / 5.199 GB, free: 66.85 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/10.81, allocations: 4 kB / 5.199 GB, free: 66.85 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/10.82, allocations: 390.6 kB / 5.2 GB, free: 66.47 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.471e-05/10.82, allocations: 8 kB / 5.2 GB, free: 66.46 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/10.82, allocations: 35.95 kB / 5.2 GB, free: 66.43 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/10.82, allocations: 14.5 kB / 5.2 GB, free: 66.42 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/10.82, allocations: 7.953 kB / 5.2 GB, free: 66.41 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004371/10.82, allocations: 3.273 MB / 5.203 GB, free: 63.04 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/10.82, allocations: 0.6569 MB / 5.204 GB, free: 62.36 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004219/10.82, allocations: 11.98 kB / 5.204 GB, free: 62.34 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/10.82, allocations: 250 kB / 5.204 GB, free: 62.12 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/10.83, allocations: 101.1 kB / 5.204 GB, free: 62.02 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/10.83, allocations: 87.92 kB / 5.204 GB, free: 61.93 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.002297/10.83, allocations: 1.786 MB / 5.206 GB, free: 60.16 MB / 1.182 GB Notification: Performance of sort global known variables: time 5.71e-07/10.83, allocations: 0 / 5.206 GB, free: 60.16 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.005051/10.83, allocations: 1.881 MB / 5.208 GB, free: 58.28 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.009255/10.84, allocations: 8.13 MB / 5.215 GB, free: 50.35 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.0039/10.85, allocations: 2.744 MB / 5.218 GB, free: 47.62 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/10.85, allocations: 12.17 kB / 5.218 GB, free: 47.61 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.0009528/10.85, allocations: 0.7857 MB / 5.219 GB, free: 46.82 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005927/10.85, allocations: 1.203 MB / 5.22 GB, free: 45.65 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0143/10.87, allocations: 5.889 MB / 5.226 GB, free: 39.72 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/10.87, allocations: 2.1 MB / 5.228 GB, free: 37.6 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.004866/10.87, allocations: 1.167 MB / 5.229 GB, free: 36.5 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/10.87, allocations: 1.393 MB / 5.23 GB, free: 35.11 MB / 1.182 GB Notification: Performance of SimCode: time 1.542e-06/10.87, allocations: 0 / 5.23 GB, free: 35.11 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8455/11.72, allocations: 100.7 MB / 5.329 GB, free: 163.3 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/11.72, allocations: 212.7 kB / 5.329 GB, free: 163.1 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.102/17.82, allocations: 0 / 5.329 GB, free: 163.1 MB / 1.214 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl_res.mat does not exist to compare? outputFormat=mat