Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.719/1.719, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009207/0.0009207, allocations: 187 kB / 490.8 MB, free: 1.953 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.052/1.052, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.000798/0.0007982, allocations: 83.8 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.53e-06/5.62e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1678, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4416/0.6094, allocations: 150 MB / 1.358 GB, free: 16.74 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001591/0.6096, allocations: 68.42 kB / 1.358 GB, free: 16.74 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02859/0.6382, allocations: 10.16 MB / 1.368 GB, free: 16.16 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.6383, allocations: 8.344 kB / 1.368 GB, free: 16.16 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0009448/0.6392, allocations: 0.6305 MB / 1.369 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.6392, allocations: 9.594 kB / 1.369 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.064e-05/0.6393, allocations: 24.22 kB / 1.369 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.467e-05/0.6394, allocations: 186.5 kB / 1.369 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.6394, allocations: 10.39 kB / 1.369 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.947e-05/0.6395, allocations: 17.64 kB / 1.369 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002/0.6397, allocations: 89.5 kB / 1.369 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.6399, allocations: 223.8 kB / 1.369 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.6399, allocations: 1.25 kB / 1.369 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.64, allocations: 2.953 kB / 1.369 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.64, allocations: 9.156 kB / 1.369 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003004/0.6403, allocations: 358.4 kB / 1.37 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.6415, allocations: 473.8 kB / 1.37 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.6417, allocations: 145.6 kB / 1.37 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.6417, allocations: 14.36 kB / 1.37 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.642, allocations: 268.3 kB / 1.37 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 1.694e-06/0.642, allocations: 0 / 1.37 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.0006228/0.6426, allocations: 297 kB / 1.371 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.6427, allocations: 356.8 kB / 1.371 GB, free: 30 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.6428, allocations: 146.8 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.6428, allocations: 33.8 kB / 1.371 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.615e-05/0.6429, allocations: 95.2 kB / 1.371 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.398e-05/0.6429, allocations: 100 kB / 1.371 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.814e-05/0.6429, allocations: 3.938 kB / 1.371 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.246e-05/0.643, allocations: 336.3 kB / 1.372 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.6432, allocations: 99.53 kB / 1.372 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.6434, allocations: 141 kB / 1.372 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/0.6438, allocations: 160.5 kB / 1.372 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.6438, allocations: 0 / 1.372 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007038/0.6445, allocations: 386.4 kB / 1.372 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.6445, allocations: 7.906 kB / 1.372 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.6445, allocations: 1.094 kB / 1.372 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.6445, allocations: 12.44 kB / 1.373 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.6448, allocations: 64.91 kB / 1.373 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.6449, allocations: 2.031 kB / 1.373 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.6451, allocations: 52.95 kB / 1.373 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.6452, allocations: 22.5 kB / 1.373 GB, free: 29.27 MB / 0.8386 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.4e-05/0.6453, allocations: 127 kB / 1.373 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.816e-05/0.6453, allocations: 29.5 kB / 1.373 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005928/0.6459, allocations: 331.9 kB / 1.373 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.646, allocations: 8.219 kB / 1.373 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.646, allocations: 4.375 kB / 1.373 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.646, allocations: 5.672 kB / 1.373 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.6463, allocations: 298.1 kB / 1.373 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.6463, allocations: 3.938 kB / 1.373 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.6466, allocations: 71.62 kB / 1.373 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/0.6466, allocations: 9.875 kB / 1.373 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.6466, allocations: 12.41 kB / 1.373 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.6466, allocations: 11 kB / 1.374 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.6466, allocations: 7.125 kB / 1.374 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006231/0.6472, allocations: 0.5725 MB / 1.374 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.6474, allocations: 149.4 kB / 1.374 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.6474, allocations: 13.12 kB / 1.374 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.6477, allocations: 33.44 kB / 1.374 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/0.6478, allocations: 44.95 kB / 1.374 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.6478, allocations: 21.89 kB / 1.374 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.251e-05/0.6479, allocations: 123.6 kB / 1.374 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004453/0.6483, allocations: 209.2 kB / 1.375 GB, free: 28.24 MB / 0.8386 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.0004407/0.6488, allocations: 317.1 kB / 1.375 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001425/0.6502, allocations: 2.993 MB / 1.378 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.6502, allocations: 0 / 1.378 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.6505, allocations: 174.7 kB / 1.378 GB, free: 25.35 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.6506, allocations: 12.52 kB / 1.378 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006669/0.6513, allocations: 415.9 kB / 1.378 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003377/0.6516, allocations: 0.8127 MB / 1.379 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.6516, allocations: 0 / 1.379 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of Templates: time 0.008245/0.6599, allocations: 5.182 MB / 1.384 GB, free: 23.7 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_latest_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