Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.32/1.32, allocations: 252 MB / 267.9 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009999/0.0009999, allocations: 184.6 kB / 327.5 MB, free: 2.156 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.4 MB / 0.5785 GB, free: 20.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007474/0.0007475, allocations: 98.23 kB / 0.6831 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004065, allocations: 12.72 kB / 0.7974 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1707, allocations: 106.3 MB / 0.9012 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1535/0.3242, allocations: 135.4 MB / 1.033 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.3245, allocations: 95.88 kB / 1.034 GB, free: 8.023 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02038/0.3449, allocations: 7.919 MB / 1.041 GB, free: 48 kB / 0.6823 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3449, allocations: 0 / 1.041 GB, free: 48 kB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.74e-05/0.3449, allocations: 8 kB / 1.041 GB, free: 40 kB / 0.6823 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.002001/0.3469, allocations: 0.9426 MB / 1.042 GB, free: 15.04 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.347, allocations: 16.03 kB / 1.042 GB, free: 15.02 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.3471, allocations: 48.38 kB / 1.042 GB, free: 14.97 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.3477, allocations: 420.7 kB / 1.043 GB, free: 14.52 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.3478, allocations: 25.38 kB / 1.043 GB, free: 14.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.506e-05/0.3478, allocations: 44.36 kB / 1.043 GB, free: 14.46 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.349, allocations: 0.6706 MB / 1.043 GB, free: 13.75 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.349, allocations: 192 / 1.043 GB, free: 13.75 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.349, allocations: 19.92 kB / 1.043 GB, free: 13.73 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.349, allocations: 8 kB / 1.043 GB, free: 13.72 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3502, allocations: 0.6154 MB / 1.044 GB, free: 13.11 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.3525, allocations: 1.68 MB / 1.046 GB, free: 11.36 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.3542, allocations: 0.9423 MB / 1.047 GB, free: 10.36 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006042/0.3548, allocations: 368.8 kB / 1.047 GB, free: 9.98 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.3549, allocations: 15.98 kB / 1.047 GB, free: 9.965 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008504/0.3557, allocations: 0.5488 MB / 1.047 GB, free: 9.387 MB / 0.698 GB Notification: Performance of pre-optimization done (n=51): time 2.535e-06/0.3557, allocations: 0 / 1.047 GB, free: 9.387 MB / 0.698 GB Notification: Performance of matching and sorting (n=51): time 0.002077/0.3578, allocations: 1.136 MB / 1.049 GB, free: 8.246 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.358, allocations: 285 kB / 1.049 GB, free: 7.906 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004318/0.3584, allocations: 437.5 kB / 1.049 GB, free: 7.469 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.3585, allocations: 45.69 kB / 1.049 GB, free: 7.418 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.3586, allocations: 204.9 kB / 1.05 GB, free: 7.215 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.3587, allocations: 142.3 kB / 1.05 GB, free: 7.074 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.3587, allocations: 12 kB / 1.05 GB, free: 7.062 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3589, allocations: 358.8 kB / 1.05 GB, free: 6.703 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005633/0.3594, allocations: 304.8 kB / 1.05 GB, free: 6.402 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000666/0.3601, allocations: 0.4888 MB / 1.051 GB, free: 5.844 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.3613, allocations: 0.7702 MB / 1.052 GB, free: 5.004 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3613, allocations: 3.938 kB / 1.052 GB, free: 5 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001441/0.3628, allocations: 0.8344 MB / 1.052 GB, free: 4.152 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.3629, allocations: 247.9 kB / 1.053 GB, free: 3.836 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3629, allocations: 11.92 kB / 1.053 GB, free: 3.824 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.363, allocations: 8 kB / 1.053 GB, free: 3.816 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/0.3633, allocations: 115.8 kB / 1.053 GB, free: 3.703 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.3633, allocations: 11.94 kB / 1.053 GB, free: 3.691 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.3638, allocations: 111.6 kB / 1.053 GB, free: 3.582 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.021e-05/0.3638, allocations: 28 kB / 1.053 GB, free: 3.555 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.3638, allocations: 7.938 kB / 1.053 GB, free: 3.547 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009755/0.3648, allocations: 0.6138 MB / 1.053 GB, free: 2.93 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.3648, allocations: 9.156 kB / 1.053 GB, free: 2.922 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-06/0.3648, allocations: 12 kB / 1.053 GB, free: 2.91 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.3651, allocations: 71.83 kB / 1.054 GB, free: 2.84 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.3651, allocations: 11.98 kB / 1.054 GB, free: 2.828 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.3654, allocations: 71.72 kB / 1.054 GB, free: 2.758 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.3655, allocations: 28 kB / 1.054 GB, free: 2.73 MB / 0.698 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.0003444/0.3658, allocations: 356.9 kB / 1.054 GB, free: 2.371 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.67e-05/0.3659, allocations: 51.38 kB / 1.054 GB, free: 2.32 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.366, allocations: 59.45 kB / 1.054 GB, free: 2.266 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.366, allocations: 8 kB / 1.054 GB, free: 2.258 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.366, allocations: 4 kB / 1.054 GB, free: 2.254 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3661, allocations: 4 kB / 1.054 GB, free: 2.25 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0026/0.3687, allocations: 1.931 MB / 1.056 GB, free: 264 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.3687, allocations: 11.94 kB / 1.056 GB, free: 252 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.369, allocations: 83.89 kB / 1.056 GB, free: 168 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/0.369, allocations: 7.938 kB / 1.056 GB, free: 160 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.369, allocations: 12 kB / 1.056 GB, free: 148 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.644e-06/0.3691, allocations: 15.86 kB / 1.056 GB, free: 132 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3691, allocations: 4 kB / 1.056 GB, free: 128 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3404/0.7094, allocations: 1.263 MB / 1.057 GB, free: 148.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.7096, allocations: 124.1 kB / 1.057 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.7097, allocations: 21.61 kB / 1.057 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007188/0.7105, allocations: 126.8 kB / 1.058 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.7106, allocations: 51.17 kB / 1.058 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.7107, allocations: 20.16 kB / 1.058 GB, free: 148.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003225/0.711, allocations: 311 kB / 1.058 GB, free: 148.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.71e-07/0.711, allocations: 3.562 kB / 1.058 GB, free: 148.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009943/0.712, allocations: 192.9 kB / 1.058 GB, free: 148.6 MB / 0.698 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.0002164/0.7122, allocations: 143.1 kB / 1.058 GB, free: 148.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002064/0.7143, allocations: 1.143 MB / 1.059 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7143, allocations: 3.125 kB / 1.059 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007/0.715, allocations: 399.6 kB / 1.06 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.7161, allocations: 89.03 kB / 1.06 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.7183, allocations: 1.136 MB / 1.061 GB, free: 147.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005956/0.7189, allocations: 0.9173 MB / 1.062 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006286/0.7195, allocations: 205.6 kB / 1.062 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.7197, allocations: 39.47 kB / 1.062 GB, free: 147.2 MB / 0.698 GB Notification: Performance of SimCode: time 9.72e-07/0.7197, allocations: 0 / 1.062 GB, free: 147.2 MB / 0.698 GB Notification: Performance of Templates: time 0.01535/0.7351, allocations: 6.161 MB / 1.068 GB, free: 147 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)