Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.387/1.387, allocations: 249.4 MB / 256.7 MB, free: 7.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001257/0.001257, allocations: 185 kB / 316 MB, free: 3.523 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 0.5667 GB, free: 15.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 89.58 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.913e-06/6.953e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1835, allocations: 106.3 MB / 0.8846 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4935/0.677, allocations: 133 MB / 1.014 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.6772, allocations: 74.83 kB / 1.015 GB, free: 5.66 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.03366/0.7109, allocations: 10 MB / 1.024 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.284e-05/0.711, allocations: 4 kB / 1.024 GB, free: 13.35 MB / 0.6511 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.001407/0.7124, allocations: 0.6178 MB / 1.025 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.102e-05/0.7125, allocations: 16.03 kB / 1.025 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.4e-05/0.7126, allocations: 27.72 kB / 1.025 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.7127, allocations: 183.5 kB / 1.025 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.7128, allocations: 4 kB / 1.025 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.445e-05/0.7128, allocations: 15.98 kB / 1.025 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002315/0.7131, allocations: 87.39 kB / 1.025 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.7134, allocations: 226.9 kB / 1.025 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.7134, allocations: 0 / 1.025 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.7134, allocations: 4 kB / 1.025 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.7134, allocations: 4 kB / 1.025 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000432/0.7139, allocations: 358.1 kB / 1.026 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/0.7153, allocations: 482.5 kB / 1.026 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.7155, allocations: 139.3 kB / 1.026 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.408e-05/0.7155, allocations: 15 kB / 1.026 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.7159, allocations: 276.9 kB / 1.027 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 2.114e-06/0.7159, allocations: 0 / 1.027 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.0007881/0.7167, allocations: 291 kB / 1.027 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/0.7168, allocations: 357.3 kB / 1.027 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.717, allocations: 144.6 kB / 1.027 GB, free: 9.969 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.717, allocations: 36.77 kB / 1.027 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.7171, allocations: 92.19 kB / 1.028 GB, free: 9.84 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.886e-05/0.7172, allocations: 108 kB / 1.028 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.7172, allocations: 4 kB / 1.028 GB, free: 9.746 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.7174, allocations: 337 kB / 1.028 GB, free: 9.418 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.7175, allocations: 96.17 kB / 1.028 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.7177, allocations: 150.1 kB / 1.028 GB, free: 9.242 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.7182, allocations: 153 kB / 1.028 GB, free: 9.125 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.7182, allocations: 0 / 1.028 GB, free: 9.125 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007724/0.719, allocations: 381.7 kB / 1.029 GB, free: 8.816 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.719, allocations: 8 kB / 1.029 GB, free: 8.809 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.719, allocations: 4 kB / 1.029 GB, free: 8.805 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.719, allocations: 4 kB / 1.029 GB, free: 8.801 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003433/0.7194, allocations: 67.52 kB / 1.029 GB, free: 8.738 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.7194, allocations: 4 kB / 1.029 GB, free: 8.734 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.7197, allocations: 51.66 kB / 1.029 GB, free: 8.684 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/0.7198, allocations: 23.73 kB / 1.029 GB, free: 8.664 MB / 0.6511 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 0.0001201/0.7199, allocations: 127.2 kB / 1.029 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.677e-05/0.72, allocations: 27.7 kB / 1.029 GB, free: 8.508 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006534/0.7206, allocations: 328.5 kB / 1.029 GB, free: 8.25 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.7207, allocations: 8 kB / 1.029 GB, free: 8.242 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.7207, allocations: 4 kB / 1.029 GB, free: 8.238 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.7207, allocations: 4 kB / 1.029 GB, free: 8.234 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003099/0.721, allocations: 300.4 kB / 1.03 GB, free: 7.945 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.721, allocations: 7.984 kB / 1.03 GB, free: 7.938 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.7213, allocations: 75.59 kB / 1.03 GB, free: 7.867 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.7213, allocations: 4 kB / 1.03 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.7214, allocations: 14.92 kB / 1.03 GB, free: 7.852 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.7214, allocations: 4 kB / 1.03 GB, free: 7.848 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.7214, allocations: 7.938 kB / 1.03 GB, free: 7.84 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007695/0.7222, allocations: 0.5841 MB / 1.03 GB, free: 7.215 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.7223, allocations: 149.7 kB / 1.03 GB, free: 7.062 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/0.7224, allocations: 4 kB / 1.03 GB, free: 7.059 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.7227, allocations: 32.22 kB / 1.03 GB, free: 7.027 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.7228, allocations: 50.47 kB / 1.031 GB, free: 6.988 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.664e-05/0.7228, allocations: 26.86 kB / 1.031 GB, free: 6.965 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.659e-05/0.7229, allocations: 116.6 kB / 1.031 GB, free: 6.863 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006299/0.7235, allocations: 206.8 kB / 1.031 GB, free: 6.664 MB / 0.6511 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.0005845/0.7241, allocations: 327.4 kB / 1.031 GB, free: 6.344 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001802/0.726, allocations: 2.988 MB / 1.034 GB, free: 3.359 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.726, allocations: 0 / 1.034 GB, free: 3.359 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.7262, allocations: 166.7 kB / 1.034 GB, free: 3.23 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.7264, allocations: 12.12 kB / 1.034 GB, free: 3.219 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008354/0.7272, allocations: 413.9 kB / 1.035 GB, free: 2.816 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.7277, allocations: 0.8181 MB / 1.035 GB, free: 1.984 MB / 0.6511 GB Notification: Performance of SimCode: time 2.91e-07/0.7277, allocations: 3.938 kB / 1.035 GB, free: 1.98 MB / 0.6511 GB Notification: Performance of Templates: time 0.009067/0.7368, allocations: 5.179 MB / 1.041 GB, free: 12.84 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_maint.7.0.x_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