Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/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") 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.751/3.751, allocations: 251.1 MB / 266.7 MB, free: 11.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00239/0.00239, allocations: 175.5 kB / 326.2 MB, free: 2.875 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.051/4.051, allocations: 205.4 MB / 0.5772 GB, free: 20.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001479/0.001478, allocations: 95.91 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0008958/0.0008961, allocations: 11.47 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3419, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3593/0.7013, allocations: 135.2 MB / 1.031 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006204/0.702, allocations: 99.92 kB / 1.032 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06017/0.7622, allocations: 7.899 MB / 1.039 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.157e-06/0.7623, allocations: 0 / 1.039 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.221e-05/0.7624, allocations: 8 kB / 1.039 GB, free: 2.129 MB / 0.6823 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.005208/0.7676, allocations: 0.9426 MB / 1.04 GB, free: 1.125 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.086e-05/0.7677, allocations: 16.03 kB / 1.04 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003998/0.7681, allocations: 48.38 kB / 1.04 GB, free: 1.062 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.7698, allocations: 409 kB / 1.041 GB, free: 0.625 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.77, allocations: 33.36 kB / 1.041 GB, free: 0.5938 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/0.7703, allocations: 36.38 kB / 1.041 GB, free: 0.5586 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003646/0.7739, allocations: 0.6706 MB / 1.041 GB, free: 15.85 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.774, allocations: 192 / 1.041 GB, free: 15.85 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.7742, allocations: 19.92 kB / 1.041 GB, free: 15.83 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.768e-05/0.7743, allocations: 11.94 kB / 1.041 GB, free: 15.82 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00412/0.7784, allocations: 0.6144 MB / 1.042 GB, free: 15.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007714/0.7862, allocations: 1.673 MB / 1.044 GB, free: 13.46 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005681/0.7919, allocations: 0.9523 MB / 1.045 GB, free: 12.45 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002097/0.7941, allocations: 368.8 kB / 1.045 GB, free: 12.07 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/0.7943, allocations: 16 kB / 1.045 GB, free: 12.06 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002744/0.7971, allocations: 0.5411 MB / 1.045 GB, free: 11.49 MB / 0.698 GB Notification: Performance of pre-optimization done (n=51): time 7.093e-06/0.7972, allocations: 3.938 kB / 1.045 GB, free: 11.48 MB / 0.698 GB Notification: Performance of matching and sorting (n=51): time 0.007562/0.8047, allocations: 1.142 MB / 1.047 GB, free: 10.34 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003418/0.8051, allocations: 281 kB / 1.047 GB, free: 10 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001415/0.8066, allocations: 437.5 kB / 1.047 GB, free: 9.562 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002461/0.8069, allocations: 49.69 kB / 1.047 GB, free: 9.508 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003875/0.8073, allocations: 208.9 kB / 1.048 GB, free: 9.301 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003366/0.8077, allocations: 126.4 kB / 1.048 GB, free: 9.176 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-05/0.8078, allocations: 12 kB / 1.048 GB, free: 9.164 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000339/0.8081, allocations: 358.8 kB / 1.048 GB, free: 8.805 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001745/0.8099, allocations: 308.8 kB / 1.048 GB, free: 8.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002138/0.8121, allocations: 497.9 kB / 1.049 GB, free: 7.941 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/0.8143, allocations: 376 kB / 1.049 GB, free: 7.57 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.839e-05/0.8144, allocations: 3.938 kB / 1.049 GB, free: 7.566 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.004937/0.8194, allocations: 0.8305 MB / 1.05 GB, free: 6.723 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004455/0.8199, allocations: 255.8 kB / 1.05 GB, free: 6.398 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.666e-05/0.82, allocations: 8 kB / 1.05 GB, free: 6.391 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.689e-05/0.8201, allocations: 12 kB / 1.05 GB, free: 6.379 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.8212, allocations: 111.8 kB / 1.05 GB, free: 6.27 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.142e-05/0.8213, allocations: 15.92 kB / 1.05 GB, free: 6.254 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.8227, allocations: 107.6 kB / 1.05 GB, free: 6.148 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/0.823, allocations: 27.98 kB / 1.05 GB, free: 6.121 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.823, allocations: 7.938 kB / 1.05 GB, free: 6.113 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003074/0.8261, allocations: 0.6069 MB / 1.051 GB, free: 5.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.74e-05/0.8262, allocations: 4 kB / 1.051 GB, free: 5.496 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.053e-05/0.8262, allocations: 12 kB / 1.051 GB, free: 5.484 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.827, allocations: 75.81 kB / 1.051 GB, free: 5.41 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.192e-05/0.8271, allocations: 15.92 kB / 1.051 GB, free: 5.395 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.8282, allocations: 67.73 kB / 1.051 GB, free: 5.328 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.8284, allocations: 31.98 kB / 1.051 GB, free: 5.297 MB / 0.698 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.001117/0.8296, allocations: 361.5 kB / 1.052 GB, free: 4.934 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003264/0.8299, allocations: 51.38 kB / 1.052 GB, free: 4.883 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.8302, allocations: 59.47 kB / 1.052 GB, free: 4.828 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-05/0.8303, allocations: 11.98 kB / 1.052 GB, free: 4.816 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/0.8303, allocations: 4 kB / 1.052 GB, free: 4.812 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.8303, allocations: 0 / 1.052 GB, free: 4.812 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008425/0.8388, allocations: 1.922 MB / 1.054 GB, free: 2.832 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.182e-05/0.8389, allocations: 8 kB / 1.054 GB, free: 2.824 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009855/0.8399, allocations: 87.84 kB / 1.054 GB, free: 2.738 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.977e-05/0.8399, allocations: 4 kB / 1.054 GB, free: 2.734 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.8401, allocations: 11.98 kB / 1.054 GB, free: 2.723 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.065e-05/0.8401, allocations: 7.938 kB / 1.054 GB, free: 2.715 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.8401, allocations: 4 kB / 1.054 GB, free: 2.711 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005109/0.8453, allocations: 1.28 MB / 1.055 GB, free: 1.41 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003761/0.8457, allocations: 132.5 kB / 1.055 GB, free: 1.262 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.846, allocations: 19.98 kB / 1.055 GB, free: 1.242 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002143/0.8482, allocations: 131.7 kB / 1.055 GB, free: 1.113 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.8486, allocations: 47.88 kB / 1.055 GB, free: 1.066 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.8488, allocations: 19.98 kB / 1.055 GB, free: 1.047 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0009927/0.8498, allocations: 311.1 kB / 1.056 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.232e-06/0.8498, allocations: 0 / 1.056 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002561/0.8524, allocations: 187.7 kB / 1.056 GB, free: 0.5586 MB / 0.698 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.0005276/0.853, allocations: 151.3 kB / 1.056 GB, free: 412 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.8868/1.74, allocations: 1.14 MB / 1.057 GB, free: 150.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/1.74, allocations: 0 / 1.057 GB, free: 150.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0023/1.742, allocations: 395.5 kB / 1.057 GB, free: 150.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002515/1.745, allocations: 95.3 kB / 1.058 GB, free: 150.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/1.75, allocations: 1.141 MB / 1.059 GB, free: 150.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008175/1.75, allocations: 0.9182 MB / 1.06 GB, free: 149.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001346/1.752, allocations: 208.8 kB / 1.06 GB, free: 149.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/1.752, allocations: 38.12 kB / 1.06 GB, free: 149.7 MB / 0.698 GB Notification: Performance of SimCode: time 1.483e-06/1.752, allocations: 0 / 1.06 GB, free: 149.7 MB / 0.698 GB Notification: Performance of Templates: time 0.03372/1.786, allocations: 6.091 MB / 1.066 GB, free: 149.6 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)