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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 3.836/3.836, allocations: 432.7 MB / 445.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.966e-05, allocations: 4.891 kB / 0.5383 GB, free: 10.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1797, allocations: 98.73 MB / 0.6347 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.3778, allocations: 127.7 MB / 0.7594 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.3781, allocations: 91.92 kB / 0.7595 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03138/0.4095, allocations: 7.262 MB / 0.7666 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.039e-06/0.4096, allocations: 0 / 0.7666 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.527e-05/0.4096, allocations: 8 kB / 0.7666 GB, free: 10.63 MB / 0.6511 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.002248/0.4119, allocations: 0.8792 MB / 0.7674 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4119, allocations: 8.031 kB / 0.7675 GB, free: 9.695 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.4121, allocations: 51.34 kB / 0.7675 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007524/0.4129, allocations: 387.7 kB / 0.7679 GB, free: 9.223 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.268e-05/0.413, allocations: 24.78 kB / 0.7679 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-05/0.4131, allocations: 39.98 kB / 0.7679 GB, free: 9.16 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.4143, allocations: 0.5506 MB / 0.7685 GB, free: 8.57 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.4143, allocations: 0 / 0.7685 GB, free: 8.57 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-05/0.4144, allocations: 19.95 kB / 0.7685 GB, free: 8.551 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.4144, allocations: 8 kB / 0.7685 GB, free: 8.543 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000946/0.4154, allocations: 428.2 kB / 0.7689 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003565/0.419, allocations: 1.641 MB / 0.7705 GB, free: 6.414 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.4207, allocations: 0.7068 MB / 0.7712 GB, free: 5.652 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005665/0.4213, allocations: 269 kB / 0.7715 GB, free: 5.371 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.693e-05/0.4214, allocations: 8.438 kB / 0.7715 GB, free: 5.363 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008993/0.4223, allocations: 462.1 kB / 0.7719 GB, free: 4.883 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=51): time 3.959e-06/0.4223, allocations: 0 / 0.7719 GB, free: 4.883 MB / 0.6511 GB Notification: Performance of matching and sorting (n=51): time 0.001533/0.4238, allocations: 0.6218 MB / 0.7725 GB, free: 4.254 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000207/0.4241, allocations: 285 kB / 0.7728 GB, free: 3.914 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006138/0.4247, allocations: 379.5 kB / 0.7731 GB, free: 3.539 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.4248, allocations: 45.69 kB / 0.7732 GB, free: 3.488 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000214/0.425, allocations: 204.9 kB / 0.7734 GB, free: 3.281 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.4252, allocations: 118.5 kB / 0.7735 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.4253, allocations: 12 kB / 0.7735 GB, free: 3.152 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000216/0.4255, allocations: 358.8 kB / 0.7739 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004662/0.426, allocations: 201 kB / 0.774 GB, free: 2.598 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006563/0.4267, allocations: 394 kB / 0.7744 GB, free: 2.141 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005522/0.4272, allocations: 273.4 kB / 0.7747 GB, free: 1.867 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.6e-06/0.4272, allocations: 0 / 0.7747 GB, free: 1.867 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001464/0.4287, allocations: 0.6348 MB / 0.7753 GB, free: 1.219 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.4412/0.8699, allocations: 1.85 MB / 0.7771 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/0.87, allocations: 7.438 kB / 0.7771 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.572e-05/0.87, allocations: 7.719 kB / 0.7771 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006457/0.8707, allocations: 117.9 kB / 0.7772 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/0.8707, allocations: 8.312 kB / 0.7772 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006856/0.8714, allocations: 108.2 kB / 0.7773 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.427e-05/0.8715, allocations: 22.69 kB / 0.7774 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.8715, allocations: 7.75 kB / 0.7774 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001443/0.873, allocations: 0.5478 MB / 0.7779 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.873, allocations: 4.344 kB / 0.7779 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.8731, allocations: 9.344 kB / 0.7779 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.8735, allocations: 77.59 kB / 0.778 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.645e-05/0.8735, allocations: 8.562 kB / 0.778 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.874, allocations: 74.2 kB / 0.7781 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.582e-05/0.8741, allocations: 29.78 kB / 0.7781 GB, free: 138.2 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.0002584/0.8744, allocations: 185.4 kB / 0.7783 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.8745, allocations: 51.47 kB / 0.7783 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.8747, allocations: 55.58 kB / 0.7784 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.8747, allocations: 7.031 kB / 0.7784 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.8e-06/0.8747, allocations: 2.188 kB / 0.7784 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.8747, allocations: 3.484 kB / 0.7784 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.8779, allocations: 1.727 MB / 0.7801 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.232e-06/0.8779, allocations: 1.25 kB / 0.7801 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.8784, allocations: 89.41 kB / 0.7802 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.8784, allocations: 3.344 kB / 0.7802 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.8785, allocations: 17.06 kB / 0.7802 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.938e-06/0.8785, allocations: 6.766 kB / 0.7802 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.709e-06/0.8785, allocations: 1.719 kB / 0.7802 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.8801, allocations: 1.142 MB / 0.7813 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.8803, allocations: 126.5 kB / 0.7814 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.8804, allocations: 19.53 kB / 0.7814 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.8814, allocations: 124.1 kB / 0.7816 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.8816, allocations: 48.61 kB / 0.7816 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.264e-05/0.8817, allocations: 19.69 kB / 0.7816 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0006159/0.8824, allocations: 301.4 kB / 0.7819 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.053e-06/0.8824, allocations: 2.625 kB / 0.7819 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001327/0.8837, allocations: 180.7 kB / 0.7821 GB, free: 136.6 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.0002598/0.884, allocations: 156.9 kB / 0.7822 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002138/0.8862, allocations: 0.927 MB / 0.7832 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.78e-06/0.8862, allocations: 1.312 kB / 0.7832 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006712/0.8869, allocations: 297.6 kB / 0.7834 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008516/0.8877, allocations: 66.56 kB / 0.7835 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.8896, allocations: 0.7656 MB / 0.7842 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.8902, allocations: 0.9204 MB / 0.7851 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000901/0.8911, allocations: 291.2 kB / 0.7854 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.8912, allocations: 40.81 kB / 0.7855 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of SimCode: time 1.999e-06/0.8913, allocations: 0 / 0.7855 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of Templates: time 0.01772/0.909, allocations: 6.478 MB / 0.7918 GB, free: 135.1 MB / 0.6511 GB