Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.295/1.295, allocations: 285.5 MB / 292.8 MB, free: 10.49 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000871/0.0008709, allocations: 177.2 kB / 361.1 MB, free: 7.109 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9771/0.9771, allocations: 205.1 MB / 0.6195 GB, free: 10.32 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007932/0.0007933, allocations: 94.75 kB / 0.7325 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.169/0.1698, allocations: 121.5 MB / 0.8512 GB, free: 2.895 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.5673, allocations: 115.3 MB / 0.9638 GB, free: 78.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1271/0.6944, allocations: 140.8 MB / 1.101 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.6947, allocations: 88.69 kB / 1.101 GB, free: 15.16 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.02097/0.7156, allocations: 8.399 MB / 1.11 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.7157, allocations: 8.5 kB / 1.11 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.7158, allocations: 51.44 kB / 1.11 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/0.7163, allocations: 399.5 kB / 1.11 GB, free: 6.277 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.7164, allocations: 19.98 kB / 1.11 GB, free: 6.258 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.7164, allocations: 24 kB / 1.11 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005958/0.717, allocations: 429.3 kB / 1.11 GB, free: 5.816 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006803/0.7177, allocations: 0.541 MB / 1.111 GB, free: 5.238 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.7177, allocations: 0 / 1.111 GB, free: 5.238 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.7178, allocations: 7.906 kB / 1.111 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.7178, allocations: 13.23 kB / 1.111 GB, free: 5.219 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.7199, allocations: 1.571 MB / 1.113 GB, free: 3.59 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008066/0.7207, allocations: 0.6522 MB / 1.113 GB, free: 2.883 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003097/0.721, allocations: 274.3 kB / 1.113 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.721, allocations: 11.98 kB / 1.113 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004693/0.7215, allocations: 421.7 kB / 1.114 GB, free: 2.145 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=51): time 1.934e-06/0.7215, allocations: 4 kB / 1.114 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of matching and sorting (n=51): time 0.0007848/0.7223, allocations: 0.5415 MB / 1.114 GB, free: 1.594 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.776e-05/0.7224, allocations: 289 kB / 1.115 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.7227, allocations: 323.4 kB / 1.115 GB, free: 0.9258 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.936e-05/0.7228, allocations: 37.69 kB / 1.115 GB, free: 0.8828 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.7229, allocations: 168.6 kB / 1.115 GB, free: 0.7109 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 9.312e-05/0.723, allocations: 118.5 kB / 1.115 GB, free: 0.5938 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.723, allocations: 0 / 1.115 GB, free: 0.5938 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.7231, allocations: 362.7 kB / 1.116 GB, free: 236 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.7234, allocations: 206.5 kB / 1.116 GB, free: 32 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003615/0.7237, allocations: 393.6 kB / 1.116 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.724, allocations: 247.8 kB / 1.116 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.7241, allocations: 0 / 1.116 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000765/0.7248, allocations: 0.5761 MB / 1.117 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004926/0.7253, allocations: 1.825 MB / 1.119 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.7253, allocations: 8.438 kB / 1.119 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.7254, allocations: 9.5 kB / 1.119 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.7258, allocations: 107.8 kB / 1.119 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.7258, allocations: 14.05 kB / 1.119 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/0.7262, allocations: 87.7 kB / 1.119 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.65e-05/0.7263, allocations: 20 kB / 1.119 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.173e-06/0.7263, allocations: 7.906 kB / 1.119 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006184/0.7269, allocations: 459.4 kB / 1.119 GB, free: 12.09 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.7269, allocations: 8.312 kB / 1.119 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.789e-06/0.7269, allocations: 11.98 kB / 1.119 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.7272, allocations: 75.83 kB / 1.12 GB, free: 12 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.7272, allocations: 11.94 kB / 1.12 GB, free: 11.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.7275, allocations: 55.8 kB / 1.12 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.7276, allocations: 20 kB / 1.12 GB, free: 11.91 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.0001488/0.7277, allocations: 162.8 kB / 1.12 GB, free: 11.75 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.122e-05/0.7278, allocations: 51.61 kB / 1.12 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.98e-05/0.7279, allocations: 50.88 kB / 1.12 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.7279, allocations: 8 kB / 1.12 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.7279, allocations: 0 / 1.12 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.7279, allocations: 4 kB / 1.12 GB, free: 11.63 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.7296, allocations: 1.602 MB / 1.121 GB, free: 9.988 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.7296, allocations: 4 kB / 1.121 GB, free: 9.984 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.7299, allocations: 75.88 kB / 1.122 GB, free: 9.91 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.7299, allocations: 4 kB / 1.122 GB, free: 9.906 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.73, allocations: 25.23 kB / 1.122 GB, free: 9.883 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.73, allocations: 0 / 1.122 GB, free: 9.883 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.73, allocations: 7.906 kB / 1.122 GB, free: 9.875 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007924/0.7308, allocations: 1.049 MB / 1.123 GB, free: 8.777 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008546/0.7317, allocations: 1.435 MB / 1.124 GB, free: 7.289 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.7318, allocations: 120.5 kB / 1.124 GB, free: 7.152 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.042e-05/0.7318, allocations: 15.98 kB / 1.124 GB, free: 7.137 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006841/0.7325, allocations: 107.9 kB / 1.124 GB, free: 7.031 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.454e-05/0.7326, allocations: 47.92 kB / 1.124 GB, free: 6.984 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.678e-05/0.7327, allocations: 26.17 kB / 1.124 GB, free: 6.961 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002005/0.7329, allocations: 251 kB / 1.125 GB, free: 6.719 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001817/0.7347, allocations: 163.6 kB / 1.125 GB, free: 6.559 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.0001638/0.7349, allocations: 155 kB / 1.125 GB, free: 6.398 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001008/0.7359, allocations: 0.8514 MB / 1.126 GB, free: 5.535 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7359, allocations: 8.125 kB / 1.126 GB, free: 5.527 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003773/0.7363, allocations: 295.7 kB / 1.126 GB, free: 5.238 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005773/0.7369, allocations: 68.77 kB / 1.126 GB, free: 5.176 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.7382, allocations: 0.7963 MB / 1.127 GB, free: 4.34 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005139/0.7387, allocations: 0.9642 MB / 1.128 GB, free: 3.348 MB / 0.7292 GB Notification: Performance of SimCode: time 3.01e-07/0.7387, allocations: 0 / 1.128 GB, free: 3.348 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)