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: 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_latest_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_latest_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 10.0.0-master/package.mo): time 1.711/1.711, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0009286/0.0009286, allocations: 185.2 kB / 490.8 MB, free: 1.961 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.058/1.058, allocations: 221.4 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008004/0.0008004, allocations: 89.59 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.34e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1656, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4482/0.6138, allocations: 152.6 MB / 1.361 GB, free: 17.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001675/0.614, allocations: 71.33 kB / 1.361 GB, free: 17.08 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04409/0.6581, allocations: 19.75 MB / 1.38 GB, free: 14.17 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.928e-05/0.6582, allocations: 31.03 kB / 1.38 GB, free: 14.17 MB / 0.823 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.00189/0.6601, allocations: 1.375 MB / 1.381 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.6601, allocations: 9.531 kB / 1.381 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.6604, allocations: 166.5 kB / 1.381 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007749/0.6611, allocations: 0.6669 MB / 1.382 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.521e-05/0.6612, allocations: 53.3 kB / 1.382 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.6614, allocations: 91.83 kB / 1.382 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001225/0.6626, allocations: 0.7146 MB / 1.383 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.6641, allocations: 0.951 MB / 1.384 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.6641, allocations: 1.031 kB / 1.384 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.603e-05/0.6642, allocations: 10.98 kB / 1.384 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.6642, allocations: 29.72 kB / 1.384 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003679/0.6679, allocations: 2.91 MB / 1.387 GB, free: 27.07 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.669, allocations: 0.7261 MB / 1.387 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004018/0.6694, allocations: 313.6 kB / 1.388 GB, free: 26.94 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.661e-05/0.6694, allocations: 14.69 kB / 1.388 GB, free: 26.94 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006195/0.67, allocations: 0.5184 MB / 1.388 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=105): time 2.214e-06/0.6701, allocations: 0 / 1.388 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=105): time 0.001088/0.6711, allocations: 0.7147 MB / 1.389 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.6712, allocations: 257 kB / 1.389 GB, free: 26.27 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005426/0.6718, allocations: 0.5358 MB / 1.39 GB, free: 26.08 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.374e-05/0.6718, allocations: 34.27 kB / 1.39 GB, free: 26.05 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.672, allocations: 444.4 kB / 1.39 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.6722, allocations: 266.6 kB / 1.39 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.6722, allocations: 5.75 kB / 1.39 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.6724, allocations: 399.1 kB / 1.391 GB, free: 25.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.6728, allocations: 264.1 kB / 1.391 GB, free: 25.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005297/0.6734, allocations: 0.5061 MB / 1.392 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009406/0.6743, allocations: 373.7 kB / 1.392 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.6743, allocations: 1.531 kB / 1.392 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001696/0.676, allocations: 0.9457 MB / 1.393 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.6761, allocations: 8.312 kB / 1.393 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.6761, allocations: 11.5 kB / 1.393 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.6761, allocations: 15.28 kB / 1.393 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/0.6767, allocations: 179 kB / 1.393 GB, free: 24.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.6768, allocations: 21.83 kB / 1.393 GB, free: 24.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007055/0.6775, allocations: 164 kB / 1.393 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.262e-05/0.6776, allocations: 46.92 kB / 1.393 GB, free: 24.43 MB / 0.8386 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.6778, allocations: 174.2 kB / 1.393 GB, free: 24.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.6779, allocations: 93.33 kB / 1.394 GB, free: 24.24 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.6789, allocations: 0.7131 MB / 1.394 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.679, allocations: 11.66 kB / 1.394 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.679, allocations: 6.578 kB / 1.394 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.679, allocations: 6.547 kB / 1.394 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.6815, allocations: 2.457 MB / 1.397 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.6815, allocations: 2.375 kB / 1.397 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004188/0.6819, allocations: 112.8 kB / 1.397 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.198e-06/0.6819, allocations: 7.219 kB / 1.397 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.037e-05/0.682, allocations: 19.09 kB / 1.397 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.682, allocations: 6.156 kB / 1.397 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.682, allocations: 6.906 kB / 1.397 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001029/0.683, allocations: 1.061 MB / 1.398 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.897e-05/0.6831, allocations: 172.7 kB / 1.398 GB, free: 22.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.6833, allocations: 10.3 kB / 1.398 GB, free: 22.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005127/0.6838, allocations: 76.94 kB / 1.398 GB, free: 21.98 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.6839, allocations: 97.92 kB / 1.398 GB, free: 21.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.044e-05/0.684, allocations: 41.36 kB / 1.398 GB, free: 21.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0003712/0.6844, allocations: 378.5 kB / 1.399 GB, free: 21.81 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007121/0.6851, allocations: 243.2 kB / 1.399 GB, free: 21.75 MB / 0.8386 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.0001894/0.6853, allocations: 162.1 kB / 1.399 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001093/0.6864, allocations: 0.763 MB / 1.4 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6864, allocations: 3.75 kB / 1.4 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006499/0.6871, allocations: 476.3 kB / 1.4 GB, free: 21.5 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.6876, allocations: 103.5 kB / 1.4 GB, free: 21.47 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.69, allocations: 1.33 MB / 1.402 GB, free: 20.89 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008453/0.6909, allocations: 1.193 MB / 1.403 GB, free: 19.99 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/0.6909, allocations: 0 / 1.403 GB, free: 19.99 MB / 0.8386 GB Notification: Performance of Templates: time 0.01405/0.7049, allocations: 9.419 MB / 1.412 GB, free: 12.49 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_ASHRAE_G36_Generic_Validation_TrimAndRespond.csv","../files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.Generic.Validation.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches