Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.824/4.824, allocations: 0.5623 GB / 0.5769 GB, free: 66.94 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002515/0.002515, allocations: 364.3 kB / 0.644 GB, free: 21.63 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.123/4.123, allocations: 410.7 MB / 1.112 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001801/0.001801, allocations: 180.9 kB / 1.225 GB, free: 11.72 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.0005117/0.0005122, allocations: 14.88 kB / 1.348 GB, free: 320.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1625, allocations: 115.3 MB / 1.461 GB, free: 220.7 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.002018/0.1646, allocations: 1.701 MB / 1.462 GB, free: 219 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.1657, allocations: 0.6509 MB / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1658, allocations: 7.938 kB / 1.463 GB, free: 218.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 4.469e-05/0.1659, allocations: 11.86 kB / 1.463 GB, free: 218.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.166, allocations: 24.91 kB / 1.463 GB, free: 218.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.1664, allocations: 96.41 kB / 1.463 GB, free: 218.2 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.1668, allocations: 482.6 kB / 1.464 GB, free: 217.7 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.1671, allocations: 195.2 kB / 1.464 GB, free: 217.6 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.1674, allocations: 155.2 kB / 1.464 GB, free: 217.4 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.1675, allocations: 179.7 kB / 1.464 GB, free: 217.2 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 5.584e-05/0.1676, allocations: 16.75 kB / 1.464 GB, free: 217.2 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.454e-05/0.1677, allocations: 16 kB / 1.464 GB, free: 217.2 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.92e-05/0.1678, allocations: 73.05 kB / 1.464 GB, free: 217.1 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.1679, allocations: 97.45 kB / 1.464 GB, free: 217 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.1683, allocations: 0.5186 MB / 1.465 GB, free: 216.5 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.494e-06/0.1684, allocations: 0 / 1.465 GB, free: 216.5 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.04e-06/0.1684, allocations: 0.5938 kB / 1.465 GB, free: 216.5 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.558e-05/0.1684, allocations: 0.625 kB / 1.465 GB, free: 216.5 MB / 0.8073 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.002072/0.1705, allocations: 0.9448 MB / 1.466 GB, free: 215.5 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1705, allocations: 12.75 kB / 1.466 GB, free: 215.5 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.1707, allocations: 51.39 kB / 1.466 GB, free: 215.5 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005649/0.1713, allocations: 406.6 kB / 1.466 GB, free: 215 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.295e-05/0.1713, allocations: 29 kB / 1.466 GB, free: 215 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.873e-05/0.1714, allocations: 36.48 kB / 1.466 GB, free: 215 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.1728, allocations: 0.6845 MB / 1.467 GB, free: 214.3 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.1728, allocations: 4.594 kB / 1.467 GB, free: 214.3 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.353e-05/0.1729, allocations: 23.52 kB / 1.467 GB, free: 214.2 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1729, allocations: 11.94 kB / 1.467 GB, free: 214.2 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.1745, allocations: 0.625 MB / 1.468 GB, free: 213.6 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00294/0.1775, allocations: 1.683 MB / 1.469 GB, free: 211.9 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.1799, allocations: 0.9506 MB / 1.47 GB, free: 210.9 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008706/0.1808, allocations: 365.2 kB / 1.471 GB, free: 210.5 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/0.1809, allocations: 21.52 kB / 1.471 GB, free: 210.5 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.182, allocations: 0.544 MB / 1.471 GB, free: 209.9 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=51): time 4.753e-06/0.1821, allocations: 0.7188 kB / 1.471 GB, free: 209.9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=51): time 0.002858/0.1849, allocations: 1.145 MB / 1.472 GB, free: 208.8 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.593e-05/0.1851, allocations: 281 kB / 1.472 GB, free: 208.5 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005318/0.1856, allocations: 442.1 kB / 1.473 GB, free: 208 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.698e-05/0.1857, allocations: 49.69 kB / 1.473 GB, free: 208 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.1859, allocations: 203 kB / 1.473 GB, free: 207.8 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.186, allocations: 130.4 kB / 1.473 GB, free: 207.6 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.1861, allocations: 8 kB / 1.473 GB, free: 207.6 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.192e-05/0.1862, allocations: 362.8 kB / 1.474 GB, free: 207.3 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007585/0.1869, allocations: 309.5 kB / 1.474 GB, free: 207 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008374/0.1878, allocations: 497.5 kB / 1.474 GB, free: 206.4 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008106/0.1886, allocations: 373 kB / 1.475 GB, free: 206.1 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.888e-06/0.1886, allocations: 0 / 1.475 GB, free: 206.1 MB / 0.8073 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001947/0.1906, allocations: 0.8444 MB / 1.476 GB, free: 205.2 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.1907, allocations: 253.8 kB / 1.476 GB, free: 204.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1908, allocations: 4 kB / 1.476 GB, free: 204.9 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.739e-05/0.1908, allocations: 15.94 kB / 1.476 GB, free: 204.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.1913, allocations: 116.7 kB / 1.476 GB, free: 204.8 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.1913, allocations: 11.94 kB / 1.476 GB, free: 204.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000572/0.1919, allocations: 114.7 kB / 1.476 GB, free: 204.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/0.192, allocations: 20.16 kB / 1.476 GB, free: 204.6 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.925e-06/0.192, allocations: 7.938 kB / 1.476 GB, free: 204.6 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001338/0.1934, allocations: 0.6133 MB / 1.477 GB, free: 204 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.235e-06/0.1934, allocations: 4 kB / 1.477 GB, free: 204 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1934, allocations: 8 kB / 1.477 GB, free: 204 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.1938, allocations: 86.22 kB / 1.477 GB, free: 203.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.1938, allocations: 8 kB / 1.477 GB, free: 203.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.1943, allocations: 76.5 kB / 1.477 GB, free: 203.8 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/0.1943, allocations: 31.94 kB / 1.477 GB, free: 203.8 MB / 0.8073 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.0004413/0.1948, allocations: 366 kB / 1.477 GB, free: 203.4 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.1949, allocations: 47.52 kB / 1.477 GB, free: 203.4 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.1951, allocations: 55.47 kB / 1.477 GB, free: 203.3 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.465e-06/0.1951, allocations: 8 kB / 1.477 GB, free: 203.3 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.123e-06/0.1951, allocations: 0 / 1.477 GB, free: 203.3 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.1951, allocations: 7.984 kB / 1.477 GB, free: 203.3 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003464/0.1986, allocations: 1.938 MB / 1.479 GB, free: 201.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.495e-06/0.1986, allocations: 4 kB / 1.479 GB, free: 201.3 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/0.1991, allocations: 91.84 kB / 1.479 GB, free: 201.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.823e-06/0.1991, allocations: 4 kB / 1.479 GB, free: 201.2 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.519e-05/0.1992, allocations: 11.98 kB / 1.479 GB, free: 201.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-06/0.1992, allocations: 11.89 kB / 1.479 GB, free: 201.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.326e-06/0.1992, allocations: 4 kB / 1.479 GB, free: 201.2 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.2012, allocations: 1.27 MB / 1.481 GB, free: 199.9 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.2013, allocations: 132.5 kB / 1.481 GB, free: 199.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.2014, allocations: 16 kB / 1.481 GB, free: 199.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009016/0.2024, allocations: 127.7 kB / 1.481 GB, free: 199.6 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.2025, allocations: 51.92 kB / 1.481 GB, free: 199.6 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.137e-05/0.2026, allocations: 27.98 kB / 1.481 GB, free: 199.5 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0003592/0.203, allocations: 303.1 kB / 1.481 GB, free: 199.2 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7.67e-07/0.203, allocations: 0 / 1.481 GB, free: 199.2 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001202/0.2042, allocations: 183.7 kB / 1.481 GB, free: 199.1 MB / 0.8073 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.0001978/0.2044, allocations: 158.5 kB / 1.482 GB, free: 198.9 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.00253/0.207, allocations: 1.147 MB / 1.483 GB, free: 197.7 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.067e-06/0.207, allocations: 4 kB / 1.483 GB, free: 197.7 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.208, allocations: 395.1 kB / 1.483 GB, free: 197.3 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.2094, allocations: 91.11 kB / 1.483 GB, free: 197.3 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.2116, allocations: 1.138 MB / 1.484 GB, free: 196.1 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.212, allocations: 0.9215 MB / 1.485 GB, free: 195.1 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0006313/0.2127, allocations: 207.3 kB / 1.485 GB, free: 194.9 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.2128, allocations: 35.44 kB / 1.485 GB, free: 194.9 MB / 0.8073 GB Notification: Performance of SimCode: time 1.728e-06/0.2129, allocations: 0 / 1.485 GB, free: 194.9 MB / 0.8073 GB Notification: Performance of Templates: time 0.01328/0.2262, allocations: 6.091 MB / 1.491 GB, free: 188.9 MB / 0.8073 GB