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.4-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.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-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.4-maint.8.1.x/package.mo): time 1.727/1.727, allocations: 289.7 MB / 302.2 MB, free: 2.105 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.001084/0.001084, allocations: 183 kB / 371.6 MB, free: 3.449 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.648/1.648, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.001042/0.001042, allocations: 89.97 kB / 0.745 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.214e-05/3.218e-05, allocations: 4 kB / 0.8662 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2737, allocations: 116.3 MB / 0.9798 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9225/1.196, allocations: 142.5 MB / 1.119 GB, free: 41.99 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003131/1.197, allocations: 93.56 kB / 1.119 GB, free: 41.95 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.02091/1.218, allocations: 7.86 MB / 1.127 GB, free: 37.66 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.914e-06/1.218, allocations: 0 / 1.127 GB, free: 37.66 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.127e-05/1.218, allocations: 8 kB / 1.127 GB, free: 37.65 MB / 0.7448 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.001754/1.219, allocations: 0.8887 MB / 1.128 GB, free: 36.87 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.22, allocations: 8.031 kB / 1.128 GB, free: 36.86 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/1.22, allocations: 56.38 kB / 1.128 GB, free: 36.81 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006433/1.22, allocations: 401 kB / 1.128 GB, free: 36.46 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/1.22, allocations: 28.22 kB / 1.128 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.826e-05/1.22, allocations: 38.84 kB / 1.128 GB, free: 36.42 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008045/1.221, allocations: 0.5623 MB / 1.129 GB, free: 36.07 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/1.221, allocations: 0 / 1.129 GB, free: 36.07 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.858e-05/1.221, allocations: 18.72 kB / 1.129 GB, free: 36.06 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/1.221, allocations: 8.562 kB / 1.129 GB, free: 36.05 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005975/1.222, allocations: 433.5 kB / 1.129 GB, free: 35.82 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002292/1.224, allocations: 1.689 MB / 1.131 GB, free: 34.59 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/1.225, allocations: 0.6999 MB / 1.131 GB, free: 34.1 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/1.226, allocations: 267.3 kB / 1.132 GB, free: 33.93 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/1.226, allocations: 15.92 kB / 1.132 GB, free: 33.91 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005649/1.226, allocations: 455 kB / 1.132 GB, free: 33.64 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=51): time 4.228e-06/1.226, allocations: 4.656 kB / 1.132 GB, free: 33.63 MB / 0.7448 GB Notification: Performance of matching and sorting (n=51): time 0.0009467/1.227, allocations: 0.6249 MB / 1.133 GB, free: 33.23 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.932e-05/1.227, allocations: 276 kB / 1.133 GB, free: 32.91 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000357/1.228, allocations: 389.1 kB / 1.133 GB, free: 32.64 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.341e-05/1.228, allocations: 47.81 kB / 1.133 GB, free: 32.6 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/1.228, allocations: 206.5 kB / 1.134 GB, free: 32.46 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.000115/1.228, allocations: 125.8 kB / 1.134 GB, free: 32.37 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/1.228, allocations: 15.97 kB / 1.134 GB, free: 32.36 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001091/1.228, allocations: 368.5 kB / 1.134 GB, free: 32.03 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/1.229, allocations: 199.7 kB / 1.134 GB, free: 31.92 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/1.229, allocations: 389.3 kB / 1.135 GB, free: 31.59 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/1.229, allocations: 267.6 kB / 1.135 GB, free: 31.43 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/1.229, allocations: 0 / 1.135 GB, free: 31.43 MB / 0.7448 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008757/1.23, allocations: 0.6391 MB / 1.136 GB, free: 30.98 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004085/1.231, allocations: 1.863 MB / 1.137 GB, free: 29.02 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/1.231, allocations: 4 kB / 1.137 GB, free: 29.01 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/1.231, allocations: 8 kB / 1.137 GB, free: 29 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/1.231, allocations: 111.9 kB / 1.138 GB, free: 28.93 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/1.231, allocations: 11.94 kB / 1.138 GB, free: 28.91 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004215/1.231, allocations: 116.5 kB / 1.138 GB, free: 28.84 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/1.231, allocations: 23.02 kB / 1.138 GB, free: 28.82 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/1.232, allocations: 4 kB / 1.138 GB, free: 28.82 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007264/1.232, allocations: 0.5404 MB / 1.138 GB, free: 28.47 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/1.232, allocations: 4 kB / 1.138 GB, free: 28.47 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/1.232, allocations: 15.94 kB / 1.138 GB, free: 28.45 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/1.233, allocations: 73.3 kB / 1.138 GB, free: 28.4 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/1.233, allocations: 11.94 kB / 1.138 GB, free: 28.39 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/1.233, allocations: 80.38 kB / 1.138 GB, free: 28.34 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/1.233, allocations: 24.25 kB / 1.138 GB, free: 28.32 MB / 0.7448 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 () * 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.000169/1.233, allocations: 176 kB / 1.139 GB, free: 28.17 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/1.233, allocations: 47.44 kB / 1.139 GB, free: 28.12 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/1.233, allocations: 63.59 kB / 1.139 GB, free: 28.09 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/1.233, allocations: 7.953 kB / 1.139 GB, free: 28.08 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/1.233, allocations: 4.812 kB / 1.139 GB, free: 28.08 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/1.233, allocations: 4.359 kB / 1.139 GB, free: 28.08 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/1.235, allocations: 1.738 MB / 1.14 GB, free: 26.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/1.235, allocations: 4 kB / 1.14 GB, free: 26.81 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002908/1.236, allocations: 87.16 kB / 1.14 GB, free: 26.75 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/1.236, allocations: 5 kB / 1.14 GB, free: 26.75 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.759e-05/1.236, allocations: 18.52 kB / 1.141 GB, free: 26.74 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/1.236, allocations: 4 kB / 1.141 GB, free: 26.74 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.236, allocations: 11.41 kB / 1.141 GB, free: 26.73 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009322/1.237, allocations: 1.133 MB / 1.142 GB, free: 25.78 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-05/1.237, allocations: 127.5 kB / 1.142 GB, free: 25.64 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.077e-05/1.237, allocations: 17.95 kB / 1.142 GB, free: 25.63 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006249/1.237, allocations: 126.7 kB / 1.142 GB, free: 25.55 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/1.238, allocations: 54.66 kB / 1.142 GB, free: 25.53 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/1.238, allocations: 22.7 kB / 1.142 GB, free: 25.51 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002719/1.238, allocations: 302.2 kB / 1.142 GB, free: 25.31 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.31e-07/1.238, allocations: 0 / 1.142 GB, free: 25.31 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000741/1.239, allocations: 186 kB / 1.142 GB, free: 25.15 MB / 0.7448 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) * 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.0001905/1.239, allocations: 152.6 kB / 1.143 GB, free: 25.01 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001059/1.24, allocations: 0.9238 MB / 1.143 GB, free: 24.36 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.24, allocations: 256 / 1.143 GB, free: 24.36 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003742/1.24, allocations: 298 kB / 1.144 GB, free: 24.18 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006168/1.241, allocations: 82.03 kB / 1.144 GB, free: 24.14 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/1.242, allocations: 0.7953 MB / 1.145 GB, free: 23.53 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/1.242, allocations: 0.9208 MB / 1.146 GB, free: 22.69 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0005629/1.243, allocations: 315.4 kB / 1.146 GB, free: 22.49 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/1.243, allocations: 38.67 kB / 1.146 GB, free: 22.46 MB / 0.7448 GB Notification: Performance of SimCode: time 7.22e-07/1.243, allocations: 0 / 1.146 GB, free: 22.46 MB / 0.7448 GB Notification: Performance of Templates: time 0.01294/1.256, allocations: 6.78 MB / 1.152 GB, free: 18.63 MB / 0.7448 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)