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.983/4.983, allocations: 0.5623 GB / 0.5775 GB, free: 3.32 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002527/0.002527, allocations: 355.8 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.332/4.332, allocations: 410.7 MB / 1.113 GB, free: 5.91 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001878/0.001877, allocations: 186.6 kB / 1.226 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005336/0.0005341, allocations: 16 kB / 1.349 GB, free: 8.27 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8241/0.8247, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2174/1.042, allocations: 141.5 MB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003581/1.043, allocations: 101.6 kB / 1.6 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.03289/1.076, allocations: 7.872 MB / 1.607 GB, free: 134.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 3.366e-06/1.076, allocations: 0 / 1.607 GB, free: 134.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.491e-05/1.076, allocations: 11.94 kB / 1.607 GB, free: 134.8 MB / 0.8542 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.002882/1.079, allocations: 0.9425 MB / 1.608 GB, free: 133.8 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.079, allocations: 11.62 kB / 1.608 GB, free: 133.8 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/1.079, allocations: 59.33 kB / 1.608 GB, free: 133.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007726/1.08, allocations: 391.8 kB / 1.609 GB, free: 133.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.689e-05/1.08, allocations: 33.61 kB / 1.609 GB, free: 133.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.42e-05/1.08, allocations: 36.84 kB / 1.609 GB, free: 133.3 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/1.082, allocations: 0.6729 MB / 1.609 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/1.082, allocations: 0 / 1.609 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.399e-05/1.082, allocations: 16.5 kB / 1.609 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/1.082, allocations: 11.95 kB / 1.609 GB, free: 132.5 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/1.084, allocations: 0.6116 MB / 1.61 GB, free: 131.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00376/1.088, allocations: 1.677 MB / 1.612 GB, free: 130.2 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0031/1.091, allocations: 0.9528 MB / 1.613 GB, free: 129.2 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/1.092, allocations: 368.6 kB / 1.613 GB, free: 128.8 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 6.205e-05/1.092, allocations: 13.25 kB / 1.613 GB, free: 128.8 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001466/1.094, allocations: 0.5506 MB / 1.613 GB, free: 128.3 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=51): time 3.286e-06/1.094, allocations: 1.375 kB / 1.613 GB, free: 128.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=51): time 0.003868/1.098, allocations: 1.139 MB / 1.615 GB, free: 127.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/1.098, allocations: 287.6 kB / 1.615 GB, free: 126.8 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006644/1.099, allocations: 437.5 kB / 1.615 GB, free: 126.4 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0001063/1.099, allocations: 49.69 kB / 1.615 GB, free: 126.3 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.000172/1.099, allocations: 200.9 kB / 1.616 GB, free: 126.1 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/1.099, allocations: 130.5 kB / 1.616 GB, free: 126 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/1.099, allocations: 14.41 kB / 1.616 GB, free: 126 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001067/1.099, allocations: 358.8 kB / 1.616 GB, free: 125.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/1.1, allocations: 308.6 kB / 1.616 GB, free: 125.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/1.102, allocations: 497.8 kB / 1.617 GB, free: 124.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/1.103, allocations: 368 kB / 1.617 GB, free: 124.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/1.103, allocations: 0 / 1.617 GB, free: 124.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002601/1.105, allocations: 0.8529 MB / 1.618 GB, free: 123.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001672/1.106, allocations: 256.1 kB / 1.618 GB, free: 123.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/1.106, allocations: 5.281 kB / 1.618 GB, free: 123.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/1.106, allocations: 12 kB / 1.618 GB, free: 123.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006929/1.106, allocations: 113.7 kB / 1.618 GB, free: 123.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/1.106, allocations: 12.5 kB / 1.618 GB, free: 123.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000809/1.107, allocations: 103.5 kB / 1.618 GB, free: 123 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-05/1.107, allocations: 24 kB / 1.618 GB, free: 123 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/1.107, allocations: 4 kB / 1.618 GB, free: 123 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001704/1.109, allocations: 0.6172 MB / 1.619 GB, free: 122.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.109, allocations: 6.188 kB / 1.619 GB, free: 122.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/1.109, allocations: 9.734 kB / 1.619 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/1.11, allocations: 75.81 kB / 1.619 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/1.11, allocations: 11.94 kB / 1.619 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006453/1.11, allocations: 83.88 kB / 1.619 GB, free: 122.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.082e-05/1.11, allocations: 20 kB / 1.619 GB, free: 122.2 MB / 0.8542 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.0005678/1.111, allocations: 359.6 kB / 1.62 GB, free: 121.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/1.111, allocations: 47.52 kB / 1.62 GB, free: 121.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001454/1.111, allocations: 60 kB / 1.62 GB, free: 121.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/1.111, allocations: 5.062 kB / 1.62 GB, free: 121.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.111, allocations: 4 kB / 1.62 GB, free: 121.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/1.111, allocations: 3.984 kB / 1.62 GB, free: 121.7 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/1.115, allocations: 1.939 MB / 1.622 GB, free: 119.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.106e-06/1.115, allocations: 1.344 kB / 1.622 GB, free: 119.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005877/1.116, allocations: 94.33 kB / 1.622 GB, free: 119.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.42e-05/1.116, allocations: 4 kB / 1.622 GB, free: 119.6 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/1.116, allocations: 15.92 kB / 1.622 GB, free: 119.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/1.116, allocations: 7.938 kB / 1.622 GB, free: 119.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.116, allocations: 7.062 kB / 1.622 GB, free: 119.6 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002607/1.119, allocations: 1.268 MB / 1.623 GB, free: 118.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/1.119, allocations: 134 kB / 1.623 GB, free: 118.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/1.119, allocations: 19.98 kB / 1.623 GB, free: 118.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/1.12, allocations: 122.5 kB / 1.623 GB, free: 118 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/1.12, allocations: 55.86 kB / 1.623 GB, free: 118 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.017e-05/1.121, allocations: 16 kB / 1.623 GB, free: 117.9 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0004639/1.121, allocations: 307.1 kB / 1.624 GB, free: 117.7 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.11e-07/1.121, allocations: 0 / 1.624 GB, free: 117.7 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001223/1.122, allocations: 191.7 kB / 1.624 GB, free: 117.5 MB / 0.8542 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.0002688/1.123, allocations: 142.5 kB / 1.624 GB, free: 117.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.003409/1.126, allocations: 1.153 MB / 1.625 GB, free: 116.2 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/1.126, allocations: 0 / 1.625 GB, free: 116.2 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.001322/1.127, allocations: 392.7 kB / 1.625 GB, free: 115.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/1.129, allocations: 102.5 kB / 1.626 GB, free: 115.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/1.132, allocations: 1.154 MB / 1.627 GB, free: 114.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004629/1.132, allocations: 0.9176 MB / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0008159/1.133, allocations: 212.9 kB / 1.628 GB, free: 113.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/1.133, allocations: 35.44 kB / 1.628 GB, free: 113.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.413e-06/1.133, allocations: 0 / 1.628 GB, free: 113.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.0167/1.15, allocations: 6.084 MB / 1.634 GB, free: 107.4 MB / 0.8542 GB