Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") [: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.744/1.744, allocations: 387.2 MB / 394.5 MB, free: 13.27 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.000943/0.000943, allocations: 190.4 kB / 487 MB, free: 0.7227 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.087/1.087, allocations: 221.3 MB / 0.7819 GB, free: 6.77 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.0007896/0.0007896, allocations: 98.38 kB / 0.9213 GB, free: 43.68 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 6.702e-06/6.722e-06, allocations: 4 kB / 1.066 GB, free: 7.566 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4958/0.4958, allocations: 142.3 MB / 1.205 GB, free: 72.85 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1519/0.6478, allocations: 149.2 MB / 1.351 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001761/0.648, allocations: 71.3 kB / 1.351 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.03115/0.6792, allocations: 10.16 MB / 1.361 GB, free: 3.93 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.797e-06/0.6792, allocations: 4 kB / 1.361 GB, free: 3.926 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001052/0.6803, allocations: 0.6207 MB / 1.362 GB, free: 3.266 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.6803, allocations: 15.97 kB / 1.362 GB, free: 3.25 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.6804, allocations: 23.8 kB / 1.362 GB, free: 3.227 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.6805, allocations: 188.4 kB / 1.362 GB, free: 3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.6805, allocations: 8 kB / 1.362 GB, free: 2.992 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.6806, allocations: 19.91 kB / 1.362 GB, free: 2.973 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001997/0.6808, allocations: 87.95 kB / 1.362 GB, free: 2.887 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.681, allocations: 224.2 kB / 1.362 GB, free: 2.625 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.6811, allocations: 0 / 1.362 GB, free: 2.625 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.6811, allocations: 7.984 kB / 1.362 GB, free: 2.617 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.6811, allocations: 4 kB / 1.362 GB, free: 2.613 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003396/0.6814, allocations: 355.7 kB / 1.362 GB, free: 2.195 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.6827, allocations: 463.7 kB / 1.363 GB, free: 1.633 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.6829, allocations: 154.4 kB / 1.363 GB, free: 1.445 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.6829, allocations: 11.98 kB / 1.363 GB, free: 1.434 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003297/0.6833, allocations: 276.4 kB / 1.363 GB, free: 1.113 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=40): time 1.783e-06/0.6833, allocations: 0 / 1.363 GB, free: 1.113 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.0006568/0.6839, allocations: 293.8 kB / 1.364 GB, free: 0.8203 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.6841, allocations: 354 kB / 1.364 GB, free: 404 kB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.6842, allocations: 150.5 kB / 1.364 GB, free: 244 kB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.6842, allocations: 33.7 kB / 1.364 GB, free: 204 kB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.575e-05/0.6843, allocations: 93.05 kB / 1.364 GB, free: 108 kB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 7.767e-05/0.6843, allocations: 108.5 kB / 1.364 GB, free: 0 / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.6844, allocations: 0 / 1.364 GB, free: 0 / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.61e-05/0.6845, allocations: 330.8 kB / 1.365 GB, free: 15.66 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.6846, allocations: 100.9 kB / 1.365 GB, free: 15.57 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.6848, allocations: 151.4 kB / 1.365 GB, free: 15.41 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004007/0.6852, allocations: 155.9 kB / 1.365 GB, free: 15.25 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.6853, allocations: 0 / 1.365 GB, free: 15.25 MB / 0.8698 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007156/0.686, allocations: 380.6 kB / 1.365 GB, free: 14.88 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.686, allocations: 11.91 kB / 1.365 GB, free: 14.87 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.686, allocations: 0 / 1.365 GB, free: 14.87 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.686, allocations: 4 kB / 1.365 GB, free: 14.87 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.6863, allocations: 64.39 kB / 1.365 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.6864, allocations: 7.938 kB / 1.365 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.6867, allocations: 51.66 kB / 1.365 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/0.6867, allocations: 23.98 kB / 1.365 GB, free: 14.72 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition8,$whenCondition7,$PRE.sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,$PRE.sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,$PRE.sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,$PRE.sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 4 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.794e-05/0.6868, allocations: 125.7 kB / 1.366 GB, free: 14.59 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.038e-05/0.6869, allocations: 27.7 kB / 1.366 GB, free: 14.57 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006411/0.6875, allocations: 327.4 kB / 1.366 GB, free: 14.24 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.6875, allocations: 8 kB / 1.366 GB, free: 14.23 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.6875, allocations: 4 kB / 1.366 GB, free: 14.23 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.6876, allocations: 10.33 kB / 1.366 GB, free: 14.22 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.6878, allocations: 293.7 kB / 1.366 GB, free: 13.89 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.6878, allocations: 0 / 1.366 GB, free: 13.89 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.6881, allocations: 81.2 kB / 1.366 GB, free: 13.82 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.6882, allocations: 4 kB / 1.366 GB, free: 13.81 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.957e-05/0.6882, allocations: 15.91 kB / 1.366 GB, free: 13.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.6882, allocations: 11.98 kB / 1.366 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.6882, allocations: 7.938 kB / 1.366 GB, free: 13.78 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006859/0.6889, allocations: 0.5808 MB / 1.367 GB, free: 13.07 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.6891, allocations: 136.7 kB / 1.367 GB, free: 12.92 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.547e-05/0.6891, allocations: 11.98 kB / 1.367 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000248/0.6894, allocations: 40.69 kB / 1.367 GB, free: 12.87 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.512e-05/0.6895, allocations: 47.88 kB / 1.367 GB, free: 12.82 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.6895, allocations: 20 kB / 1.367 GB, free: 12.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6.654e-05/0.6896, allocations: 119.2 kB / 1.367 GB, free: 12.68 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0005166/0.6901, allocations: 203.7 kB / 1.367 GB, free: 12.48 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition8,$whenCondition7,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 8 (sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0004718/0.6906, allocations: 328.6 kB / 1.368 GB, free: 12.16 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001463/0.692, allocations: 2.989 MB / 1.371 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6921, allocations: 0 / 1.371 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.6923, allocations: 173.1 kB / 1.371 GB, free: 8.91 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.6925, allocations: 14.62 kB / 1.371 GB, free: 8.895 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007343/0.6932, allocations: 422.5 kB / 1.371 GB, free: 8.43 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.6935, allocations: 0.8161 MB / 1.372 GB, free: 7.594 MB / 0.8698 GB Notification: Performance of SimCode: time 2.9e-07/0.6936, allocations: 0 / 1.372 GB, free: 7.594 MB / 0.8698 GB Notification: Performance of Templates: time 0.007819/0.7014, allocations: 5.173 MB / 1.377 GB, free: 2.516 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp Variables in the result:sunRiseSetAntarctic.lat,sunRiseSetAntarctic.lon,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.staTim,sunRiseSetAntarctic.sunUp,sunRiseSetAntarctic.timDifLocCiv,sunRiseSetAntarctic.timZon,sunRiseSetArctic.lat,sunRiseSetArctic.lon,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.staTim,sunRiseSetArctic.sunUp,sunRiseSetArctic.timDifLocCiv,sunRiseSetArctic.timZon,sunRiseSetSf.lat,sunRiseSetSf.lon,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.staTim,sunRiseSetSf.sunUp,sunRiseSetSf.timDifLocCiv,sunRiseSetSf.timZon,sunRiseSetSyd.lat,sunRiseSetSyd.lon,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.staTim,sunRiseSetSyd.sunUp,sunRiseSetSyd.timDifLocCiv,sunRiseSetSyd.timZon,time