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.233/2.233, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.001094/0.001094, allocations: 190.8 kB / 498.1 MB, free: 5.664 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.388/1.388, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0008852/0.0008853, allocations: 102.5 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.000353, allocations: 8.25 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2504, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.246/4.497, allocations: 2.222 GB / 3.445 GB, free: 261 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/4.497, allocations: 109.2 kB / 3.445 GB, free: 260.9 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 6.054/10.55, allocations: 1.72 GB / 5.166 GB, free: 124.9 MB / 1.198 GB Notification: Performance of FrontEnd: time 1.573e-06/10.55, allocations: 0 / 5.166 GB, free: 124.9 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0006702/10.55, allocations: 94.48 kB / 5.166 GB, free: 124.9 MB / 1.198 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.01649/10.57, allocations: 4.553 MB / 5.17 GB, free: 123.3 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/10.57, allocations: 9.312 kB / 5.17 GB, free: 123.3 MB / 1.198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001723/10.57, allocations: 318.6 kB / 5.171 GB, free: 123.2 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01109/10.58, allocations: 1.415 MB / 5.172 GB, free: 123 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/10.59, allocations: 4.209 MB / 5.176 GB, free: 122.4 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000753/10.59, allocations: 327.5 kB / 5.176 GB, free: 122.4 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/10.6, allocations: 244.2 kB / 5.177 GB, free: 122.3 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009348/10.61, allocations: 3.051 MB / 5.18 GB, free: 122 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001126/10.61, allocations: 15.86 kB / 5.18 GB, free: 122 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007126/10.61, allocations: 95.38 kB / 5.18 GB, free: 122 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.049e-05/10.61, allocations: 91.39 kB / 5.18 GB, free: 122 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008773/10.61, allocations: 2.978 MB / 5.183 GB, free: 121.9 MB / 1.198 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02502/10.64, allocations: 12.88 MB / 5.195 GB, free: 116.4 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006055/10.65, allocations: 2.694 MB / 5.198 GB, free: 115.8 MB / 1.198 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01162/10.66, allocations: 5.538 MB / 5.203 GB, free: 113.4 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002732/10.66, allocations: 1.191 MB / 5.204 GB, free: 113.3 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001884/10.66, allocations: 243.2 kB / 5.205 GB, free: 113.3 MB / 1.198 GB Notification: Performance of pre-optimization done (n=146): time 9.527e-06/10.66, allocations: 5.906 kB / 5.205 GB, free: 113.3 MB / 1.198 GB Notification: Performance of matching and sorting (n=146): time 0.009083/10.67, allocations: 2.97 MB / 5.208 GB, free: 113 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/10.67, allocations: 179.6 kB / 5.208 GB, free: 112.8 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007048/10.68, allocations: 2.918 MB / 5.211 GB, free: 112.6 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0005315/10.68, allocations: 59.61 kB / 5.211 GB, free: 112.5 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.002179/10.68, allocations: 1.603 MB / 5.212 GB, free: 112.1 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007906/10.68, allocations: 0.4938 MB / 5.213 GB, free: 111.8 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/10.68, allocations: 37.81 kB / 5.213 GB, free: 111.8 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001819/10.68, allocations: 383.2 kB / 5.213 GB, free: 111.5 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002902/10.69, allocations: 0.9741 MB / 5.214 GB, free: 111.5 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00319/10.69, allocations: 1.612 MB / 5.216 GB, free: 110.8 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002979/10.69, allocations: 1.095 MB / 5.217 GB, free: 110.8 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.006e-05/10.69, allocations: 3.375 kB / 5.217 GB, free: 110.8 MB / 1.198 GB Notification: Performance of matching and sorting (n=233) (initialization): time 0.007629/10.7, allocations: 2.839 MB / 5.219 GB, free: 110.5 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001108/10.7, allocations: 5.82 MB / 5.225 GB, free: 104.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.144e-05/10.7, allocations: 16.62 kB / 5.225 GB, free: 104.5 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.004e-05/10.7, allocations: 23.22 kB / 5.225 GB, free: 104.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/10.7, allocations: 0.5553 MB / 5.226 GB, free: 104.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.912e-05/10.7, allocations: 36.31 kB / 5.226 GB, free: 104.5 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005113/10.71, allocations: 378.9 kB / 5.226 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004003/10.71, allocations: 106.7 kB / 5.226 GB, free: 104.4 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/10.71, allocations: 6.969 kB / 5.226 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006372/10.72, allocations: 2.443 MB / 5.229 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.413e-05/10.72, allocations: 14.19 kB / 5.229 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.097e-05/10.72, allocations: 24.53 kB / 5.229 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/10.72, allocations: 0.5369 MB / 5.229 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.145e-05/10.72, allocations: 29.95 kB / 5.229 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004623/10.72, allocations: 328 kB / 5.23 GB, free: 104.4 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003462/10.72, allocations: 101.7 kB / 5.23 GB, free: 104.4 MB / 1.198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 () * Number of clocked 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.002943/10.73, allocations: 0.7848 MB / 5.23 GB, free: 104.2 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/10.73, allocations: 340.5 kB / 5.231 GB, free: 104 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007398/10.74, allocations: 2.502 MB / 5.233 GB, free: 103.9 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.102e-05/10.74, allocations: 20.02 kB / 5.233 GB, free: 103.9 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/10.74, allocations: 0 / 5.233 GB, free: 103.9 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00519/10.74, allocations: 2.224 MB / 5.235 GB, free: 103.4 MB / 1.198 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01449/10.76, allocations: 5.686 MB / 5.241 GB, free: 102.7 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/10.76, allocations: 8.406 kB / 5.241 GB, free: 102.7 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/10.76, allocations: 391.8 kB / 5.241 GB, free: 102.7 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.649e-05/10.76, allocations: 6.5 kB / 5.241 GB, free: 102.7 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001754/10.76, allocations: 54.22 kB / 5.241 GB, free: 102.7 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.551e-05/10.76, allocations: 12.91 kB / 5.241 GB, free: 102.7 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/10.76, allocations: 3.625 kB / 5.241 GB, free: 102.7 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008337/10.77, allocations: 4.078 MB / 5.245 GB, free: 101.8 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002384/10.77, allocations: 0.6944 MB / 5.246 GB, free: 101.5 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001166/10.77, allocations: 31.75 kB / 5.246 GB, free: 101.5 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003481/10.77, allocations: 281.8 kB / 5.246 GB, free: 101.5 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/10.77, allocations: 104.4 kB / 5.246 GB, free: 101.5 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002701/10.77, allocations: 81.48 kB / 5.246 GB, free: 101.5 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.005124/10.78, allocations: 2.264 MB / 5.249 GB, free: 101.4 MB / 1.198 GB Notification: Performance of sort global known variables: time 2.61e-07/10.78, allocations: 0 / 5.249 GB, free: 101.4 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.01104/10.79, allocations: 1.967 MB / 5.251 GB, free: 101.1 MB / 1.198 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) * Number of clocked states: 0 () * 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.0183/10.81, allocations: 8.838 MB / 5.259 GB, free: 97.92 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.009717/10.82, allocations: 3.547 MB / 5.263 GB, free: 97.89 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/10.82, allocations: 0 / 5.263 GB, free: 97.89 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.002651/10.82, allocations: 1.052 MB / 5.264 GB, free: 97.88 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008182/10.83, allocations: 1.48 MB / 5.265 GB, free: 97.86 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0261/10.86, allocations: 18.93 MB / 5.284 GB, free: 84.14 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002636/10.86, allocations: 2.099 MB / 5.286 GB, free: 83.35 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.005757/10.86, allocations: 0.846 MB / 5.287 GB, free: 83.2 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002769/10.87, allocations: 1.451 MB / 5.288 GB, free: 83.19 MB / 1.198 GB Notification: Performance of SimCode: time 1.643e-06/10.87, allocations: 0 / 5.288 GB, free: 83.19 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1905/11.06, allocations: 124.2 MB / 5.409 GB, free: 41.55 MB / 1.198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/11.06, allocations: 266.6 kB / 5.409 GB, free: 41.19 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/18.55, allocations: 3.094 kB / 5.409 GB, free: 41.19 MB / 1.198 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