Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadModel(Buildings): time 4.093/4.093, allocations: 433.3 MB / 440.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.859e-05, allocations: 0 / 0.5325 GB, free: 1.867 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5045/0.5046, allocations: 98.72 MB / 0.6289 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.6979, allocations: 127 MB / 0.7529 GB, free: 0.5547 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.6982, allocations: 95.88 kB / 0.753 GB, free: 472 kB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.02911/0.7273, allocations: 7.206 MB / 0.7601 GB, free: 9.191 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.209e-06/0.7274, allocations: 0 / 0.7601 GB, free: 9.191 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.676e-05/0.7274, allocations: 8 kB / 0.7601 GB, free: 9.184 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002149/0.7296, allocations: 0.8685 MB / 0.7609 GB, free: 8.266 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.7296, allocations: 12.02 kB / 0.7609 GB, free: 8.254 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.7298, allocations: 55.42 kB / 0.761 GB, free: 8.199 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006928/0.7305, allocations: 375.8 kB / 0.7613 GB, free: 7.789 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/0.7306, allocations: 15.98 kB / 0.7614 GB, free: 7.773 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.017e-05/0.7307, allocations: 27.94 kB / 0.7614 GB, free: 7.746 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008921/0.7316, allocations: 405.6 kB / 0.7618 GB, free: 7.352 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.7326, allocations: 0.5196 MB / 0.7623 GB, free: 6.797 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.7327, allocations: 0 / 0.7623 GB, free: 6.797 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/0.7327, allocations: 7.984 kB / 0.7623 GB, free: 6.789 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.7328, allocations: 11.98 kB / 0.7623 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003196/0.736, allocations: 1.559 MB / 0.7638 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.7375, allocations: 0.6873 MB / 0.7645 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004844/0.738, allocations: 261 kB / 0.7647 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.603e-05/0.7381, allocations: 11.97 kB / 0.7648 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008299/0.7389, allocations: 441.4 kB / 0.7652 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=51): time 3.78e-06/0.7389, allocations: 0 / 0.7652 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of matching and sorting (n=51): time 0.001385/0.7403, allocations: 0.6062 MB / 0.7658 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001941/0.7405, allocations: 285 kB / 0.766 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.741, allocations: 313 kB / 0.7663 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.606e-05/0.7411, allocations: 38.12 kB / 0.7664 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.7413, allocations: 208.7 kB / 0.7666 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.7415, allocations: 118.5 kB / 0.7667 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.7416, allocations: 0 / 0.7667 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002067/0.7418, allocations: 358.7 kB / 0.767 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/0.7422, allocations: 197 kB / 0.7672 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005893/0.7428, allocations: 385 kB / 0.7676 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.7433, allocations: 227.5 kB / 0.7678 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.377e-06/0.7433, allocations: 4 kB / 0.7678 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001258/0.7446, allocations: 0.559 MB / 0.7684 GB, free: 256 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001042/0.7457, allocations: 1.865 MB / 0.7702 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.7457, allocations: 4.156 kB / 0.7702 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.7457, allocations: 15.94 kB / 0.7702 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.7463, allocations: 111.8 kB / 0.7703 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/0.7463, allocations: 11.98 kB / 0.7703 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006044/0.747, allocations: 87.8 kB / 0.7704 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.515e-05/0.747, allocations: 24 kB / 0.7704 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.539e-06/0.7471, allocations: 0 / 0.7704 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001041/0.7481, allocations: 471.3 kB / 0.7709 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.7481, allocations: 4 kB / 0.7709 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.7482, allocations: 11.95 kB / 0.7709 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.7485, allocations: 76.38 kB / 0.771 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.7486, allocations: 19.88 kB / 0.771 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.7491, allocations: 55.78 kB / 0.771 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.948e-05/0.7491, allocations: 24 kB / 0.7711 GB, free: 13.34 MB / 0.6511 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.000288/0.7494, allocations: 172.9 kB / 0.7712 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.7496, allocations: 39.53 kB / 0.7713 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.7497, allocations: 46.95 kB / 0.7713 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.7498, allocations: 11.95 kB / 0.7713 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.142e-06/0.7498, allocations: 0 / 0.7713 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.7498, allocations: 3.984 kB / 0.7713 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.7526, allocations: 1.635 MB / 0.7729 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.7527, allocations: 7.984 kB / 0.7729 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004432/0.7531, allocations: 87.84 kB / 0.773 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.2e-05/0.7532, allocations: 4 kB / 0.773 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.7532, allocations: 15.98 kB / 0.773 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.978e-06/0.7532, allocations: 4 kB / 0.773 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.62e-06/0.7533, allocations: 0 / 0.773 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.7548, allocations: 1.112 MB / 0.7741 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.755, allocations: 124.6 kB / 0.7742 GB, free: 9.957 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.826e-05/0.7551, allocations: 7.984 kB / 0.7742 GB, free: 9.949 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00096/0.7561, allocations: 119.8 kB / 0.7744 GB, free: 9.832 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.7562, allocations: 51.92 kB / 0.7744 GB, free: 9.781 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.7563, allocations: 16 kB / 0.7744 GB, free: 9.766 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003616/0.7567, allocations: 244.5 kB / 0.7747 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.113e-06/0.7567, allocations: 0 / 0.7747 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001234/0.7579, allocations: 167.5 kB / 0.7748 GB, free: 9.359 MB / 0.6511 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.0002679/0.7582, allocations: 152.5 kB / 0.775 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001749/0.76, allocations: 0.8799 MB / 0.7758 GB, free: 8.297 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.174e-06/0.76, allocations: 0 / 0.7758 GB, free: 8.297 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006056/0.7606, allocations: 279.7 kB / 0.7761 GB, free: 8.023 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008347/0.7615, allocations: 65.31 kB / 0.7761 GB, free: 7.961 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.7635, allocations: 0.7414 MB / 0.7769 GB, free: 7.18 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000721/0.7642, allocations: 0.9178 MB / 0.7778 GB, free: 6.234 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008672/0.7651, allocations: 269.2 kB / 0.778 GB, free: 5.969 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.7653, allocations: 35.44 kB / 0.7781 GB, free: 5.934 MB / 0.6511 GB Notification: Performance of SimCode: time 3.936e-06/0.7653, allocations: 0 / 0.7781 GB, free: 5.934 MB / 0.6511 GB Notification: Performance of Templates: time 0.01528/0.7806, allocations: 5.628 MB / 0.7836 GB, free: 360 kB / 0.6511 GB