Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl,fileNamePrefix="Buildings_maint_8_0_x_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 8.0.1-maint.8.0.x/package.mo): time 1.331/1.331, allocations: 285.5 MB / 292.8 MB, free: 9.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008808/0.0008808, allocations: 177.3 kB / 361.1 MB, free: 392 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.031/1.031, allocations: 205.1 MB / 0.6195 GB, free: 2.879 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007906/0.0007907, allocations: 93.45 kB / 0.7326 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.3528/0.3537, allocations: 121.5 MB / 0.8512 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.4982, allocations: 115.3 MB / 0.9638 GB, free: 56.29 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.39/3.888, allocations: 2.393 GB / 3.357 GB, free: 284.4 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/3.888, allocations: 101.5 kB / 3.357 GB, free: 284.4 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 570 * Number of variables: 570 Notification: Performance of Generate backend data structure: time 3.986/7.874, allocations: 1.709 GB / 5.066 GB, free: 22.82 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 2.873e-05/7.874, allocations: 11.94 kB / 5.066 GB, free: 22.81 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008687/7.883, allocations: 1.515 MB / 5.067 GB, free: 21.36 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008732/7.892, allocations: 4.191 MB / 5.071 GB, free: 17.23 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000456/7.892, allocations: 246.2 kB / 5.072 GB, free: 16.98 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000436/7.893, allocations: 144 kB / 5.072 GB, free: 16.84 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003372/7.896, allocations: 2.281 MB / 5.074 GB, free: 14.56 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003288/7.899, allocations: 2.451 MB / 5.076 GB, free: 11.96 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.097e-05/7.899, allocations: 11.89 kB / 5.076 GB, free: 11.95 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002253/7.9, allocations: 4 kB / 5.076 GB, free: 11.95 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.394e-05/7.9, allocations: 80.27 kB / 5.076 GB, free: 11.87 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01721/7.917, allocations: 13.34 MB / 5.089 GB, free: 14.09 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/7.92, allocations: 1.723 MB / 5.091 GB, free: 12.37 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/7.921, allocations: 0.9187 MB / 5.092 GB, free: 11.45 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/7.931, allocations: 5.883 MB / 5.098 GB, free: 5.234 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001342/7.933, allocations: 0.9704 MB / 5.099 GB, free: 4.25 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=149): time 2.615e-06/7.933, allocations: 0 / 5.099 GB, free: 4.25 MB / 0.9948 GB Notification: Performance of matching and sorting (n=149): time 0.004262/7.937, allocations: 2.01 MB / 5.101 GB, free: 2.211 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.013e-05/7.937, allocations: 230.9 kB / 5.101 GB, free: 1.938 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00296/7.94, allocations: 2.418 MB / 5.103 GB, free: 15.52 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.0001437/7.94, allocations: 33.64 kB / 5.103 GB, free: 15.49 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007644/7.941, allocations: 0.9927 MB / 5.104 GB, free: 14.48 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004759/7.941, allocations: 488.7 kB / 5.105 GB, free: 14 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/7.941, allocations: 0 / 5.105 GB, free: 14 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.000136/7.942, allocations: 381.9 kB / 5.105 GB, free: 13.62 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/7.943, allocations: 0.7341 MB / 5.106 GB, free: 12.88 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/7.944, allocations: 1.382 MB / 5.107 GB, free: 11.23 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002454/7.947, allocations: 1.053 MB / 5.108 GB, free: 10.21 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/7.947, allocations: 4 kB / 5.108 GB, free: 10.21 MB / 1.01 GB Notification: Performance of matching and sorting (n=240) (initialization): time 0.00486/7.952, allocations: 2.545 MB / 5.111 GB, free: 7.641 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.001539/7.953, allocations: 5.828 MB / 5.116 GB, free: 1.328 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.059e-05/7.953, allocations: 15.98 kB / 5.116 GB, free: 1.312 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001391/7.953, allocations: 44.86 kB / 5.116 GB, free: 1.266 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002779/7.956, allocations: 0.5821 MB / 5.117 GB, free: 0.6992 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3034/8.259, allocations: 1.364 MB / 5.118 GB, free: 165.3 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003641/8.263, allocations: 429.1 kB / 5.119 GB, free: 165.3 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002149/8.263, allocations: 119 kB / 5.119 GB, free: 165.3 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 6.111e-06/8.263, allocations: 2.875 kB / 5.119 GB, free: 165.3 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003889/8.267, allocations: 2.151 MB / 5.121 GB, free: 165.2 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/8.267, allocations: 14.97 kB / 5.121 GB, free: 165.2 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.251e-05/8.267, allocations: 50.75 kB / 5.121 GB, free: 165.1 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/8.27, allocations: 0.5652 MB / 5.122 GB, free: 165.1 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006327/8.271, allocations: 1.368 MB / 5.123 GB, free: 163.9 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/8.273, allocations: 366.5 kB / 5.123 GB, free: 163.9 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/8.273, allocations: 117.1 kB / 5.123 GB, free: 163.9 MB / 1.01 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 (235): * Single equations (assignments): 231 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0003708/8.274, allocations: 167.2 kB / 5.124 GB, free: 163.8 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003693/8.274, allocations: 318.8 kB / 5.124 GB, free: 163.8 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/8.278, allocations: 2.295 MB / 5.126 GB, free: 163.6 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/8.278, allocations: 17.62 kB / 5.126 GB, free: 163.6 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/8.278, allocations: 4.812 kB / 5.126 GB, free: 163.6 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002606/8.281, allocations: 1.964 MB / 5.128 GB, free: 163 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00705/8.288, allocations: 5.147 MB / 5.133 GB, free: 162.3 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/8.288, allocations: 3.031 kB / 5.133 GB, free: 162.3 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/8.29, allocations: 412.2 kB / 5.133 GB, free: 162.3 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.206e-05/8.29, allocations: 33.67 kB / 5.133 GB, free: 162.3 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/8.29, allocations: 38.3 kB / 5.134 GB, free: 162.3 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006085/8.291, allocations: 1.351 MB / 5.135 GB, free: 161 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/8.291, allocations: 5.594 kB / 5.135 GB, free: 161 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004199/8.295, allocations: 3.594 MB / 5.138 GB, free: 160.1 MB / 1.01 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005844/8.301, allocations: 5.246 MB / 5.143 GB, free: 158.7 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/8.302, allocations: 0.6846 MB / 5.144 GB, free: 158.5 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/8.303, allocations: 13.7 kB / 5.144 GB, free: 158.5 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002379/8.305, allocations: 258.1 kB / 5.144 GB, free: 158.5 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/8.305, allocations: 98.78 kB / 5.145 GB, free: 158.5 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/8.305, allocations: 85.72 kB / 5.145 GB, free: 158.5 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.002012/8.307, allocations: 1.803 MB / 5.146 GB, free: 158.3 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.007437/8.315, allocations: 2.981 MB / 5.149 GB, free: 158.2 MB / 1.01 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.x[1],pum.filter.x[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 (162): * Single equations (assignments): 150 * 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.004004/8.319, allocations: 3.869 MB / 5.153 GB, free: 157 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.004032/8.323, allocations: 3.22 MB / 5.156 GB, free: 156.7 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/8.323, allocations: 0 / 5.156 GB, free: 156.7 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.001045/8.324, allocations: 0.9524 MB / 5.157 GB, free: 156.6 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004424/8.328, allocations: 1.191 MB / 5.158 GB, free: 156.6 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008101/8.336, allocations: 4.966 MB / 5.163 GB, free: 155.4 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/8.339, allocations: 2.462 MB / 5.166 GB, free: 154.6 MB / 1.01 GB Notification: Performance of SimCode: time 9.12e-07/8.339, allocations: 0 / 5.166 GB, free: 154.6 MB / 1.01 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSetPointControl.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSetPointControl.pipe 2>&1)