Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.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_PR1.Generic.SetPoints.Validation.TrimAndRespond,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_Generic_SetPoints_Validation_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.Validation.TrimAndRespond,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_Generic_SetPoints_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.795/1.795, allocations: 387.2 MB / 394.5 MB, free: 13.25 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.001008/0.001008, allocations: 177.6 kB / 487 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.151/1.151, allocations: 221.4 MB / 0.7819 GB, free: 6.691 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008403/0.0008404, allocations: 102.3 kB / 0.9213 GB, free: 43.61 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2335/0.2344, allocations: 148.5 MB / 1.066 GB, free: 7.375 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5455/0.7799, allocations: 142.3 MB / 1.205 GB, free: 72.79 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.151/0.9309, allocations: 151.8 MB / 1.354 GB, free: 11.31 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.9311, allocations: 71.95 kB / 1.354 GB, free: 11.24 MB / 0.8542 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.05236/0.9835, allocations: 21.18 MB / 1.374 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.9836, allocations: 12 kB / 1.374 GB, free: 6.09 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002946/0.9839, allocations: 162.1 kB / 1.375 GB, free: 5.93 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.9849, allocations: 0.6844 MB / 1.375 GB, free: 5.207 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-05/0.985, allocations: 51.98 kB / 1.375 GB, free: 5.156 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.9851, allocations: 87.98 kB / 1.375 GB, free: 5.07 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001356/0.9865, allocations: 0.7119 MB / 1.376 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.9881, allocations: 0.9614 MB / 1.377 GB, free: 3.367 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.9881, allocations: 4 kB / 1.377 GB, free: 3.363 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.318e-05/0.9882, allocations: 3.984 kB / 1.377 GB, free: 3.359 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/0.9882, allocations: 32 kB / 1.377 GB, free: 3.328 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004732/0.993, allocations: 2.902 MB / 1.38 GB, free: 388 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.9943, allocations: 0.731 MB / 1.381 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.9947, allocations: 307.2 kB / 1.381 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.475e-05/0.9948, allocations: 24.47 kB / 1.381 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007708/0.9956, allocations: 0.5136 MB / 1.381 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=105): time 3.166e-06/0.9956, allocations: 0 / 1.381 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of matching and sorting (n=105): time 0.001229/0.9968, allocations: 0.7139 MB / 1.382 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.997, allocations: 255.8 kB / 1.382 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006137/0.9976, allocations: 0.5343 MB / 1.383 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.464e-05/0.9977, allocations: 41.69 kB / 1.383 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.998, allocations: 444 kB / 1.383 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002048/0.9982, allocations: 264.2 kB / 1.384 GB, free: 12.41 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.9983, allocations: 4 kB / 1.384 GB, free: 12.41 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.9985, allocations: 398.6 kB / 1.384 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004732/0.9989, allocations: 262.6 kB / 1.384 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/0.9996, allocations: 0.5051 MB / 1.385 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/1.001, allocations: 377.3 kB / 1.385 GB, free: 10.78 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/1.001, allocations: 8 kB / 1.385 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001889/1.003, allocations: 0.9338 MB / 1.386 GB, free: 9.832 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/1.003, allocations: 4 kB / 1.386 GB, free: 9.828 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/1.003, allocations: 8 kB / 1.386 GB, free: 9.82 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/1.003, allocations: 16.03 kB / 1.386 GB, free: 9.805 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006707/1.003, allocations: 187.6 kB / 1.386 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.101e-05/1.003, allocations: 12 kB / 1.386 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007837/1.004, allocations: 163.2 kB / 1.386 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/1.004, allocations: 58.5 kB / 1.386 GB, free: 9.395 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.0002246/1.004, allocations: 176.5 kB / 1.387 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/1.005, allocations: 90.88 kB / 1.387 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/1.006, allocations: 0.7187 MB / 1.387 GB, free: 8.398 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/1.006, allocations: 12 kB / 1.387 GB, free: 8.387 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.006, allocations: 0 / 1.387 GB, free: 8.387 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/1.006, allocations: 11.98 kB / 1.387 GB, free: 8.375 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003171/1.009, allocations: 2.455 MB / 1.39 GB, free: 5.844 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.009, allocations: 7.938 kB / 1.39 GB, free: 5.836 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004205/1.01, allocations: 103.8 kB / 1.39 GB, free: 5.734 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/1.01, allocations: 8 kB / 1.39 GB, free: 5.727 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.783e-05/1.01, allocations: 19.97 kB / 1.39 GB, free: 5.707 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/1.01, allocations: 8 kB / 1.39 GB, free: 5.699 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/1.01, allocations: 2.5 kB / 1.39 GB, free: 5.699 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001285/1.011, allocations: 1.055 MB / 1.391 GB, free: 4.555 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001353/1.012, allocations: 1.453 MB / 1.392 GB, free: 2.996 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/1.012, allocations: 167.9 kB / 1.392 GB, free: 2.812 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/1.013, allocations: 19.89 kB / 1.393 GB, free: 2.793 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005323/1.013, allocations: 71.94 kB / 1.393 GB, free: 2.723 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/1.013, allocations: 88.36 kB / 1.393 GB, free: 2.637 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/1.013, allocations: 43.98 kB / 1.393 GB, free: 2.594 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0003785/1.014, allocations: 379.2 kB / 1.393 GB, free: 2.223 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001257/1.015, allocations: 240.6 kB / 1.393 GB, free: 1.988 MB / 0.8855 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.0002348/1.015, allocations: 164.9 kB / 1.393 GB, free: 1.824 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00114/1.016, allocations: 0.7643 MB / 1.394 GB, free: 1.051 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.016, allocations: 0.8125 kB / 1.394 GB, free: 1.051 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007595/1.017, allocations: 477.6 kB / 1.395 GB, free: 0.5859 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005441/1.018, allocations: 96.48 kB / 1.395 GB, free: 0.4961 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/1.02, allocations: 1.334 MB / 1.396 GB, free: 15.1 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/1.021, allocations: 1.198 MB / 1.397 GB, free: 13.87 MB / 0.9011 GB Notification: Performance of SimCode: time 2.61e-07/1.021, allocations: 4 kB / 1.397 GB, free: 13.87 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.Validation.TrimAndRespond.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.Validation.TrimAndRespond.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.Validation.TrimAndRespond.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.Validation.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.Validation.TrimAndRespond_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_Generic_SetPoints_Validation_TrimAndRespond_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_Generic_SetPoints_Validation_TrimAndRespond.fmu > Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.Generic.SetPoints.Validation.TrimAndRespond.pipe 2>&1)