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.288/2.288, allocations: 251.1 MB / 266.1 MB, free: 11.63 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.001523/0.001523, allocations: 183.4 kB / 325.6 MB, free: 2.828 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.348/2.348, allocations: 205.4 MB / 0.5766 GB, free: 20.77 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.001122/0.001122, allocations: 88.28 kB / 0.6811 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004573/0.0004574, allocations: 9.531 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2243, allocations: 106.3 MB / 0.8989 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.002602/0.2269, allocations: 1.69 MB / 0.9005 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2284, allocations: 0.6674 MB / 0.9012 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.2286, allocations: 3.938 kB / 0.9012 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 5.782e-05/0.2287, allocations: 11.86 kB / 0.9012 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.2289, allocations: 39.8 kB / 0.9013 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.2293, allocations: 91.83 kB / 0.9013 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005217/0.2299, allocations: 307.4 kB / 0.9016 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004599/0.2303, allocations: 192 kB / 0.9018 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000409/0.2308, allocations: 159.3 kB / 0.902 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003379/0.2311, allocations: 179 kB / 0.9021 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.732e-05/0.2312, allocations: 16 kB / 0.9022 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.594e-05/0.2314, allocations: 16 kB / 0.9022 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.2315, allocations: 71.67 kB / 0.9022 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.2317, allocations: 97.45 kB / 0.9023 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0008464/0.2325, allocations: 0.5147 MB / 0.9028 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2326, allocations: 0 / 0.9028 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.186e-06/0.2326, allocations: 0 / 0.9028 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.18e-05/0.2326, allocations: 0 / 0.9028 GB, free: 61.41 MB / 0.6042 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.004659/0.2373, allocations: 0.9507 MB / 0.9038 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.2374, allocations: 12.03 kB / 0.9038 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00031/0.2377, allocations: 63.28 kB / 0.9038 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.2388, allocations: 398.7 kB / 0.9042 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.881e-05/0.239, allocations: 28.98 kB / 0.9042 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.2391, allocations: 36 kB / 0.9043 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003055/0.2422, allocations: 0.6896 MB / 0.9049 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.2423, allocations: 0 / 0.9049 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.2424, allocations: 15.98 kB / 0.905 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.2425, allocations: 8 kB / 0.905 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003594/0.2461, allocations: 0.6367 MB / 0.9056 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005857/0.252, allocations: 1.673 MB / 0.9072 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005036/0.2571, allocations: 0.9408 MB / 0.9081 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.669e-05/0.2573, allocations: 19.97 kB / 0.9082 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002372/0.2597, allocations: 0.5449 MB / 0.9087 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=51): time 6.442e-06/0.2597, allocations: 0 / 0.9087 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=51): time 0.00613/0.2659, allocations: 1.141 MB / 0.9098 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.2661, allocations: 289 kB / 0.9101 GB, free: 53.63 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009733/0.2671, allocations: 441.5 kB / 0.9105 GB, free: 53.2 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001777/0.2673, allocations: 45.69 kB / 0.9106 GB, free: 53.14 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.2676, allocations: 212.8 kB / 0.9108 GB, free: 52.93 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.2678, allocations: 126.8 kB / 0.9109 GB, free: 52.81 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-05/0.2679, allocations: 12 kB / 0.9109 GB, free: 52.8 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2681, allocations: 362.8 kB / 0.9112 GB, free: 52.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.2698, allocations: 308.8 kB / 0.9115 GB, free: 52.13 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/0.2718, allocations: 0.4986 MB / 0.912 GB, free: 51.56 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003075/0.275, allocations: 357.4 kB / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/0.275, allocations: 4 kB / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002803/0.2778, allocations: 0.8382 MB / 0.9132 GB, free: 50.35 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004384/0.2783, allocations: 1.866 MB / 0.915 GB, free: 48.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.2784, allocations: 4 kB / 0.915 GB, free: 48.33 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.2784, allocations: 12 kB / 0.915 GB, free: 48.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007536/0.2792, allocations: 107.8 kB / 0.9151 GB, free: 48.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.2792, allocations: 11.94 kB / 0.9151 GB, free: 48.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008213/0.28, allocations: 111.6 kB / 0.9152 GB, free: 48.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.076e-05/0.2801, allocations: 20 kB / 0.9153 GB, free: 48.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.2801, allocations: 4 kB / 0.9153 GB, free: 48.07 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0021/0.2823, allocations: 0.6212 MB / 0.9159 GB, free: 47.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/0.2823, allocations: 4 kB / 0.9159 GB, free: 47.44 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.704e-05/0.2824, allocations: 15.98 kB / 0.9159 GB, free: 47.42 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008011/0.2832, allocations: 75.81 kB / 0.916 GB, free: 47.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.405e-05/0.2833, allocations: 12.25 kB / 0.916 GB, free: 47.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.2843, allocations: 79.69 kB / 0.916 GB, free: 47.26 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.816e-05/0.2845, allocations: 24 kB / 0.9161 GB, free: 47.23 MB / 0.6042 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.0009796/0.2854, allocations: 360.8 kB / 0.9164 GB, free: 46.87 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003428/0.2858, allocations: 51.42 kB / 0.9165 GB, free: 46.82 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000329/0.2862, allocations: 55.47 kB / 0.9165 GB, free: 46.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/0.2862, allocations: 11.95 kB / 0.9165 GB, free: 46.75 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.836e-05/0.2863, allocations: 4 kB / 0.9165 GB, free: 46.75 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.268e-05/0.2863, allocations: 3.984 kB / 0.9165 GB, free: 46.74 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007899/0.2942, allocations: 1.941 MB / 0.9184 GB, free: 44.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/0.2943, allocations: 0 / 0.9184 GB, free: 44.74 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008613/0.2952, allocations: 95.84 kB / 0.9185 GB, free: 44.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.464e-05/0.2952, allocations: 4 kB / 0.9185 GB, free: 44.64 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.2954, allocations: 15.98 kB / 0.9185 GB, free: 44.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.2954, allocations: 3.938 kB / 0.9185 GB, free: 44.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.2954, allocations: 7.984 kB / 0.9185 GB, free: 44.62 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004302/0.2997, allocations: 1.334 MB / 0.9199 GB, free: 43.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.3, allocations: 128.5 kB / 0.92 GB, free: 43.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.3003, allocations: 19.98 kB / 0.92 GB, free: 43.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002008/0.3024, allocations: 123.8 kB / 0.9201 GB, free: 42.95 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003132/0.3027, allocations: 47.94 kB / 0.9202 GB, free: 42.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.3029, allocations: 27.86 kB / 0.9202 GB, free: 42.87 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0007145/0.3036, allocations: 311.1 kB / 0.9205 GB, free: 42.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.162e-06/0.3037, allocations: 0 / 0.9205 GB, free: 42.57 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00212/0.3058, allocations: 187.6 kB / 0.9207 GB, free: 42.38 MB / 0.6042 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.0003725/0.3062, allocations: 143.2 kB / 0.9208 GB, free: 42.24 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.005384/0.3116, allocations: 1.147 MB / 0.9219 GB, free: 41.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/0.3117, allocations: 0 / 0.9219 GB, free: 41.07 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002188/0.3139, allocations: 394.5 kB / 0.9223 GB, free: 40.68 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001665/0.3156, allocations: 87.28 kB / 0.9224 GB, free: 40.6 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004344/0.32, allocations: 1.142 MB / 0.9235 GB, free: 39.42 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006574/0.3208, allocations: 0.9176 MB / 0.9244 GB, free: 38.47 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001225/0.322, allocations: 191.4 kB / 0.9246 GB, free: 38.29 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.3224, allocations: 43.42 kB / 0.9246 GB, free: 38.24 MB / 0.6042 GB Notification: Performance of SimCode: time 1.924e-06/0.3224, allocations: 0 / 0.9246 GB, free: 38.24 MB / 0.6042 GB Notification: Performance of Templates: time 0.0205/0.3429, allocations: 6.071 MB / 0.9305 GB, free: 32.21 MB / 0.6042 GB