Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.42/1.42, allocations: 289.8 MB / 297.1 MB, free: 6.672 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.001017/0.001017, allocations: 177.3 kB / 366.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.082/1.082, allocations: 205.1 MB / 0.6256 GB, free: 5.828 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.0008468/0.0008471, allocations: 84.33 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1892/0.1901, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.448/0.6381, allocations: 116.3 MB / 0.9727 GB, free: 68.04 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.7857, allocations: 141.8 MB / 1.111 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.786, allocations: 97.03 kB / 1.111 GB, free: 6.57 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.0224/0.8084, allocations: 8.388 MB / 1.119 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.8084, allocations: 9.219 kB / 1.119 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.8085, allocations: 51.44 kB / 1.119 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.8091, allocations: 407.5 kB / 1.12 GB, free: 13.6 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.8091, allocations: 16 kB / 1.12 GB, free: 13.58 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.8092, allocations: 23.98 kB / 1.12 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006253/0.8098, allocations: 437.2 kB / 1.12 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007787/0.8106, allocations: 0.5293 MB / 1.121 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.8106, allocations: 8 kB / 1.121 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.15e-05/0.8107, allocations: 3.906 kB / 1.121 GB, free: 12.55 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.8107, allocations: 8 kB / 1.121 GB, free: 12.55 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.8129, allocations: 1.579 MB / 1.122 GB, free: 10.91 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008725/0.8137, allocations: 0.645 MB / 1.123 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.8141, allocations: 275.3 kB / 1.123 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.8141, allocations: 8 kB / 1.123 GB, free: 9.918 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005194/0.8147, allocations: 433.8 kB / 1.124 GB, free: 9.461 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=51): time 1.853e-06/0.8147, allocations: 0 / 1.124 GB, free: 9.461 MB / 0.7292 GB Notification: Performance of matching and sorting (n=51): time 0.0008213/0.8155, allocations: 0.5359 MB / 1.124 GB, free: 8.918 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.8157, allocations: 292.9 kB / 1.125 GB, free: 8.57 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.816, allocations: 323.4 kB / 1.125 GB, free: 8.246 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.806e-05/0.8161, allocations: 37.69 kB / 1.125 GB, free: 8.203 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.225e-05/0.8162, allocations: 164.7 kB / 1.125 GB, free: 8.039 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.8163, allocations: 118.5 kB / 1.125 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.8163, allocations: 8 kB / 1.125 GB, free: 7.914 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.8165, allocations: 359.4 kB / 1.125 GB, free: 7.555 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002819/0.8167, allocations: 205.2 kB / 1.126 GB, free: 7.352 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003994/0.8171, allocations: 394.5 kB / 1.126 GB, free: 6.898 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.8175, allocations: 249.8 kB / 1.126 GB, free: 6.656 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.8175, allocations: 0 / 1.126 GB, free: 6.656 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008012/0.8183, allocations: 0.5657 MB / 1.127 GB, free: 6.086 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006725/0.819, allocations: 1.833 MB / 1.129 GB, free: 4.109 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.819, allocations: 5.031 kB / 1.129 GB, free: 4.105 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.819, allocations: 8 kB / 1.129 GB, free: 4.098 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.8194, allocations: 108.2 kB / 1.129 GB, free: 3.992 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.8195, allocations: 11.98 kB / 1.129 GB, free: 3.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000438/0.8199, allocations: 91.72 kB / 1.129 GB, free: 3.891 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.8199, allocations: 23.98 kB / 1.129 GB, free: 3.867 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.484e-06/0.82, allocations: 7.906 kB / 1.129 GB, free: 3.859 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006501/0.8206, allocations: 464.2 kB / 1.129 GB, free: 3.406 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.8206, allocations: 4 kB / 1.129 GB, free: 3.402 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.8206, allocations: 8 kB / 1.129 GB, free: 3.395 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.8209, allocations: 79.81 kB / 1.129 GB, free: 3.316 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.8209, allocations: 12.69 kB / 1.129 GB, free: 3.305 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.8213, allocations: 55.95 kB / 1.129 GB, free: 3.25 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.313e-05/0.8213, allocations: 24 kB / 1.129 GB, free: 3.227 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.0001725/0.8215, allocations: 157 kB / 1.13 GB, free: 3.066 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.583e-05/0.8216, allocations: 47.44 kB / 1.13 GB, free: 3.02 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.832e-05/0.8217, allocations: 46.89 kB / 1.13 GB, free: 2.969 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.8217, allocations: 11.98 kB / 1.13 GB, free: 2.957 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.8217, allocations: 8 kB / 1.13 GB, free: 2.949 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.8217, allocations: 2.062 kB / 1.13 GB, free: 2.949 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.8236, allocations: 1.591 MB / 1.131 GB, free: 1.312 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.8236, allocations: 4 kB / 1.131 GB, free: 1.309 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.8239, allocations: 87.86 kB / 1.131 GB, free: 1.223 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.8239, allocations: 4.141 kB / 1.131 GB, free: 1.219 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.824, allocations: 7.984 kB / 1.131 GB, free: 1.211 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.824, allocations: 5.406 kB / 1.131 GB, free: 1.207 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.824, allocations: 3.906 kB / 1.131 GB, free: 1.203 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009098/0.8249, allocations: 1.056 MB / 1.132 GB, free: 100 kB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009918/0.8259, allocations: 1.44 MB / 1.134 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.515e-05/0.826, allocations: 124.5 kB / 1.134 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.939e-05/0.8261, allocations: 19.92 kB / 1.134 GB, free: 14.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007113/0.8268, allocations: 107.9 kB / 1.134 GB, free: 14.33 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.827, allocations: 47.92 kB / 1.134 GB, free: 14.29 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.702e-05/0.827, allocations: 16 kB / 1.134 GB, free: 14.27 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0002319/0.8272, allocations: 263 kB / 1.134 GB, free: 14.01 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.002009/0.8293, allocations: 167.6 kB / 1.135 GB, free: 13.85 MB / 0.7448 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.0001904/0.8294, allocations: 139.1 kB / 1.135 GB, free: 13.7 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001108/0.8306, allocations: 0.8515 MB / 1.136 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.8306, allocations: 0 / 1.136 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003998/0.831, allocations: 306.8 kB / 1.136 GB, free: 12.55 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006371/0.8316, allocations: 72.97 kB / 1.136 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.833, allocations: 0.7798 MB / 1.137 GB, free: 11.67 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005882/0.8336, allocations: 0.9722 MB / 1.138 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of SimCode: time 2.3e-07/0.8337, allocations: 0 / 1.138 GB, free: 10.67 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)