Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_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 10.0.0-master/package.mo): time 1.765/1.765, allocations: 390.4 MB / 397.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 180.7 kB / 490.8 MB, free: 11.14 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.108/1.108, allocations: 221.4 MB / 0.7863 GB, free: 13.51 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008351/0.0008351, allocations: 93.42 kB / 0.9264 GB, free: 4.484 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2235/0.2243, allocations: 149.2 MB / 1.072 GB, free: 15.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5026/0.7269, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.8688, allocations: 152.6 MB / 1.361 GB, free: 38.96 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001459/0.869, allocations: 75.89 kB / 1.361 GB, free: 38.88 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.0463/0.9153, allocations: 21.15 MB / 1.381 GB, free: 17.88 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.9153, allocations: 12 kB / 1.381 GB, free: 17.87 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003501/0.9157, allocations: 168.6 kB / 1.382 GB, free: 17.71 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009371/0.9167, allocations: 0.6658 MB / 1.382 GB, free: 17 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.242e-05/0.9167, allocations: 51.98 kB / 1.382 GB, free: 16.95 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.9169, allocations: 87.98 kB / 1.382 GB, free: 16.86 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001237/0.9181, allocations: 0.7196 MB / 1.383 GB, free: 16.14 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.9196, allocations: 0.9537 MB / 1.384 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.9196, allocations: 0 / 1.384 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.457e-05/0.9197, allocations: 7.984 kB / 1.384 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.9197, allocations: 28 kB / 1.384 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003913/0.9236, allocations: 2.907 MB / 1.387 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.9247, allocations: 0.7265 MB / 1.388 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004027/0.9251, allocations: 309.2 kB / 1.388 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.155e-05/0.9252, allocations: 21.02 kB / 1.388 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006193/0.9258, allocations: 0.5112 MB / 1.388 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=105): time 3.136e-06/0.9258, allocations: 3.938 kB / 1.388 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of matching and sorting (n=105): time 0.001082/0.9269, allocations: 0.7136 MB / 1.389 GB, free: 9.809 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.927, allocations: 263.9 kB / 1.389 GB, free: 9.496 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005072/0.9275, allocations: 0.5343 MB / 1.39 GB, free: 8.957 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.755e-05/0.9276, allocations: 37.69 kB / 1.39 GB, free: 8.914 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.9278, allocations: 435.8 kB / 1.39 GB, free: 8.48 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.9279, allocations: 272.2 kB / 1.391 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-05/0.928, allocations: 0 / 1.391 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.018e-05/0.9281, allocations: 398.6 kB / 1.391 GB, free: 7.812 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.9285, allocations: 266.6 kB / 1.391 GB, free: 7.555 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/0.929, allocations: 0.5051 MB / 1.392 GB, free: 6.949 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009617/0.93, allocations: 369.4 kB / 1.392 GB, free: 6.59 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.93, allocations: 6.438 kB / 1.392 GB, free: 6.586 MB / 0.8855 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001735/0.9317, allocations: 0.9411 MB / 1.393 GB, free: 5.637 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.9318, allocations: 7.984 kB / 1.393 GB, free: 5.629 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.9318, allocations: 8 kB / 1.393 GB, free: 5.621 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.9318, allocations: 16 kB / 1.393 GB, free: 5.605 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006226/0.9324, allocations: 176.1 kB / 1.393 GB, free: 5.434 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.9325, allocations: 23.94 kB / 1.393 GB, free: 5.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007486/0.9332, allocations: 171.1 kB / 1.393 GB, free: 5.242 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.623e-05/0.9333, allocations: 51.98 kB / 1.393 GB, free: 5.191 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 72 ($PRE.trimRespondLogic.tim.u,$PRE.trimRespondLogic1.tim.u,$PRE.trimRespondLogic2.tim.u,$PRE.trimRespondLogic1.sampler.firstTrigger,trimRespondLogic1.sampler.firstTrigger,$PRE.trimRespondLogic.sampler.firstTrigger,trimRespondLogic.sampler.firstTrigger,$whenCondition13,$PRE.trimRespondLogic1.tim.t_next,$whenCondition8,$PRE.trimRespondLogic.tim.t_next,$whenCondition11,trimRespondLogic.uniDel.sampleTrigger,$whenCondition12,trimRespondLogic.sampler.sampleTrigger,$whenCondition16,trimRespondLogic1.uniDel.sampleTrigger,$whenCondition17,trimRespondLogic1.sampler.sampleTrigger,trimRespondLogic1.tim.t_next,trimRespondLogic.tim.t_next,$PRE.trimRespondLogic2.sampler.firstTrigger,trimRespondLogic2.sampler.firstTrigger,$whenCondition6,$whenCondition7,$whenCondition1,$PRE.trimRespondLogic2.tim.t_next,$whenCondition4,trimRespondLogic2.uniDel.sampleTrigger,$whenCondition5,trimRespondLogic2.sampler.sampleTrigger,trimRespondLogic2.tim.t_next,trimRespondLogic.lesThr1.y,trimRespondLogic.greThr2.y,trimRespondLogic1.lesThr1.y,trimRespondLogic1.greThr2.y,$whenCondition14,$whenCondition15,$whenCondition9,$whenCondition10,trimRespondLogic.tim.u,trimRespondLogic.tim.y,trimRespondLogic.greThr.y,trimRespondLogic.netRes.u2,$PRE.trimRespondLogic.uniDel.y,trimRespondLogic.uniDel.y,trimRespondLogic.sampler.y,trimRespondLogic1.tim.u,trimRespondLogic1.tim.y,trimRespondLogic1.greThr.y,trimRespondLogic1.netRes.u2,$PRE.trimRespondLogic1.uniDel.y,trimRespondLogic1.uniDel.y,trimRespondLogic1.sampler.y,reaToInt1.y,trimRespondLogic1.greThr1.y,trimRespondLogic.greThr1.y,trimRespondLogic2.lesThr1.y,trimRespondLogic2.greThr2.y,$whenCondition2,$whenCondition3,trimRespondLogic2.tim.u,trimRespondLogic2.tim.y,trimRespondLogic2.greThr.y,trimRespondLogic2.netRes.u2,$PRE.trimRespondLogic2.uniDel.y,trimRespondLogic2.uniDel.y,trimRespondLogic2.sampler.y,$PRE.booPul.y,booPul.y,reaToInt2.y,trimRespondLogic2.greThr1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 141 * 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.0001767/0.9335, allocations: 172.6 kB / 1.394 GB, free: 5.023 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.9336, allocations: 90.97 kB / 1.394 GB, free: 4.934 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.9347, allocations: 0.7146 MB / 1.394 GB, free: 4.203 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.9347, allocations: 12 kB / 1.394 GB, free: 4.191 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.9347, allocations: 4 kB / 1.394 GB, free: 4.188 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.9347, allocations: 7.969 kB / 1.394 GB, free: 4.18 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/0.9372, allocations: 2.459 MB / 1.397 GB, free: 1.652 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.9373, allocations: 5.875 kB / 1.397 GB, free: 1.648 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.9377, allocations: 104.1 kB / 1.397 GB, free: 1.547 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/0.9377, allocations: 12 kB / 1.397 GB, free: 1.535 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.9e-05/0.9378, allocations: 19.97 kB / 1.397 GB, free: 1.516 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.9378, allocations: 4 kB / 1.397 GB, free: 1.512 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.9378, allocations: 7.938 kB / 1.397 GB, free: 1.504 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001101/0.9389, allocations: 1.051 MB / 1.398 GB, free: 364 kB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001575/0.9405, allocations: 1.45 MB / 1.399 GB, free: 14.8 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.9407, allocations: 167.9 kB / 1.4 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.9408, allocations: 11.98 kB / 1.4 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.9414, allocations: 87.3 kB / 1.4 GB, free: 14.52 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.9416, allocations: 96.31 kB / 1.4 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.806e-05/0.9417, allocations: 43.97 kB / 1.4 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.0004519/0.9422, allocations: 375.2 kB / 1.4 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001511/0.9437, allocations: 248.5 kB / 1.4 GB, free: 13.78 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 56 (trimRespondLogic2.tim.u,trimRespondLogic2.sampler.sampleTrigger,trimRespondLogic2.uniDel.sampleTrigger,$whenCondition6,$whenCondition7,$whenCondition5,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition3,trimRespondLogic2.tim.y,trimRespondLogic2.tim.t_next,trimRespondLogic2.greThr.y,trimRespondLogic2.netRes.u2,trimRespondLogic2.uniDel.y,trimRespondLogic2.sampler.y,trimRespondLogic2.sampler.firstTrigger,booPul.y,reaToInt2.y,trimRespondLogic1.sampler.sampleTrigger,trimRespondLogic1.uniDel.sampleTrigger,trimRespondLogic.sampler.sampleTrigger,trimRespondLogic.uniDel.sampleTrigger,$whenCondition17,$whenCondition16,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition12,$whenCondition11,$whenCondition8,$whenCondition9,$whenCondition10,trimRespondLogic.tim.y,trimRespondLogic.tim.t_next,trimRespondLogic.greThr.y,trimRespondLogic.netRes.u2,trimRespondLogic.uniDel.y,trimRespondLogic.sampler.y,trimRespondLogic.sampler.firstTrigger,trimRespondLogic1.tim.y,trimRespondLogic1.tim.t_next,trimRespondLogic1.greThr.y,trimRespondLogic1.netRes.u2,trimRespondLogic1.uniDel.y,trimRespondLogic1.sampler.y,trimRespondLogic1.sampler.firstTrigger,reaToInt1.y,trimRespondLogic.tim.u,trimRespondLogic1.tim.u,trimRespondLogic2.lesThr1.y,trimRespondLogic2.greThr2.y,trimRespondLogic.lesThr1.y,trimRespondLogic.greThr2.y,trimRespondLogic1.lesThr1.y,trimRespondLogic1.greThr2.y) * Number of discrete states: 6 (trimRespondLogic1.tim.t_next,trimRespondLogic.tim.t_next,trimRespondLogic1.uniDel.u,trimRespondLogic.uniDel.u,trimRespondLogic2.tim.t_next,trimRespondLogic2.uniDel.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0003221/0.944, allocations: 153.7 kB / 1.401 GB, free: 13.62 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001514/0.9455, allocations: 0.7673 MB / 1.401 GB, free: 12.86 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.9456, allocations: 0 / 1.401 GB, free: 12.86 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0007827/0.9463, allocations: 471.4 kB / 1.402 GB, free: 12.4 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006866/0.947, allocations: 96.92 kB / 1.402 GB, free: 12.31 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.9499, allocations: 1.339 MB / 1.403 GB, free: 10.91 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009039/0.9508, allocations: 1.198 MB / 1.404 GB, free: 9.672 MB / 0.9011 GB Notification: Performance of SimCode: time 7.21e-07/0.9509, allocations: 0 / 1.404 GB, free: 9.672 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_TrimAndRespond_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_TrimAndRespond.fmu > Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe 2>&1)