Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.108/2.108, allocations: 284.9 MB / 292.2 MB, free: 10.7 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.001571/0.00157, allocations: 185.2 kB / 360.4 MB, free: 7.488 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.625/1.625, allocations: 205.1 MB / 0.6188 GB, free: 12.4 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001203/0.001202, allocations: 89.64 kB / 0.7318 GB, free: 44.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/8.155e-06, allocations: 0 / 0.8503 GB, free: 3.84 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5445/0.5445, allocations: 115.2 MB / 0.9628 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2062/0.7507, allocations: 140.7 MB / 1.1 GB, free: 108 kB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/0.7511, allocations: 92.83 kB / 1.1 GB, free: 16 kB / 0.698 GB Notification: Performance of FrontEnd: time 0.03387/0.785, allocations: 7.501 MB / 1.108 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.491e-05/0.7851, allocations: 8 kB / 1.108 GB, free: 8.566 MB / 0.7136 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.002841/0.788, allocations: 0.8765 MB / 1.108 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.788, allocations: 10 kB / 1.108 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.7882, allocations: 51.44 kB / 1.108 GB, free: 7.574 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008511/0.789, allocations: 407.5 kB / 1.109 GB, free: 7.137 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.7891, allocations: 16 kB / 1.109 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.811e-05/0.7892, allocations: 23.98 kB / 1.109 GB, free: 7.098 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001228/0.7904, allocations: 434.4 kB / 1.109 GB, free: 6.676 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.7917, allocations: 0.5371 MB / 1.11 GB, free: 6.102 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.7917, allocations: 4 kB / 1.11 GB, free: 6.098 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.415e-05/0.7918, allocations: 3.906 kB / 1.11 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.7919, allocations: 8 kB / 1.11 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003679/0.7955, allocations: 1.575 MB / 1.111 GB, free: 4.453 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.7971, allocations: 0.6557 MB / 1.112 GB, free: 3.746 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006285/0.7978, allocations: 278.2 kB / 1.112 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.981e-05/0.7978, allocations: 4 kB / 1.112 GB, free: 3.453 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009396/0.7988, allocations: 430.7 kB / 1.113 GB, free: 3.004 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=51): time 2.875e-06/0.7988, allocations: 0 / 1.113 GB, free: 3.004 MB / 0.7136 GB Notification: Performance of matching and sorting (n=51): time 0.001452/0.8003, allocations: 0.5398 MB / 1.113 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.8004, allocations: 297 kB / 1.114 GB, free: 2.105 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/0.801, allocations: 323.4 kB / 1.114 GB, free: 1.781 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.8011, allocations: 41.69 kB / 1.114 GB, free: 1.734 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.8012, allocations: 164.7 kB / 1.114 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.8014, allocations: 118.5 kB / 1.114 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.8015, allocations: 0 / 1.114 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.8016, allocations: 362.7 kB / 1.115 GB, free: 1.086 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005287/0.8022, allocations: 205.2 kB / 1.115 GB, free: 0.8867 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006843/0.8029, allocations: 397.6 kB / 1.115 GB, free: 436 kB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/0.8035, allocations: 239.8 kB / 1.115 GB, free: 196 kB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.8035, allocations: 0 / 1.115 GB, free: 196 kB / 0.7136 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001463/0.805, allocations: 0.5778 MB / 1.116 GB, free: 15.61 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006568/0.8056, allocations: 1.834 MB / 1.118 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.8057, allocations: 4 kB / 1.118 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.8057, allocations: 8 kB / 1.118 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/0.8065, allocations: 111.8 kB / 1.118 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-05/0.8065, allocations: 15.92 kB / 1.118 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008138/0.8073, allocations: 79.78 kB / 1.118 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.381e-05/0.8074, allocations: 23.98 kB / 1.118 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.8074, allocations: 7.906 kB / 1.118 GB, free: 13.39 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001177/0.8086, allocations: 460.8 kB / 1.118 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.8086, allocations: 4 kB / 1.118 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.8087, allocations: 8 kB / 1.118 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005171/0.8092, allocations: 84.38 kB / 1.118 GB, free: 12.85 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.8092, allocations: 8 kB / 1.118 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006013/0.8098, allocations: 55.8 kB / 1.118 GB, free: 12.79 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/0.8099, allocations: 20 kB / 1.119 GB, free: 12.77 MB / 0.7292 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 () * 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.0002651/0.8102, allocations: 162.7 kB / 1.119 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.8103, allocations: 47.44 kB / 1.119 GB, free: 12.55 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.8105, allocations: 46.89 kB / 1.119 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.8105, allocations: 8 kB / 1.119 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.8105, allocations: 7.984 kB / 1.119 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.8106, allocations: 96 / 1.119 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.8137, allocations: 1.603 MB / 1.12 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.8137, allocations: 3.75 kB / 1.12 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006055/0.8143, allocations: 83.86 kB / 1.12 GB, free: 10.76 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.8143, allocations: 7.938 kB / 1.12 GB, free: 10.75 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.544e-05/0.8144, allocations: 13.61 kB / 1.12 GB, free: 10.74 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.8144, allocations: 4 kB / 1.12 GB, free: 10.74 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.8144, allocations: 11.84 kB / 1.12 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00147/0.8159, allocations: 1.05 MB / 1.121 GB, free: 9.629 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.8161, allocations: 112.6 kB / 1.122 GB, free: 9.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.8162, allocations: 15.98 kB / 1.122 GB, free: 9.484 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.8175, allocations: 107.8 kB / 1.122 GB, free: 9.379 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.8177, allocations: 55.92 kB / 1.122 GB, free: 9.324 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-05/0.8178, allocations: 15.98 kB / 1.122 GB, free: 9.309 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0003956/0.8182, allocations: 251.1 kB / 1.122 GB, free: 9.066 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00126/0.8194, allocations: 167.5 kB / 1.122 GB, free: 8.902 MB / 0.7292 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) * 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.0002628/0.8197, allocations: 155.2 kB / 1.122 GB, free: 8.742 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002049/0.8218, allocations: 0.8494 MB / 1.123 GB, free: 7.883 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.8218, allocations: 0 / 1.123 GB, free: 7.883 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0007513/0.8225, allocations: 291.7 kB / 1.123 GB, free: 7.598 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.8236, allocations: 69.31 kB / 1.123 GB, free: 7.535 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.8259, allocations: 0.7962 MB / 1.124 GB, free: 6.695 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008441/0.8268, allocations: 0.9647 MB / 1.125 GB, free: 5.703 MB / 0.7292 GB Notification: Performance of SimCode: time 1.052e-06/0.8268, allocations: 0 / 1.125 GB, free: 5.703 MB / 0.7292 GB Notification: Performance of Templates: time 0.0211/0.8479, allocations: 7.939 MB / 1.133 GB, free: 13.91 MB / 0.7448 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)