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 2.684/2.684, allocations: 287.9 MB / 302.9 MB, free: 8.242 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002511/0.002511, allocations: 177.1 kB / 371.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.957/1.957, allocations: 205.4 MB / 0.6301 GB, free: 10.38 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 84.56 kB / 0.7434 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.0004792, allocations: 15.41 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.196, allocations: 115.3 MB / 0.9788 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.002127/0.1982, allocations: 1.689 MB / 0.9804 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.1994, allocations: 0.6559 MB / 0.9811 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.1995, allocations: 7.938 kB / 0.9811 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 4.596e-05/0.1995, allocations: 15.86 kB / 0.9811 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.1997, allocations: 27.94 kB / 0.9811 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/0.2001, allocations: 97.75 kB / 0.9812 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.2004, allocations: 307.4 kB / 0.9815 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002576/0.2007, allocations: 188 kB / 0.9817 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.2009, allocations: 159.3 kB / 0.9818 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.2011, allocations: 179 kB / 0.982 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.596e-05/0.2012, allocations: 19.94 kB / 0.982 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.2012, allocations: 16 kB / 0.982 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.148e-05/0.2013, allocations: 75.66 kB / 0.9821 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.248e-05/0.2014, allocations: 105.5 kB / 0.9822 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000431/0.2019, allocations: 0.5108 MB / 0.9827 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.59e-06/0.2019, allocations: 0 / 0.9827 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.788e-06/0.2019, allocations: 0 / 0.9827 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.2019, allocations: 0 / 0.9827 GB, free: 24.12 MB / 0.6198 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.00214/0.2041, allocations: 0.9429 MB / 0.9836 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2041, allocations: 12.02 kB / 0.9836 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.2043, allocations: 55.39 kB / 0.9837 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005493/0.2048, allocations: 394.7 kB / 0.9841 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.425e-05/0.2049, allocations: 28.98 kB / 0.9841 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.386e-05/0.205, allocations: 40 kB / 0.9841 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.2064, allocations: 0.6896 MB / 0.9848 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.2064, allocations: 3.938 kB / 0.9848 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.2065, allocations: 12 kB / 0.9848 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.2065, allocations: 12 kB / 0.9848 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.2081, allocations: 0.6339 MB / 0.9854 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002839/0.2109, allocations: 1.672 MB / 0.9871 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.2133, allocations: 0.9486 MB / 0.988 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.896e-05/0.2133, allocations: 16.41 kB / 0.988 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.2145, allocations: 0.549 MB / 0.9886 GB, free: 17.83 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=51): time 4.021e-06/0.2145, allocations: 0 / 0.9886 GB, free: 17.83 MB / 0.6198 GB Notification: Performance of matching and sorting (n=51): time 0.002936/0.2174, allocations: 1.148 MB / 0.9897 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.356e-05/0.2176, allocations: 277 kB / 0.9899 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.2181, allocations: 441.5 kB / 0.9904 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.32e-05/0.2182, allocations: 45.69 kB / 0.9904 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.2184, allocations: 212.9 kB / 0.9906 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.2185, allocations: 126.4 kB / 0.9907 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.2185, allocations: 8 kB / 0.9907 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.415e-05/0.2186, allocations: 366.8 kB / 0.9911 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007862/0.2194, allocations: 304.8 kB / 0.9914 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008635/0.2203, allocations: 497.8 kB / 0.9918 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008256/0.2212, allocations: 379.1 kB / 0.9922 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.655e-06/0.2212, allocations: 0 / 0.9922 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001952/0.2231, allocations: 0.8422 MB / 0.993 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003892/0.2236, allocations: 1.862 MB / 0.9949 GB, free: 11.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.2236, allocations: 4 kB / 0.9949 GB, free: 11.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.2236, allocations: 12 kB / 0.9949 GB, free: 11.03 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.2241, allocations: 115.8 kB / 0.995 GB, free: 10.92 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.2241, allocations: 8 kB / 0.995 GB, free: 10.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005747/0.2247, allocations: 115.6 kB / 0.9951 GB, free: 10.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.226e-05/0.2248, allocations: 27.98 kB / 0.9951 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.2248, allocations: 4 kB / 0.9951 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001332/0.2262, allocations: 0.61 MB / 0.9957 GB, free: 10.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2262, allocations: 4 kB / 0.9957 GB, free: 10.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.2262, allocations: 12 kB / 0.9957 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.2266, allocations: 79.81 kB / 0.9958 GB, free: 10.06 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.2266, allocations: 15.89 kB / 0.9958 GB, free: 10.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.2271, allocations: 75.62 kB / 0.9959 GB, free: 9.969 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.2272, allocations: 24 kB / 0.9959 GB, free: 9.945 MB / 0.6198 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.0004476/0.2276, allocations: 365.5 kB / 0.9963 GB, free: 9.578 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2278, allocations: 47.53 kB / 0.9963 GB, free: 9.531 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.2279, allocations: 51.47 kB / 0.9964 GB, free: 9.473 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.321e-06/0.2279, allocations: 12 kB / 0.9964 GB, free: 9.461 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.2279, allocations: 3.953 kB / 0.9964 GB, free: 9.457 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.2279, allocations: 11.92 kB / 0.9964 GB, free: 9.445 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004254/0.2322, allocations: 1.939 MB / 0.9983 GB, free: 7.445 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.2322, allocations: 8 kB / 0.9983 GB, free: 7.438 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003925/0.2327, allocations: 87.84 kB / 0.9984 GB, free: 7.352 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.2327, allocations: 4 kB / 0.9984 GB, free: 7.348 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.169e-05/0.2327, allocations: 11.98 kB / 0.9984 GB, free: 7.336 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.461e-06/0.2328, allocations: 4 kB / 0.9984 GB, free: 7.332 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.026e-06/0.2328, allocations: 8 kB / 0.9984 GB, free: 7.324 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.2348, allocations: 1.332 MB / 0.9997 GB, free: 5.945 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.2349, allocations: 140.4 kB / 0.9998 GB, free: 5.789 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.2351, allocations: 19.98 kB / 0.9999 GB, free: 5.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/0.2361, allocations: 119.8 kB / 1 GB, free: 5.652 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.2362, allocations: 43.94 kB / 1 GB, free: 5.609 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.783e-05/0.2363, allocations: 23.98 kB / 1 GB, free: 5.586 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003718/0.2367, allocations: 315.1 kB / 1 GB, free: 5.285 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.675e-06/0.2367, allocations: 0 / 1 GB, free: 5.285 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001144/0.2378, allocations: 187.6 kB / 1.001 GB, free: 5.102 MB / 0.6198 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.0002002/0.238, allocations: 139.2 kB / 1.001 GB, free: 4.957 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002533/0.2406, allocations: 1.152 MB / 1.002 GB, free: 3.777 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.3e-06/0.2406, allocations: 0 / 1.002 GB, free: 3.777 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.2417, allocations: 399.8 kB / 1.002 GB, free: 3.387 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008861/0.2426, allocations: 85.77 kB / 1.002 GB, free: 3.301 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.2448, allocations: 1.138 MB / 1.003 GB, free: 2.125 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.2452, allocations: 0.9215 MB / 1.004 GB, free: 1.18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0005624/0.2458, allocations: 195.9 kB / 1.004 GB, free: 0.9844 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.246, allocations: 39.44 kB / 1.004 GB, free: 0.9453 MB / 0.6198 GB Notification: Performance of SimCode: time 1.541e-06/0.246, allocations: 0 / 1.004 GB, free: 0.9453 MB / 0.6198 GB Notification: Performance of Templates: time 0.01532/0.2613, allocations: 6.076 MB / 1.01 GB, free: 10.92 MB / 0.6355 GB