Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.259/1.259, allocations: 249.4 MB / 256.7 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001292/0.001292, allocations: 177.2 kB / 316 MB, free: 3.5 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.234/1.234, allocations: 205.1 MB / 0.5667 GB, free: 15.57 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.0008546/0.0008546, allocations: 85.98 kB / 0.671 GB, free: 4.695 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3569/0.3578, allocations: 112.5 MB / 0.7808 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.5371, allocations: 106.3 MB / 0.8847 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5315/1.069, allocations: 135.6 MB / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/1.069, allocations: 91.88 kB / 1.017 GB, free: 2.852 MB / 0.6355 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.02444/1.093, allocations: 8.391 MB / 1.025 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/1.093, allocations: 8.938 kB / 1.025 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/1.094, allocations: 59.34 kB / 1.025 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005767/1.094, allocations: 406.7 kB / 1.026 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/1.094, allocations: 19.36 kB / 1.026 GB, free: 11.13 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.139e-05/1.094, allocations: 27.92 kB / 1.026 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006144/1.095, allocations: 430 kB / 1.026 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007718/1.096, allocations: 0.5341 MB / 1.027 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/1.096, allocations: 7.984 kB / 1.027 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/1.096, allocations: 3.438 kB / 1.027 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/1.096, allocations: 11.94 kB / 1.027 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/1.098, allocations: 1.568 MB / 1.028 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009058/1.099, allocations: 0.641 MB / 1.029 GB, free: 8.355 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/1.099, allocations: 288.1 kB / 1.029 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.668e-05/1.099, allocations: 12.17 kB / 1.029 GB, free: 8.109 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005202/1.1, allocations: 433.1 kB / 1.03 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=51): time 1.913e-06/1.1, allocations: 0 / 1.03 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of matching and sorting (n=51): time 0.0008599/1.101, allocations: 0.5361 MB / 1.03 GB, free: 7.305 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/1.101, allocations: 292.2 kB / 1.03 GB, free: 6.965 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/1.101, allocations: 325.9 kB / 1.031 GB, free: 6.695 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6e-05/1.101, allocations: 36.83 kB / 1.031 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/1.101, allocations: 167 kB / 1.031 GB, free: 6.504 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/1.102, allocations: 123.8 kB / 1.031 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/1.102, allocations: 0 / 1.031 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001256/1.102, allocations: 357.5 kB / 1.031 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002672/1.102, allocations: 205.9 kB / 1.032 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/1.102, allocations: 392.8 kB / 1.032 GB, free: 5.539 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/1.103, allocations: 241.5 kB / 1.032 GB, free: 5.363 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.103, allocations: 0 / 1.032 GB, free: 5.363 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007847/1.103, allocations: 0.5742 MB / 1.033 GB, free: 4.895 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006896/1.104, allocations: 1.829 MB / 1.035 GB, free: 2.957 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.104, allocations: 4 kB / 1.035 GB, free: 2.953 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/1.104, allocations: 11.98 kB / 1.035 GB, free: 2.941 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/1.105, allocations: 107.7 kB / 1.035 GB, free: 2.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/1.105, allocations: 8 kB / 1.035 GB, free: 2.832 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/1.105, allocations: 83.77 kB / 1.035 GB, free: 2.75 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/1.105, allocations: 23.81 kB / 1.035 GB, free: 2.73 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/1.105, allocations: 4 kB / 1.035 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006727/1.106, allocations: 474.8 kB / 1.035 GB, free: 2.363 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/1.106, allocations: 4 kB / 1.035 GB, free: 2.359 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/1.106, allocations: 8 kB / 1.035 GB, free: 2.352 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/1.106, allocations: 83.64 kB / 1.035 GB, free: 2.273 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/1.106, allocations: 11.98 kB / 1.035 GB, free: 2.262 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/1.106, allocations: 51.81 kB / 1.035 GB, free: 2.211 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/1.107, allocations: 23.36 kB / 1.035 GB, free: 2.191 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.0001782/1.107, allocations: 167.2 kB / 1.036 GB, free: 2.031 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.956e-05/1.107, allocations: 47.47 kB / 1.036 GB, free: 1.984 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/1.107, allocations: 50.77 kB / 1.036 GB, free: 1.949 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/1.107, allocations: 8 kB / 1.036 GB, free: 1.941 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/1.107, allocations: 4 kB / 1.036 GB, free: 1.938 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/1.107, allocations: 7.891 kB / 1.036 GB, free: 1.93 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/1.109, allocations: 1.597 MB / 1.037 GB, free: 0.5273 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.109, allocations: 0 / 1.037 GB, free: 0.5273 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/1.109, allocations: 87.23 kB / 1.037 GB, free: 456 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/1.109, allocations: 4 kB / 1.037 GB, free: 452 kB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/1.109, allocations: 11.86 kB / 1.037 GB, free: 444 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/1.109, allocations: 4 kB / 1.037 GB, free: 440 kB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.109, allocations: 0 / 1.037 GB, free: 440 kB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009155/1.11, allocations: 1.054 MB / 1.038 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009555/1.111, allocations: 1.444 MB / 1.04 GB, free: 14.06 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/1.111, allocations: 116.6 kB / 1.04 GB, free: 13.93 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.786e-05/1.111, allocations: 19.45 kB / 1.04 GB, free: 13.91 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006923/1.112, allocations: 107.3 kB / 1.04 GB, free: 13.81 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/1.112, allocations: 46.44 kB / 1.04 GB, free: 13.77 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/1.112, allocations: 19.42 kB / 1.04 GB, free: 13.76 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0002339/1.112, allocations: 257 kB / 1.04 GB, free: 13.55 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002045/1.115, allocations: 167.5 kB / 1.041 GB, free: 13.39 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.0002259/1.115, allocations: 149 kB / 1.041 GB, free: 13.24 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001166/1.116, allocations: 0.8532 MB / 1.041 GB, free: 12.57 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/1.116, allocations: 0 / 1.041 GB, free: 12.57 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004281/1.116, allocations: 298.2 kB / 1.042 GB, free: 12.35 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006882/1.117, allocations: 74.33 kB / 1.042 GB, free: 12.29 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/1.119, allocations: 0.7778 MB / 1.043 GB, free: 11.57 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006629/1.119, allocations: 0.9626 MB / 1.044 GB, free: 10.61 MB / 0.6667 GB Notification: Performance of SimCode: time 3.31e-07/1.119, allocations: 0 / 1.044 GB, free: 10.61 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)