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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.796/1.796, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009479/0.0009479, allocations: 181.2 kB / 487 MB, free: 5.406 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.138/1.138, allocations: 221.3 MB / 0.7819 GB, free: 1.402 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.0008215/0.0008215, allocations: 103.2 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4131/0.414, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.5985, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.043/3.642, allocations: 2.222 GB / 3.427 GB, free: 89.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/3.642, allocations: 107.3 kB / 3.427 GB, free: 89.3 MB / 1.151 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 4.3/7.942, allocations: 1.721 GB / 5.148 GB, free: 120.6 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/7.942, allocations: 8.688 kB / 5.148 GB, free: 120.6 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/7.952, allocations: 1.609 MB / 5.15 GB, free: 120 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01001/7.962, allocations: 4.213 MB / 5.154 GB, free: 117.3 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004945/7.963, allocations: 247.3 kB / 5.154 GB, free: 117.2 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004867/7.963, allocations: 141.7 kB / 5.154 GB, free: 117.2 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00402/7.967, allocations: 2.288 MB / 5.157 GB, free: 116.1 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003591/7.971, allocations: 2.431 MB / 5.159 GB, free: 114.6 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.304e-05/7.971, allocations: 7.219 kB / 5.159 GB, free: 114.6 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/7.971, allocations: 3.906 kB / 5.159 GB, free: 114.6 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-05/7.971, allocations: 89.94 kB / 5.159 GB, free: 114.6 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/7.992, allocations: 13.38 MB / 5.172 GB, free: 103.8 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002998/7.995, allocations: 1.743 MB / 5.174 GB, free: 103 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/7.996, allocations: 0.9293 MB / 5.175 GB, free: 102.5 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01072/8.007, allocations: 5.907 MB / 5.181 GB, free: 96.56 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001229/8.008, allocations: 0.983 MB / 5.182 GB, free: 95.55 MB / 1.182 GB Notification: Performance of pre-optimization done (n=150): time 4.018e-06/8.008, allocations: 0 / 5.182 GB, free: 95.55 MB / 1.182 GB Notification: Performance of matching and sorting (n=150): time 0.004563/8.013, allocations: 2.006 MB / 5.184 GB, free: 93.53 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/8.013, allocations: 179.5 kB / 5.184 GB, free: 93.31 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003048/8.016, allocations: 2.413 MB / 5.186 GB, free: 90.9 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0001537/8.016, allocations: 29.7 kB / 5.186 GB, free: 90.87 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007002/8.017, allocations: 0.9842 MB / 5.187 GB, free: 89.86 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004571/8.017, allocations: 0.4894 MB / 5.188 GB, free: 89.37 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/8.018, allocations: 0 / 5.188 GB, free: 89.37 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 8.404e-05/8.018, allocations: 373.9 kB / 5.188 GB, free: 89 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009982/8.019, allocations: 0.7289 MB / 5.189 GB, free: 88.27 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/8.02, allocations: 1.347 MB / 5.19 GB, free: 86.67 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002261/8.022, allocations: 1.028 MB / 5.191 GB, free: 85.66 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/8.022, allocations: 4 kB / 5.191 GB, free: 85.66 MB / 1.182 GB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004647/8.027, allocations: 2.503 MB / 5.193 GB, free: 83.13 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008377/8.028, allocations: 5.814 MB / 5.199 GB, free: 76.83 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/8.028, allocations: 12 kB / 5.199 GB, free: 76.82 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001383/8.028, allocations: 52.84 kB / 5.199 GB, free: 76.76 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002729/8.031, allocations: 0.5853 MB / 5.2 GB, free: 76.19 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007643/8.031, allocations: 1.374 MB / 5.201 GB, free: 74.71 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003805/8.035, allocations: 436.3 kB / 5.201 GB, free: 74.32 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/8.035, allocations: 111.9 kB / 5.202 GB, free: 74.21 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 6.281e-06/8.035, allocations: 4 kB / 5.202 GB, free: 74.21 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003881/8.039, allocations: 2.116 MB / 5.204 GB, free: 72.08 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/8.039, allocations: 15.94 kB / 5.204 GB, free: 72.07 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.805e-05/8.039, allocations: 48.84 kB / 5.204 GB, free: 72.02 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002618/8.042, allocations: 0.5727 MB / 5.204 GB, free: 71.46 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006871/8.043, allocations: 1.366 MB / 5.206 GB, free: 69.98 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003398/8.046, allocations: 369.9 kB / 5.206 GB, free: 69.65 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001986/8.046, allocations: 111.4 kB / 5.206 GB, free: 69.54 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (234): * Single equations (assignments): 232 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004458/8.047, allocations: 166.4 kB / 5.206 GB, free: 69.37 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005014/8.047, allocations: 320 kB / 5.206 GB, free: 69.05 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004345/8.052, allocations: 2.316 MB / 5.209 GB, free: 66.76 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/8.052, allocations: 19.98 kB / 5.209 GB, free: 66.74 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/8.052, allocations: 2.734 kB / 5.209 GB, free: 66.74 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002699/8.054, allocations: 1.969 MB / 5.211 GB, free: 64.66 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008504/8.063, allocations: 5.163 MB / 5.216 GB, free: 59.43 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/8.063, allocations: 4 kB / 5.216 GB, free: 59.42 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/8.065, allocations: 416.7 kB / 5.216 GB, free: 59.03 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.466e-05/8.065, allocations: 36.02 kB / 5.216 GB, free: 58.99 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/8.065, allocations: 35.95 kB / 5.216 GB, free: 58.96 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006929/8.066, allocations: 1.353 MB / 5.218 GB, free: 57.5 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/8.066, allocations: 7.938 kB / 5.218 GB, free: 57.5 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004941/8.071, allocations: 3.599 MB / 5.221 GB, free: 53.76 MB / 1.182 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006648/8.078, allocations: 5.254 MB / 5.226 GB, free: 48.36 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/8.08, allocations: 0.6879 MB / 5.227 GB, free: 47.65 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008734/8.08, allocations: 18.98 kB / 5.227 GB, free: 47.64 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003094/8.084, allocations: 266.5 kB / 5.227 GB, free: 47.4 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/8.084, allocations: 99.95 kB / 5.227 GB, free: 47.31 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/8.084, allocations: 82.02 kB / 5.227 GB, free: 47.23 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.002991/8.087, allocations: 1.804 MB / 5.229 GB, free: 45.44 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.009197/8.096, allocations: 2.909 MB / 5.232 GB, free: 42.53 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (163): * Single equations (assignments): 151 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004927/8.101, allocations: 3.817 MB / 5.236 GB, free: 39.2 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.00461/8.106, allocations: 3.139 MB / 5.239 GB, free: 36.04 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/8.106, allocations: 0 / 5.239 GB, free: 36.04 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001216/8.107, allocations: 0.9489 MB / 5.24 GB, free: 35.09 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005624/8.113, allocations: 1.181 MB / 5.241 GB, free: 34 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/8.123, allocations: 4.988 MB / 5.246 GB, free: 29.02 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002954/8.126, allocations: 2.454 MB / 5.248 GB, free: 26.54 MB / 1.182 GB Notification: Performance of SimCode: time 5.82e-07/8.126, allocations: 0 / 5.248 GB, free: 26.54 MB / 1.182 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)