Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.628/1.628, allocations: 293 MB / 309 MB, free: 4.84 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.0009075/0.0009075, allocations: 183.9 kB / 378.7 MB, free: 1.031 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.4 MB / 0.6383 GB, free: 9.172 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007685/0.0007683, allocations: 92.03 kB / 0.7527 GB, free: 62.38 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000456/0.0004561, allocations: 12 kB / 0.8768 GB, free: 10.54 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2941, allocations: 116.4 MB / 0.9904 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7728/1.067, allocations: 142.7 MB / 1.13 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/1.067, allocations: 91.14 kB / 1.13 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.02089/1.088, allocations: 7.908 MB / 1.138 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.736e-06/1.088, allocations: 4 kB / 1.138 GB, free: 26.51 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.655e-05/1.088, allocations: 12 kB / 1.138 GB, free: 26.5 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001835/1.09, allocations: 0.9255 MB / 1.139 GB, free: 25.64 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/1.09, allocations: 12.03 kB / 1.139 GB, free: 25.63 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/1.09, allocations: 58.39 kB / 1.139 GB, free: 25.57 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005338/1.091, allocations: 419.9 kB / 1.139 GB, free: 25.16 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/1.091, allocations: 32.09 kB / 1.139 GB, free: 25.14 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.704e-05/1.091, allocations: 33.69 kB / 1.139 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/1.092, allocations: 0.6694 MB / 1.14 GB, free: 24.55 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/1.092, allocations: 192 / 1.14 GB, free: 24.55 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.092e-05/1.092, allocations: 17.34 kB / 1.14 GB, free: 24.54 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/1.092, allocations: 14.64 kB / 1.14 GB, free: 24.53 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/1.093, allocations: 0.6087 MB / 1.14 GB, free: 24.06 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/1.096, allocations: 1.676 MB / 1.142 GB, free: 22.61 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/1.098, allocations: 0.9559 MB / 1.143 GB, free: 21.81 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006605/1.098, allocations: 366.2 kB / 1.143 GB, free: 21.51 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.813e-05/1.098, allocations: 22.08 kB / 1.143 GB, free: 21.49 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009775/1.099, allocations: 0.5412 MB / 1.144 GB, free: 21.07 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=51): time 2.224e-06/1.099, allocations: 0 / 1.144 GB, free: 21.07 MB / 0.7292 GB Notification: Performance of matching and sorting (n=51): time 0.0023/1.102, allocations: 1.144 MB / 1.145 GB, free: 20.16 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/1.102, allocations: 286.6 kB / 1.145 GB, free: 19.83 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004935/1.102, allocations: 433.9 kB / 1.146 GB, free: 19.46 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/1.102, allocations: 44.98 kB / 1.146 GB, free: 19.41 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/1.103, allocations: 211.8 kB / 1.146 GB, free: 19.22 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 9.732e-05/1.103, allocations: 128.1 kB / 1.146 GB, free: 19.1 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/1.103, allocations: 12 kB / 1.146 GB, free: 19.09 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001146/1.103, allocations: 362.1 kB / 1.146 GB, free: 18.74 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/1.103, allocations: 310.1 kB / 1.147 GB, free: 18.51 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007036/1.104, allocations: 498 kB / 1.147 GB, free: 18.04 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/1.105, allocations: 0.7674 MB / 1.148 GB, free: 17.32 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.105, allocations: 4.875 kB / 1.148 GB, free: 17.32 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001574/1.107, allocations: 0.8371 MB / 1.149 GB, free: 16.61 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/1.107, allocations: 255.4 kB / 1.149 GB, free: 16.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/1.107, allocations: 9.797 kB / 1.149 GB, free: 16.29 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/1.107, allocations: 8 kB / 1.149 GB, free: 16.28 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/1.108, allocations: 115.4 kB / 1.149 GB, free: 16.19 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/1.108, allocations: 14.27 kB / 1.149 GB, free: 16.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004294/1.108, allocations: 98.52 kB / 1.149 GB, free: 16.11 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/1.108, allocations: 29.41 kB / 1.149 GB, free: 16.08 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.404e-06/1.108, allocations: 10.59 kB / 1.149 GB, free: 16.07 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009512/1.109, allocations: 0.6104 MB / 1.15 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/1.109, allocations: 4.5 kB / 1.15 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.975e-06/1.109, allocations: 8.656 kB / 1.15 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/1.109, allocations: 80.48 kB / 1.15 GB, free: 15.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/1.109, allocations: 13.3 kB / 1.15 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/1.11, allocations: 75.2 kB / 1.15 GB, free: 15.4 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/1.11, allocations: 24.7 kB / 1.15 GB, free: 15.38 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.firstTrigger,$PRE.triAndRes[1].sam.firstTrigger,triAndRes[1].sam.firstTrigger,$whenCondition9,triAndRes[1].sam.sampleTrigger,$whenCondition10,triAndRes[1].uniDel1.sampleTrigger,$PRE.triAndRes[1].firstTrigger,triAndRes[1].firstTrigger,$whenCondition7,triAndRes[1].sampleTrigger,$PRE.triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.firstTrigger,$PRE.triAndRes[2].sam.firstTrigger,triAndRes[2].sam.firstTrigger,$whenCondition5,triAndRes[2].sam.sampleTrigger,$whenCondition6,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].incY.y,triAndRes[2].sam.y,$PRE.triAndRes[2].uniDel1.y,triAndRes[2].uniDel1.y,$PRE.triAndRes[2].firstTrigger,triAndRes[2].firstTrigger,$whenCondition4,triAndRes[2].sampleTrigger,$PRE.triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.firstTrigger,$PRE.triAndRes[3].sam.firstTrigger,triAndRes[3].sam.firstTrigger,$whenCondition2,triAndRes[3].sam.sampleTrigger,$whenCondition3,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].incY.y,triAndRes[3].sam.y,$PRE.triAndRes[3].uniDel1.y,triAndRes[3].uniDel1.y,$PRE.triAndRes[3].firstTrigger,triAndRes[3].firstTrigger,$whenCondition1,triAndRes[3].sampleTrigger,$whenCondition8,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.y,$PRE.triAndRes[1].uniDel1.y,triAndRes[1].uniDel1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0004525/1.11, allocations: 365.2 kB / 1.15 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.097e-05/1.11, allocations: 52.83 kB / 1.15 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.641e-05/1.11, allocations: 57.91 kB / 1.15 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/1.11, allocations: 4 kB / 1.15 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/1.11, allocations: 8.812 kB / 1.15 GB, free: 14.94 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/1.11, allocations: 2.625 kB / 1.15 GB, free: 14.94 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/1.113, allocations: 1.938 MB / 1.152 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/1.113, allocations: 4 kB / 1.152 GB, free: 13.26 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002854/1.113, allocations: 90.38 kB / 1.152 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/1.113, allocations: 4 kB / 1.152 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/1.113, allocations: 16.28 kB / 1.152 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/1.113, allocations: 7.938 kB / 1.152 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/1.113, allocations: 3.938 kB / 1.152 GB, free: 13.17 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/1.115, allocations: 1.264 MB / 1.154 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.386e-05/1.115, allocations: 130.5 kB / 1.154 GB, free: 11.9 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.471e-05/1.115, allocations: 19.33 kB / 1.154 GB, free: 11.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006244/1.116, allocations: 132.8 kB / 1.154 GB, free: 11.8 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/1.116, allocations: 49.61 kB / 1.154 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/1.116, allocations: 19.73 kB / 1.154 GB, free: 11.75 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0003036/1.116, allocations: 310.2 kB / 1.154 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.41e-07/1.116, allocations: 0 / 1.154 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007735/1.117, allocations: 182 kB / 1.155 GB, free: 11.32 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 39 (triAndRes[3].sampleTrigger,$whenCondition1,triAndRes[3].firstTrigger,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].sam.sampleTrigger,$whenCondition3,$whenCondition2,triAndRes[3].incY.y,triAndRes[3].sam.firstTrigger,triAndRes[3].sam.y,triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.y,triAndRes[2].sampleTrigger,$whenCondition4,triAndRes[2].firstTrigger,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].sam.sampleTrigger,$whenCondition6,$whenCondition5,triAndRes[2].incY.y,triAndRes[2].sam.firstTrigger,triAndRes[2].sam.y,triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.y,triAndRes[1].sampleTrigger,$whenCondition7,triAndRes[1].firstTrigger,triAndRes[1].uniDel1.sampleTrigger,triAndRes[1].sam.sampleTrigger,$whenCondition10,$whenCondition9,$whenCondition8,act1.T_start,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.firstTrigger,triAndRes[1].sam.y,triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.y) * Number of discrete states: 4 (act1.count,triAndRes[1].uniDel1.u,triAndRes[2].uniDel1.u,triAndRes[3].uniDel1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002045/1.117, allocations: 154.4 kB / 1.155 GB, free: 11.16 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002635/1.12, allocations: 1.141 MB / 1.156 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.12, allocations: 0 / 1.156 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.00114/1.121, allocations: 404 kB / 1.156 GB, free: 9.891 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/1.123, allocations: 91.86 kB / 1.156 GB, free: 9.824 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/1.126, allocations: 1.153 MB / 1.157 GB, free: 8.785 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006191/1.126, allocations: 0.9089 MB / 1.158 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0008087/1.127, allocations: 212.1 kB / 1.158 GB, free: 7.785 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/1.127, allocations: 41.2 kB / 1.159 GB, free: 7.746 MB / 0.7292 GB Notification: Performance of SimCode: time 1.042e-06/1.127, allocations: 0 / 1.159 GB, free: 7.746 MB / 0.7292 GB Notification: Performance of Templates: time 0.01785/1.145, allocations: 6.153 MB / 1.165 GB, free: 2.742 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)