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: translateModel(Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|trimRespondLogic.uDevSta|trimRespondLogic.numOfReq|trimRespondLogic.y|trimRespondLogic1.uDevSta|trimRespondLogic1.numOfReq|trimRespondLogic1.y|trimRespondLogic2.uDevSta|trimRespondLogic2.numOfReq|trimRespondLogic2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond") translateModel(Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|trimRespondLogic.uDevSta|trimRespondLogic.numOfReq|trimRespondLogic.y|trimRespondLogic1.uDevSta|trimRespondLogic1.numOfReq|trimRespondLogic1.y|trimRespondLogic2.uDevSta|trimRespondLogic2.numOfReq|trimRespondLogic2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond") [: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.771/1.771, allocations: 387.2 MB / 394.5 MB, free: 13.6 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.0009274/0.0009274, allocations: 181.3 kB / 487 MB, free: 5.316 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.109/1.109, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0008115/0.0008115, allocations: 98.98 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.141e-06/6.171e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.1999, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4825/0.6825, allocations: 151.8 MB / 1.353 GB, free: 16.14 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001779/0.6827, allocations: 76.36 kB / 1.354 GB, free: 16.14 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.04485/0.7276, allocations: 19.73 MB / 1.373 GB, free: 5.82 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.329e-05/0.7277, allocations: 35.83 kB / 1.373 GB, free: 5.789 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.001762/0.7294, allocations: 1.376 MB / 1.374 GB, free: 4.445 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.7295, allocations: 13.02 kB / 1.374 GB, free: 4.434 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.7297, allocations: 158.1 kB / 1.374 GB, free: 4.277 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007405/0.7304, allocations: 0.6749 MB / 1.375 GB, free: 3.715 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.7305, allocations: 47.25 kB / 1.375 GB, free: 3.672 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.7306, allocations: 91.23 kB / 1.375 GB, free: 3.586 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001112/0.7317, allocations: 0.7225 MB / 1.376 GB, free: 3.145 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.733, allocations: 0.9576 MB / 1.377 GB, free: 2.445 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.7331, allocations: 3.984 kB / 1.377 GB, free: 2.441 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-05/0.7331, allocations: 0 / 1.377 GB, free: 2.441 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.792e-05/0.7332, allocations: 32 kB / 1.377 GB, free: 2.41 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003436/0.7366, allocations: 2.911 MB / 1.38 GB, free: 252 kB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.7377, allocations: 0.7312 MB / 1.38 GB, free: 15.74 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004044/0.7381, allocations: 316.1 kB / 1.381 GB, free: 15.55 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.7381, allocations: 16.33 kB / 1.381 GB, free: 15.54 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006467/0.7388, allocations: 0.5101 MB / 1.381 GB, free: 15.13 MB / 0.823 GB Notification: Performance of pre-optimization done (n=105): time 2.074e-06/0.7388, allocations: 0 / 1.381 GB, free: 15.13 MB / 0.823 GB Notification: Performance of matching and sorting (n=105): time 0.001097/0.7399, allocations: 0.7124 MB / 1.382 GB, free: 14.6 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.74, allocations: 251.4 kB / 1.382 GB, free: 14.3 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005299/0.7406, allocations: 0.5419 MB / 1.383 GB, free: 13.89 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 6.727e-05/0.7407, allocations: 37.52 kB / 1.383 GB, free: 13.85 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000232/0.7409, allocations: 449.5 kB / 1.383 GB, free: 13.47 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.7411, allocations: 257.4 kB / 1.383 GB, free: 13.25 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-05/0.7411, allocations: 4 kB / 1.383 GB, free: 13.25 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.7413, allocations: 398.3 kB / 1.384 GB, free: 12.89 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004216/0.7417, allocations: 267.2 kB / 1.384 GB, free: 12.74 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005231/0.7422, allocations: 0.5058 MB / 1.384 GB, free: 12.26 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009408/0.7432, allocations: 377.4 kB / 1.385 GB, free: 11.99 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.7432, allocations: 4 kB / 1.385 GB, free: 11.99 MB / 0.823 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001734/0.7449, allocations: 0.9412 MB / 1.386 GB, free: 11.25 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.7449, allocations: 4 kB / 1.386 GB, free: 11.24 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.7449, allocations: 8 kB / 1.386 GB, free: 11.23 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.745, allocations: 12 kB / 1.386 GB, free: 11.22 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006284/0.7456, allocations: 177.8 kB / 1.386 GB, free: 11.06 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.7456, allocations: 19.92 kB / 1.386 GB, free: 11.04 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007107/0.7463, allocations: 163.4 kB / 1.386 GB, free: 10.88 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.881e-05/0.7464, allocations: 54.11 kB / 1.386 GB, free: 10.84 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.0001793/0.7466, allocations: 177.9 kB / 1.386 GB, free: 10.67 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.7467, allocations: 94.86 kB / 1.386 GB, free: 10.57 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.7479, allocations: 0.7206 MB / 1.387 GB, free: 10.06 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.7479, allocations: 12 kB / 1.387 GB, free: 10.05 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.7479, allocations: 0 / 1.387 GB, free: 10.05 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.7479, allocations: 7.984 kB / 1.387 GB, free: 10.04 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002584/0.7505, allocations: 2.455 MB / 1.39 GB, free: 8.09 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.7505, allocations: 0 / 1.39 GB, free: 8.09 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004281/0.751, allocations: 114.4 kB / 1.39 GB, free: 7.984 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-05/0.751, allocations: 7.984 kB / 1.39 GB, free: 7.977 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.239e-05/0.751, allocations: 12.23 kB / 1.39 GB, free: 7.965 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.605e-06/0.751, allocations: 12 kB / 1.39 GB, free: 7.953 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.7511, allocations: 0 / 1.39 GB, free: 7.953 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001208/0.7523, allocations: 1.065 MB / 1.391 GB, free: 7.008 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.7524, allocations: 163.2 kB / 1.391 GB, free: 6.836 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.7525, allocations: 19.86 kB / 1.391 GB, free: 6.82 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00053/0.7531, allocations: 71.94 kB / 1.391 GB, free: 6.75 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.7533, allocations: 98.45 kB / 1.391 GB, free: 6.672 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-05/0.7533, allocations: 41.86 kB / 1.391 GB, free: 6.641 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0004028/0.7537, allocations: 376.7 kB / 1.391 GB, free: 6.367 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0006453/0.7544, allocations: 242.9 kB / 1.392 GB, free: 6.133 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.0001937/0.7546, allocations: 158.7 kB / 1.392 GB, free: 5.98 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001107/0.7557, allocations: 0.7712 MB / 1.393 GB, free: 5.434 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.7557, allocations: 4.062 kB / 1.393 GB, free: 5.43 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006338/0.7563, allocations: 485.7 kB / 1.393 GB, free: 5.109 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.7569, allocations: 90.33 kB / 1.393 GB, free: 5.047 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.7591, allocations: 1.332 MB / 1.394 GB, free: 3.844 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007844/0.7599, allocations: 1.198 MB / 1.396 GB, free: 2.629 MB / 0.823 GB Notification: Performance of SimCode: time 2.8e-07/0.7599, allocations: 0 / 1.396 GB, free: 2.629 MB / 0.823 GB Notification: Performance of Templates: time 0.01523/0.7752, allocations: 9.416 MB / 1.405 GB, free: 9.316 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_TrimAndRespond.csv","../files/Buildings_9_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches