Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.086/2.086, allocations: 251.1 MB / 266.1 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001574/0.001573, allocations: 183.2 kB / 325.6 MB, free: 2.859 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.314/2.314, allocations: 205.4 MB / 0.5766 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001208/0.001208, allocations: 100.3 kB / 0.6811 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004601/0.0004603, allocations: 15.8 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2105, allocations: 106.3 MB / 0.8989 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2254/0.4359, allocations: 135.2 MB / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003666/0.4363, allocations: 95.94 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03577/0.4721, allocations: 7.899 MB / 1.039 GB, free: 2.086 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.746e-06/0.4722, allocations: 0 / 1.039 GB, free: 2.086 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.869e-05/0.4722, allocations: 11.94 kB / 1.039 GB, free: 2.074 MB / 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.003077/0.4753, allocations: 0.9386 MB / 1.04 GB, free: 1.078 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4754, allocations: 8.031 kB / 1.04 GB, free: 1.07 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.4756, allocations: 59.42 kB / 1.04 GB, free: 1.012 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008897/0.4765, allocations: 403.7 kB / 1.04 GB, free: 0.5781 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.811e-05/0.4766, allocations: 32.98 kB / 1.04 GB, free: 0.5469 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.4767, allocations: 32 kB / 1.04 GB, free: 0.5156 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.4788, allocations: 0.6743 MB / 1.041 GB, free: 15.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.4788, allocations: 3.938 kB / 1.041 GB, free: 15.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.652e-05/0.4789, allocations: 15.95 kB / 1.041 GB, free: 15.78 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.479, allocations: 8 kB / 1.041 GB, free: 15.77 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002319/0.4813, allocations: 0.6172 MB / 1.041 GB, free: 15.16 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004236/0.4856, allocations: 1.665 MB / 1.043 GB, free: 13.42 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00348/0.4891, allocations: 0.9499 MB / 1.044 GB, free: 12.42 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.537e-05/0.4892, allocations: 16.2 kB / 1.044 GB, free: 12.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001651/0.4909, allocations: 0.5373 MB / 1.045 GB, free: 11.84 MB / 0.698 GB Notification: Performance of pre-optimization done (n=51): time 3.526e-06/0.4909, allocations: 0 / 1.045 GB, free: 11.84 MB / 0.698 GB Notification: Performance of matching and sorting (n=51): time 0.004287/0.4952, allocations: 1.153 MB / 1.046 GB, free: 10.68 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001807/0.4954, allocations: 285 kB / 1.046 GB, free: 10.34 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007402/0.4962, allocations: 392.7 kB / 1.046 GB, free: 9.953 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001149/0.4963, allocations: 53.69 kB / 1.046 GB, free: 9.895 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000222/0.4966, allocations: 208.9 kB / 1.047 GB, free: 9.688 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.4967, allocations: 122.4 kB / 1.047 GB, free: 9.566 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-05/0.4968, allocations: 12 kB / 1.047 GB, free: 9.555 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.497, allocations: 358.8 kB / 1.047 GB, free: 9.195 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.4982, allocations: 304.8 kB / 1.047 GB, free: 8.895 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.4996, allocations: 0.4901 MB / 1.048 GB, free: 8.332 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.5009, allocations: 379.5 kB / 1.048 GB, free: 7.957 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.5009, allocations: 0 / 1.048 GB, free: 7.957 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002908/0.5038, allocations: 0.8383 MB / 1.049 GB, free: 7.105 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007872/0.5047, allocations: 1.854 MB / 1.051 GB, free: 5.102 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.5047, allocations: 8 kB / 1.051 GB, free: 5.094 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.163e-05/0.5048, allocations: 8 kB / 1.051 GB, free: 5.086 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008007/0.5056, allocations: 111.8 kB / 1.051 GB, free: 4.977 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/0.5056, allocations: 8 kB / 1.051 GB, free: 4.969 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008454/0.5065, allocations: 107.6 kB / 1.051 GB, free: 4.863 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/0.5065, allocations: 28 kB / 1.051 GB, free: 4.836 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.5066, allocations: 14.08 kB / 1.051 GB, free: 4.824 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001929/0.5085, allocations: 0.6108 MB / 1.052 GB, free: 4.207 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.5085, allocations: 8 kB / 1.052 GB, free: 4.199 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.5086, allocations: 8 kB / 1.052 GB, free: 4.191 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005153/0.5091, allocations: 79.81 kB / 1.052 GB, free: 4.113 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/0.5091, allocations: 11.94 kB / 1.052 GB, free: 4.102 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006588/0.5098, allocations: 79.66 kB / 1.052 GB, free: 4.023 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.386e-05/0.5099, allocations: 24 kB / 1.052 GB, free: 4 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.0006551/0.5105, allocations: 361.5 kB / 1.052 GB, free: 3.637 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.5107, allocations: 51.39 kB / 1.052 GB, free: 3.586 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.5109, allocations: 59.47 kB / 1.052 GB, free: 3.523 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.5109, allocations: 8 kB / 1.052 GB, free: 3.516 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.5109, allocations: 4 kB / 1.052 GB, free: 3.512 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.511, allocations: 3.984 kB / 1.052 GB, free: 3.508 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004744/0.5157, allocations: 1.933 MB / 1.054 GB, free: 1.516 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.5158, allocations: 0 / 1.054 GB, free: 1.516 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/0.5163, allocations: 83.84 kB / 1.054 GB, free: 1.434 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-05/0.5164, allocations: 4 kB / 1.054 GB, free: 1.43 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.556e-05/0.5164, allocations: 11.98 kB / 1.054 GB, free: 1.418 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.5165, allocations: 4 kB / 1.054 GB, free: 1.414 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.5165, allocations: 8.453 kB / 1.054 GB, free: 1.406 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/0.5195, allocations: 1.338 MB / 1.056 GB, free: 16 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.5728/1.092, allocations: 128.4 kB / 1.056 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/1.093, allocations: 16.8 kB / 1.056 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/1.094, allocations: 119.5 kB / 1.056 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/1.094, allocations: 49.53 kB / 1.056 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.588e-05/1.094, allocations: 21.34 kB / 1.056 GB, free: 150.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0005666/1.095, allocations: 311.7 kB / 1.056 GB, free: 150.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.91e-07/1.095, allocations: 3.75 kB / 1.056 GB, free: 150.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001328/1.096, allocations: 189.4 kB / 1.056 GB, free: 150.8 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.0002812/1.096, allocations: 148.8 kB / 1.057 GB, free: 150.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00341/1.1, allocations: 1.14 MB / 1.058 GB, free: 150.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.1, allocations: 0 / 1.058 GB, free: 150.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001374/1.101, allocations: 405.7 kB / 1.058 GB, free: 150.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/1.102, allocations: 86.78 kB / 1.058 GB, free: 150.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/1.105, allocations: 1.138 MB / 1.059 GB, free: 150.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005937/1.106, allocations: 0.9241 MB / 1.06 GB, free: 149.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008912/1.107, allocations: 203.7 kB / 1.06 GB, free: 149.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/1.107, allocations: 40.14 kB / 1.06 GB, free: 149.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.342e-06/1.107, allocations: 1.75 kB / 1.06 GB, free: 149.5 MB / 0.698 GB Notification: Performance of Templates: time 0.02032/1.127, allocations: 6.084 MB / 1.066 GB, free: 149.3 MB / 0.698 GB