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.179/2.179, allocations: 387.1 MB / 399.7 MB, free: 9.551 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.001145/0.001145, allocations: 184.4 kB / 492.3 MB, free: 0.6523 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.42/1.42, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0009223/0.0009224, allocations: 91.94 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.646e-05/3.658e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2572, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.937/5.194, allocations: 2.222 GB / 3.435 GB, free: 77.93 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/5.195, allocations: 107.9 kB / 3.435 GB, free: 77.82 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 5.926/11.12, allocations: 1.717 GB / 5.151 GB, free: 111.4 MB / 1.182 GB Notification: Performance of FrontEnd: time 1.393e-06/11.12, allocations: 0 / 5.151 GB, free: 111.4 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0006526/11.12, allocations: 99.45 kB / 5.152 GB, free: 111.4 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.01072/11.13, allocations: 3.706 MB / 5.155 GB, free: 107.9 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/11.13, allocations: 12.03 kB / 5.155 GB, free: 107.9 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008941/11.13, allocations: 312.4 kB / 5.155 GB, free: 107.5 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009771/11.14, allocations: 1.418 MB / 5.157 GB, free: 106.2 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/11.15, allocations: 4.163 MB / 5.161 GB, free: 102.1 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005929/11.15, allocations: 330.4 kB / 5.161 GB, free: 101.7 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006716/11.16, allocations: 239.6 kB / 5.161 GB, free: 101.5 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00542/11.16, allocations: 2.764 MB / 5.164 GB, free: 98.61 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.197e-05/11.16, allocations: 11.33 kB / 5.164 GB, free: 98.61 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003271/11.16, allocations: 92 kB / 5.164 GB, free: 98.52 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.005e-05/11.16, allocations: 88.25 kB / 5.164 GB, free: 98.43 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003946/11.17, allocations: 2.366 MB / 5.167 GB, free: 96.05 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.02036/11.19, allocations: 12.89 MB / 5.179 GB, free: 82.64 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004866/11.19, allocations: 2.206 MB / 5.181 GB, free: 80.34 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002061/11.19, allocations: 0.864 MB / 5.182 GB, free: 79.47 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.01421/11.21, allocations: 5.584 MB / 5.188 GB, free: 73.55 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002141/11.21, allocations: 0.9642 MB / 5.189 GB, free: 72.57 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002081/11.21, allocations: 252.9 kB / 5.189 GB, free: 72.34 MB / 1.182 GB Notification: Performance of pre-optimization done (n=146): time 8.766e-06/11.21, allocations: 0 / 5.189 GB, free: 72.34 MB / 1.182 GB Notification: Performance of matching and sorting (n=146): time 0.004972/11.22, allocations: 1.71 MB / 5.191 GB, free: 70.62 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.696e-05/11.22, allocations: 171.5 kB / 5.191 GB, free: 70.41 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00768/11.22, allocations: 2.832 MB / 5.193 GB, free: 67.6 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0002953/11.22, allocations: 65.7 kB / 5.194 GB, free: 67.53 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.001969/11.23, allocations: 1.598 MB / 5.195 GB, free: 65.92 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006347/11.23, allocations: 0.4913 MB / 5.196 GB, free: 65.43 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/11.23, allocations: 40 kB / 5.196 GB, free: 65.39 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0001548/11.23, allocations: 377.8 kB / 5.196 GB, free: 65.02 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/11.23, allocations: 0.6951 MB / 5.197 GB, free: 64.32 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002451/11.23, allocations: 1.327 MB / 5.198 GB, free: 62.75 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/11.23, allocations: 0.8309 MB / 5.199 GB, free: 61.95 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.067e-05/11.23, allocations: 4 kB / 5.199 GB, free: 61.95 MB / 1.182 GB Notification: Performance of matching and sorting (n=233) (initialization): time 0.006252/11.24, allocations: 2.276 MB / 5.201 GB, free: 59.67 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001313/11.24, allocations: 5.817 MB / 5.207 GB, free: 53.46 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.954e-05/11.24, allocations: 15.98 kB / 5.207 GB, free: 53.45 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.914e-05/11.24, allocations: 27.95 kB / 5.207 GB, free: 53.42 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00349/11.25, allocations: 0.5501 MB / 5.207 GB, free: 52.88 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.928e-05/11.25, allocations: 33.62 kB / 5.207 GB, free: 52.84 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00574/11.25, allocations: 375.2 kB / 5.208 GB, free: 52.48 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003454/11.25, allocations: 111.9 kB / 5.208 GB, free: 52.37 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/11.25, allocations: 0 / 5.208 GB, free: 52.37 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005127/11.26, allocations: 1.916 MB / 5.21 GB, free: 50.45 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-05/11.26, allocations: 12 kB / 5.21 GB, free: 50.44 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.17e-05/11.26, allocations: 24 kB / 5.21 GB, free: 50.41 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003827/11.26, allocations: 0.5311 MB / 5.21 GB, free: 49.88 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.76e-05/11.26, allocations: 31.92 kB / 5.21 GB, free: 49.85 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005355/11.27, allocations: 331.4 kB / 5.211 GB, free: 49.53 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003224/11.27, allocations: 107.9 kB / 5.211 GB, free: 49.42 MB / 1.182 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 () * 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.0006951/11.27, allocations: 230.2 kB / 5.211 GB, free: 49.2 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/11.27, allocations: 343.7 kB / 5.211 GB, free: 48.86 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006182/11.27, allocations: 2.04 MB / 5.213 GB, free: 46.82 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.861e-05/11.27, allocations: 20 kB / 5.213 GB, free: 46.8 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/11.27, allocations: 0 / 5.213 GB, free: 46.8 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003785/11.28, allocations: 1.766 MB / 5.215 GB, free: 44.95 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.01372/11.29, allocations: 5.212 MB / 5.22 GB, free: 39.66 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/11.29, allocations: 4 kB / 5.22 GB, free: 39.66 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003091/11.3, allocations: 402.1 kB / 5.22 GB, free: 39.27 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-05/11.3, allocations: 15.62 kB / 5.22 GB, free: 39.26 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002003/11.3, allocations: 51.95 kB / 5.22 GB, free: 39.21 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.471e-05/11.3, allocations: 8 kB / 5.22 GB, free: 39.2 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/11.3, allocations: 7.938 kB / 5.22 GB, free: 39.19 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007009/11.3, allocations: 3.387 MB / 5.224 GB, free: 35.7 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002456/11.3, allocations: 0.6995 MB / 5.224 GB, free: 34.97 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001115/11.31, allocations: 32 kB / 5.224 GB, free: 34.94 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004556/11.31, allocations: 287.6 kB / 5.225 GB, free: 34.66 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/11.31, allocations: 101.1 kB / 5.225 GB, free: 34.56 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002554/11.31, allocations: 75.94 kB / 5.225 GB, free: 34.49 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.004773/11.32, allocations: 2.171 MB / 5.227 GB, free: 32.34 MB / 1.182 GB Notification: Performance of sort global known variables: time 1.673e-06/11.32, allocations: 0 / 5.227 GB, free: 32.34 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.008052/11.32, allocations: 1.982 MB / 5.229 GB, free: 30.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.01446/11.34, allocations: 8.144 MB / 5.237 GB, free: 22.41 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.006064/11.34, allocations: 2.894 MB / 5.24 GB, free: 19.52 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 8.096e-06/11.34, allocations: 7.859 kB / 5.24 GB, free: 19.52 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/11.35, allocations: 0.8244 MB / 5.241 GB, free: 18.7 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008636/11.35, allocations: 1.493 MB / 5.242 GB, free: 17.26 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/11.37, allocations: 6.085 MB / 5.248 GB, free: 11.14 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001682/11.37, allocations: 2.098 MB / 5.25 GB, free: 9.012 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.006166/11.38, allocations: 1.251 MB / 5.251 GB, free: 7.824 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001708/11.38, allocations: 1.405 MB / 5.253 GB, free: 6.418 MB / 1.182 GB Notification: Performance of SimCode: time 8.41e-07/11.38, allocations: 0 / 5.253 GB, free: 6.418 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9144/12.3, allocations: 136.6 MB / 5.386 GB, free: 151.1 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002758/12.3, allocations: 243.9 kB / 5.386 GB, free: 150.8 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.621/19.92, allocations: 0 / 5.386 GB, free: 150.8 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