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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.738/1.738, allocations: 289.7 MB / 302.2 MB, free: 2.145 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.001225/0.001225, allocations: 182.3 kB / 371.6 MB, free: 3.395 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.916/1.916, allocations: 205.2 MB / 0.6309 GB, free: 11.75 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.001057/0.001057, allocations: 87.75 kB / 0.745 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.373e-05/4.375e-05, allocations: 4 kB / 0.8663 GB, free: 14.91 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3228, allocations: 116.3 MB / 0.9799 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9973/1.32, allocations: 142.5 MB / 1.119 GB, free: 41.93 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/1.32, allocations: 94.8 kB / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.02035/1.341, allocations: 7.864 MB / 1.127 GB, free: 37.59 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.595e-06/1.341, allocations: 4 kB / 1.127 GB, free: 37.59 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.921e-05/1.341, allocations: 8 kB / 1.127 GB, free: 37.58 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.001723/1.343, allocations: 0.8898 MB / 1.128 GB, free: 36.8 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/1.343, allocations: 12.78 kB / 1.128 GB, free: 36.79 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.33e-05/1.343, allocations: 72.03 kB / 1.128 GB, free: 36.74 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/1.343, allocations: 51.44 kB / 1.128 GB, free: 36.69 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006223/1.344, allocations: 404.3 kB / 1.128 GB, free: 36.34 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/1.344, allocations: 27.91 kB / 1.128 GB, free: 36.32 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.196e-05/1.344, allocations: 38.75 kB / 1.128 GB, free: 36.3 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000819/1.344, allocations: 0.5648 MB / 1.129 GB, free: 35.95 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/1.345, allocations: 2.344 kB / 1.129 GB, free: 35.95 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.777e-05/1.345, allocations: 11.12 kB / 1.129 GB, free: 35.94 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/1.345, allocations: 18.91 kB / 1.129 GB, free: 35.93 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005837/1.345, allocations: 431.8 kB / 1.129 GB, free: 35.69 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002274/1.347, allocations: 1.671 MB / 1.131 GB, free: 34.48 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/1.349, allocations: 0.7012 MB / 1.132 GB, free: 33.98 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000336/1.349, allocations: 273.5 kB / 1.132 GB, free: 33.81 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 5.402e-05/1.349, allocations: 20.34 kB / 1.132 GB, free: 33.8 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005933/1.35, allocations: 455.2 kB / 1.132 GB, free: 33.52 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=51): time 2.355e-06/1.35, allocations: 0 / 1.132 GB, free: 33.52 MB / 0.7448 GB Notification: Performance of matching and sorting (n=51): time 0.0009896/1.351, allocations: 0.6197 MB / 1.133 GB, free: 33.12 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/1.351, allocations: 291.2 kB / 1.133 GB, free: 32.78 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003968/1.351, allocations: 391.6 kB / 1.134 GB, free: 32.51 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/1.351, allocations: 44.25 kB / 1.134 GB, free: 32.47 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000145/1.351, allocations: 206.8 kB / 1.134 GB, free: 32.34 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.32e-05/1.351, allocations: 126 kB / 1.134 GB, free: 32.25 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-05/1.351, allocations: 10.62 kB / 1.134 GB, free: 32.25 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001129/1.352, allocations: 358.2 kB / 1.134 GB, free: 31.92 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/1.352, allocations: 205.1 kB / 1.135 GB, free: 31.81 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004053/1.352, allocations: 393.4 kB / 1.135 GB, free: 31.47 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/1.353, allocations: 269 kB / 1.135 GB, free: 31.31 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/1.353, allocations: 4 kB / 1.135 GB, free: 31.3 MB / 0.7448 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008121/1.353, allocations: 0.6278 MB / 1.136 GB, free: 30.87 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005406/1.354, allocations: 1.862 MB / 1.138 GB, free: 28.9 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/1.354, allocations: 11.52 kB / 1.138 GB, free: 28.89 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/1.354, allocations: 8 kB / 1.138 GB, free: 28.89 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/1.354, allocations: 117.2 kB / 1.138 GB, free: 28.8 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/1.354, allocations: 11.94 kB / 1.138 GB, free: 28.79 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004277/1.355, allocations: 110.9 kB / 1.138 GB, free: 28.72 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/1.355, allocations: 23.94 kB / 1.138 GB, free: 28.7 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/1.355, allocations: 4.656 kB / 1.138 GB, free: 28.7 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007017/1.356, allocations: 0.5439 MB / 1.138 GB, free: 28.35 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/1.356, allocations: 11.89 kB / 1.138 GB, free: 28.34 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.596e-06/1.356, allocations: 8 kB / 1.138 GB, free: 28.33 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/1.356, allocations: 85.09 kB / 1.138 GB, free: 28.27 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/1.356, allocations: 8 kB / 1.138 GB, free: 28.26 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/1.356, allocations: 66.11 kB / 1.139 GB, free: 28.22 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/1.356, allocations: 27 kB / 1.139 GB, free: 28.2 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.0001985/1.357, allocations: 180.2 kB / 1.139 GB, free: 28.04 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.578e-05/1.357, allocations: 55.38 kB / 1.139 GB, free: 27.99 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/1.357, allocations: 62.75 kB / 1.139 GB, free: 27.96 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/1.357, allocations: 4 kB / 1.139 GB, free: 27.96 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/1.357, allocations: 4 kB / 1.139 GB, free: 27.95 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/1.357, allocations: 4.031 kB / 1.139 GB, free: 27.95 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/1.359, allocations: 1.732 MB / 1.141 GB, free: 26.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/1.359, allocations: 0 / 1.141 GB, free: 26.7 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002964/1.359, allocations: 91.56 kB / 1.141 GB, free: 26.63 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/1.359, allocations: 4 kB / 1.141 GB, free: 26.63 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/1.359, allocations: 12.16 kB / 1.141 GB, free: 26.62 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/1.359, allocations: 7.938 kB / 1.141 GB, free: 26.62 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.359, allocations: 5.125 kB / 1.141 GB, free: 26.61 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/1.36, allocations: 1.149 MB / 1.142 GB, free: 25.65 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.83e-05/1.36, allocations: 127.4 kB / 1.142 GB, free: 25.51 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.312e-05/1.36, allocations: 18.77 kB / 1.142 GB, free: 25.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006619/1.361, allocations: 122.3 kB / 1.142 GB, free: 25.43 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/1.361, allocations: 47.25 kB / 1.142 GB, free: 25.41 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/1.361, allocations: 22.09 kB / 1.142 GB, free: 25.39 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002971/1.361, allocations: 300.8 kB / 1.142 GB, free: 25.19 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.31e-07/1.361, allocations: 0 / 1.142 GB, free: 25.19 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0008059/1.362, allocations: 189.2 kB / 1.143 GB, free: 25.03 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.001359/1.364, allocations: 2.077 MB / 1.145 GB, free: 23.16 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001264/1.365, allocations: 0.9255 MB / 1.146 GB, free: 22.51 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.365, allocations: 0 / 1.146 GB, free: 22.51 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004197/1.365, allocations: 299.4 kB / 1.146 GB, free: 22.33 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006714/1.366, allocations: 79.38 kB / 1.146 GB, free: 22.29 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/1.368, allocations: 0.9346 MB / 1.147 GB, free: 21.59 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/1.368, allocations: 0.9196 MB / 1.148 GB, free: 20.75 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.000782/1.369, allocations: 323.9 kB / 1.148 GB, free: 20.54 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/1.369, allocations: 141.9 kB / 1.148 GB, free: 20.51 MB / 0.7448 GB Notification: Performance of SimCode: time 2.225e-06/1.369, allocations: 0 / 1.148 GB, free: 20.51 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03299/1.402, allocations: 11.13 MB / 1.159 GB, free: 14.06 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/1.403, allocations: 188.7 kB / 1.159 GB, free: 13.83 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/3.925, allocations: 0 / 1.159 GB, free: 13.83 MB / 0.7448 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)