Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.816/1.816, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 185.3 kB / 487 MB, free: 5.406 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.168/1.168, allocations: 221.3 MB / 0.7819 GB, free: 1.445 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008953/0.0008954, allocations: 99.73 kB / 0.9213 GB, free: 2.699 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.422/0.423, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.6033, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.517/1.12, allocations: 151.8 MB / 1.354 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001842/1.121, allocations: 69.31 kB / 1.354 GB, free: 15.44 MB / 0.8073 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.0477/1.168, allocations: 21.15 MB / 1.374 GB, free: 3.922 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/1.168, allocations: 12 kB / 1.374 GB, free: 3.91 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/1.169, allocations: 162.1 kB / 1.374 GB, free: 3.75 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007659/1.169, allocations: 0.6727 MB / 1.375 GB, free: 3.195 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/1.169, allocations: 51.3 kB / 1.375 GB, free: 3.148 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/1.169, allocations: 91.55 kB / 1.375 GB, free: 3.062 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001105/1.171, allocations: 0.7155 MB / 1.376 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/1.172, allocations: 0.954 MB / 1.377 GB, free: 1.93 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/1.172, allocations: 0 / 1.377 GB, free: 1.93 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.621e-05/1.172, allocations: 11.36 kB / 1.377 GB, free: 1.922 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/1.172, allocations: 28 kB / 1.377 GB, free: 1.895 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003622/1.176, allocations: 2.908 MB / 1.38 GB, free: 15.73 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/1.177, allocations: 0.7206 MB / 1.38 GB, free: 15.23 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/1.177, allocations: 309.9 kB / 1.381 GB, free: 15.04 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.27e-05/1.177, allocations: 26.5 kB / 1.381 GB, free: 15.02 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006868/1.178, allocations: 0.5122 MB / 1.381 GB, free: 14.62 MB / 0.823 GB Notification: Performance of pre-optimization done (n=105): time 2.344e-06/1.178, allocations: 0 / 1.381 GB, free: 14.62 MB / 0.823 GB Notification: Performance of matching and sorting (n=105): time 0.00115/1.179, allocations: 0.7134 MB / 1.382 GB, free: 14.08 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/1.179, allocations: 255 kB / 1.382 GB, free: 13.78 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005821/1.18, allocations: 0.5347 MB / 1.383 GB, free: 13.38 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 6.959e-05/1.18, allocations: 37.64 kB / 1.383 GB, free: 13.34 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/1.18, allocations: 447.3 kB / 1.383 GB, free: 12.95 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/1.18, allocations: 266.7 kB / 1.383 GB, free: 12.73 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/1.181, allocations: 0 / 1.383 GB, free: 12.73 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.000198/1.181, allocations: 397.8 kB / 1.384 GB, free: 12.37 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004405/1.181, allocations: 262.9 kB / 1.384 GB, free: 12.23 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006108/1.182, allocations: 0.5094 MB / 1.385 GB, free: 11.75 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/1.183, allocations: 377.2 kB / 1.385 GB, free: 11.48 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/1.183, allocations: 4 kB / 1.385 GB, free: 11.48 MB / 0.823 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001838/1.185, allocations: 0.9388 MB / 1.386 GB, free: 10.74 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/1.185, allocations: 8.188 kB / 1.386 GB, free: 10.73 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/1.185, allocations: 8 kB / 1.386 GB, free: 10.72 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/1.185, allocations: 16 kB / 1.386 GB, free: 10.71 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006651/1.185, allocations: 170.7 kB / 1.386 GB, free: 10.55 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-05/1.185, allocations: 19.94 kB / 1.386 GB, free: 10.53 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007736/1.186, allocations: 171.2 kB / 1.386 GB, free: 10.36 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-05/1.186, allocations: 48.61 kB / 1.386 GB, free: 10.32 MB / 0.823 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.0002329/1.187, allocations: 175 kB / 1.386 GB, free: 10.16 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/1.187, allocations: 94.88 kB / 1.387 GB, free: 10.06 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/1.188, allocations: 0.7119 MB / 1.387 GB, free: 9.555 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/1.188, allocations: 19.94 kB / 1.387 GB, free: 9.535 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/1.188, allocations: 4 kB / 1.387 GB, free: 9.531 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/1.188, allocations: 7.969 kB / 1.387 GB, free: 9.523 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/1.191, allocations: 2.452 MB / 1.39 GB, free: 7.574 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/1.191, allocations: 4 kB / 1.39 GB, free: 7.57 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000416/1.191, allocations: 107 kB / 1.39 GB, free: 7.473 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/1.191, allocations: 8 kB / 1.39 GB, free: 7.465 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.377e-05/1.191, allocations: 19.03 kB / 1.39 GB, free: 7.449 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/1.191, allocations: 7.938 kB / 1.39 GB, free: 7.441 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.191, allocations: 4.25 kB / 1.39 GB, free: 7.438 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001164/1.193, allocations: 1.059 MB / 1.391 GB, free: 6.496 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001362/1.194, allocations: 1.443 MB / 1.392 GB, free: 5.16 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/1.194, allocations: 164.1 kB / 1.392 GB, free: 4.988 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/1.194, allocations: 21.89 kB / 1.392 GB, free: 4.969 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005653/1.195, allocations: 81.55 kB / 1.393 GB, free: 4.891 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/1.195, allocations: 89.38 kB / 1.393 GB, free: 4.824 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.649e-05/1.195, allocations: 49.02 kB / 1.393 GB, free: 4.785 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0004346/1.196, allocations: 375.2 kB / 1.393 GB, free: 4.516 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001428/1.197, allocations: 247.6 kB / 1.393 GB, free: 4.277 MB / 0.823 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.0002408/1.197, allocations: 155.3 kB / 1.393 GB, free: 4.129 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001215/1.198, allocations: 0.7645 MB / 1.394 GB, free: 3.586 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.198, allocations: 7 kB / 1.394 GB, free: 3.582 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.000669/1.199, allocations: 478.3 kB / 1.395 GB, free: 3.27 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005486/1.2, allocations: 88.08 kB / 1.395 GB, free: 3.203 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/1.202, allocations: 1.35 MB / 1.396 GB, free: 1.984 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009269/1.203, allocations: 1.189 MB / 1.397 GB, free: 0.7734 MB / 0.823 GB Notification: Performance of SimCode: time 2.91e-07/1.203, allocations: 0 / 1.397 GB, free: 0.7734 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_TrimAndRespond_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_TrimAndRespond.fmu > Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe 2>&1)