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") [: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 7.0.1/package.mo): time 2.027/2.027, allocations: 253.1 MB / 260.4 MB, free: 7.48 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001666/0.001666, allocations: 185.2 kB / 319.6 MB, free: 3.32 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 1.882/1.882, allocations: 205.4 MB / 0.5704 GB, free: 15.05 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.001317/0.001317, allocations: 86.7 kB / 0.6746 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.336e-05/1.352e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1982, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6407/0.8389, allocations: 135.3 MB / 1.02 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004029/0.8393, allocations: 89.5 kB / 1.02 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.04487/0.8842, allocations: 7.526 MB / 1.028 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.029e-05/0.8843, allocations: 11.94 kB / 1.028 GB, free: 12.62 MB / 0.6511 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.00304/0.8874, allocations: 0.8751 MB / 1.029 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.8874, allocations: 12.03 kB / 1.029 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.8876, allocations: 55.34 kB / 1.029 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009262/0.8886, allocations: 397 kB / 1.029 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.252e-05/0.8886, allocations: 19.91 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.8887, allocations: 27.17 kB / 1.029 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001214/0.89, allocations: 428 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.8913, allocations: 0.5444 MB / 1.03 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.8914, allocations: 0 / 1.03 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.8914, allocations: 4 kB / 1.03 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.8915, allocations: 8 kB / 1.03 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003907/0.8954, allocations: 1.571 MB / 1.031 GB, free: 9.055 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.897, allocations: 0.65 MB / 1.032 GB, free: 8.492 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006471/0.8977, allocations: 276.3 kB / 1.032 GB, free: 8.27 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.337e-05/0.8978, allocations: 8 kB / 1.032 GB, free: 8.262 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009075/0.8987, allocations: 427.4 kB / 1.033 GB, free: 7.902 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=51): time 5.931e-06/0.8987, allocations: 0 / 1.033 GB, free: 7.902 MB / 0.6511 GB Notification: Performance of matching and sorting (n=51): time 0.001643/0.9004, allocations: 0.5446 MB / 1.033 GB, free: 7.461 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000189/0.9006, allocations: 287.3 kB / 1.034 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005838/0.9012, allocations: 327.3 kB / 1.034 GB, free: 6.855 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.106e-05/0.9013, allocations: 37.69 kB / 1.034 GB, free: 6.812 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.9014, allocations: 164.7 kB / 1.034 GB, free: 6.664 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.9016, allocations: 127.8 kB / 1.034 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.9017, allocations: 3.938 kB / 1.034 GB, free: 6.555 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.9019, allocations: 357.8 kB / 1.035 GB, free: 6.215 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005445/0.9024, allocations: 203.4 kB / 1.035 GB, free: 6.074 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000747/0.9032, allocations: 389.9 kB / 1.035 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006255/0.9038, allocations: 253.7 kB / 1.035 GB, free: 5.512 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.9038, allocations: 0 / 1.035 GB, free: 5.512 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001527/0.9054, allocations: 0.5771 MB / 1.036 GB, free: 5.039 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008684/0.9063, allocations: 1.829 MB / 1.038 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.9063, allocations: 8 kB / 1.038 GB, free: 3.094 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.367e-05/0.9064, allocations: 11.91 kB / 1.038 GB, free: 3.082 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008199/0.9072, allocations: 103.4 kB / 1.038 GB, free: 2.984 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.191e-05/0.9072, allocations: 11.98 kB / 1.038 GB, free: 2.973 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008643/0.9081, allocations: 83.78 kB / 1.038 GB, free: 2.891 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.007e-05/0.9082, allocations: 27.3 kB / 1.038 GB, free: 2.867 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.9082, allocations: 4 kB / 1.038 GB, free: 2.863 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001211/0.9094, allocations: 458.9 kB / 1.038 GB, free: 2.512 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.9094, allocations: 4 kB / 1.038 GB, free: 2.508 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.9095, allocations: 8 kB / 1.038 GB, free: 2.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005208/0.91, allocations: 86.5 kB / 1.039 GB, free: 2.422 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.91, allocations: 11.94 kB / 1.039 GB, free: 2.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.9107, allocations: 55.8 kB / 1.039 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.426e-05/0.9108, allocations: 22.5 kB / 1.039 GB, free: 2.336 MB / 0.6511 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.0003238/0.9111, allocations: 160.5 kB / 1.039 GB, free: 2.18 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.9112, allocations: 43.53 kB / 1.039 GB, free: 2.137 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.9114, allocations: 51.27 kB / 1.039 GB, free: 2.102 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.9115, allocations: 11.98 kB / 1.039 GB, free: 2.09 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.9115, allocations: 0 / 1.039 GB, free: 2.09 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.9115, allocations: 4 kB / 1.039 GB, free: 2.086 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00318/0.9147, allocations: 1.6 MB / 1.04 GB, free: 0.6797 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.9147, allocations: 4 kB / 1.04 GB, free: 0.6758 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006322/0.9154, allocations: 83.86 kB / 1.041 GB, free: 0.5938 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/0.9154, allocations: 4 kB / 1.041 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.157e-05/0.9155, allocations: 11.61 kB / 1.041 GB, free: 0.582 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.076e-06/0.9155, allocations: 4 kB / 1.041 GB, free: 0.5781 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.555e-06/0.9155, allocations: 4 kB / 1.041 GB, free: 0.5742 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001655/0.9172, allocations: 1.056 MB / 1.042 GB, free: 15.58 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.9173, allocations: 116.5 kB / 1.042 GB, free: 15.45 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.9175, allocations: 15.67 kB / 1.042 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.9188, allocations: 103.9 kB / 1.042 GB, free: 15.34 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.919, allocations: 53.55 kB / 1.042 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.565e-05/0.9191, allocations: 19.11 kB / 1.042 GB, free: 15.28 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0004278/0.9195, allocations: 251.8 kB / 1.042 GB, free: 15.08 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001304/0.9208, allocations: 175.4 kB / 1.042 GB, free: 14.91 MB / 0.6667 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.0002834/0.9211, allocations: 142.5 kB / 1.042 GB, free: 14.77 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002131/0.9233, allocations: 0.8584 MB / 1.043 GB, free: 14.09 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.9233, allocations: 0 / 1.043 GB, free: 14.09 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000798/0.9241, allocations: 298.5 kB / 1.044 GB, free: 13.87 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.9252, allocations: 70.44 kB / 1.044 GB, free: 13.81 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.9277, allocations: 0.7787 MB / 1.044 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009958/0.9287, allocations: 0.9644 MB / 1.045 GB, free: 12.13 MB / 0.6667 GB Notification: Performance of SimCode: time 1.052e-06/0.9288, allocations: 3.938 kB / 1.045 GB, free: 12.13 MB / 0.6667 GB Notification: Performance of Templates: time 0.02397/0.9527, allocations: 7.932 MB / 1.053 GB, free: 4.246 MB / 0.6667 GB