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.SunRiseSetNegativeStartTime.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.SunRiseSetNegativeStartTime,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.SunRiseSetNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime,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.SunRiseSetNegativeStartTime") [: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.315/1.315, allocations: 249.4 MB / 256.7 MB, free: 6.969 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.001064/0.001064, allocations: 185.3 kB / 316 MB, free: 3.578 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.541/1.541, allocations: 205.1 MB / 0.5667 GB, free: 15.72 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.0009169/0.0009169, allocations: 94.2 kB / 0.671 GB, free: 4.848 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.965e-06/8.005e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2257, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6168/0.8425, allocations: 133 MB / 1.014 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001627/0.8427, allocations: 73.95 kB / 1.015 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.03384/0.8766, allocations: 10.01 MB / 1.024 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.284e-05/0.8766, allocations: 4 kB / 1.024 GB, free: 13.63 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.001331/0.878, allocations: 0.6194 MB / 1.025 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.878, allocations: 12.03 kB / 1.025 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.746e-05/0.8781, allocations: 19.72 kB / 1.025 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.8783, allocations: 187.5 kB / 1.025 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.8783, allocations: 4 kB / 1.025 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.8784, allocations: 14.69 kB / 1.025 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002405/0.8786, allocations: 86.44 kB / 1.025 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.8789, allocations: 219.6 kB / 1.025 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.879, allocations: 3.938 kB / 1.025 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.879, allocations: 7.984 kB / 1.025 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.879, allocations: 8 kB / 1.025 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004125/0.8794, allocations: 361.2 kB / 1.026 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.8809, allocations: 469.5 kB / 1.026 GB, free: 11.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.8811, allocations: 150.4 kB / 1.026 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.525e-05/0.8812, allocations: 8 kB / 1.026 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/0.8815, allocations: 272.4 kB / 1.027 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 1.994e-06/0.8815, allocations: 4 kB / 1.027 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.0007569/0.8823, allocations: 304.9 kB / 1.027 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.8825, allocations: 353.9 kB / 1.027 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.8826, allocations: 143.2 kB / 1.027 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.958e-05/0.8827, allocations: 29.7 kB / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.8827, allocations: 92.95 kB / 1.028 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.203e-05/0.8828, allocations: 112.6 kB / 1.028 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/0.8828, allocations: 4 kB / 1.028 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.883, allocations: 329.4 kB / 1.028 GB, free: 9.707 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.8832, allocations: 94.3 kB / 1.028 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.8834, allocations: 156.6 kB / 1.028 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004531/0.8839, allocations: 154.5 kB / 1.028 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8839, allocations: 0 / 1.028 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007832/0.8847, allocations: 384.1 kB / 1.029 GB, free: 9.098 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.8847, allocations: 8 kB / 1.029 GB, free: 9.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.8847, allocations: 0 / 1.029 GB, free: 9.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.8847, allocations: 4 kB / 1.029 GB, free: 9.086 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003535/0.8851, allocations: 63.27 kB / 1.029 GB, free: 9.027 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.8851, allocations: 4 kB / 1.029 GB, free: 9.023 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.8854, allocations: 51.66 kB / 1.029 GB, free: 8.973 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.767e-05/0.8855, allocations: 24.47 kB / 1.029 GB, free: 8.953 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.0001422/0.8856, allocations: 131.3 kB / 1.029 GB, free: 8.82 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.999e-05/0.8857, allocations: 27.7 kB / 1.029 GB, free: 8.793 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007061/0.8864, allocations: 326.8 kB / 1.029 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.8864, allocations: 8 kB / 1.029 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.8864, allocations: 7.984 kB / 1.029 GB, free: 8.523 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.8865, allocations: 4 kB / 1.029 GB, free: 8.52 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003687/0.8868, allocations: 293.7 kB / 1.03 GB, free: 8.234 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.8868, allocations: 4 kB / 1.03 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.8872, allocations: 79.95 kB / 1.03 GB, free: 8.156 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.525e-06/0.8872, allocations: 4 kB / 1.03 GB, free: 8.152 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.295e-05/0.8872, allocations: 11 kB / 1.03 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.627e-06/0.8873, allocations: 11.98 kB / 1.03 GB, free: 8.133 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/0.8873, allocations: 4 kB / 1.03 GB, free: 8.129 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009614/0.8882, allocations: 0.5878 MB / 1.03 GB, free: 7.504 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.8884, allocations: 147 kB / 1.03 GB, free: 7.352 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.022e-05/0.8885, allocations: 8 kB / 1.03 GB, free: 7.344 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.8888, allocations: 31.97 kB / 1.03 GB, free: 7.312 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.8889, allocations: 54.72 kB / 1.031 GB, free: 7.27 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.8889, allocations: 19.44 kB / 1.031 GB, free: 7.254 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.979e-05/0.889, allocations: 123.4 kB / 1.031 GB, free: 7.145 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0007264/0.8898, allocations: 206.7 kB / 1.031 GB, free: 6.945 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.0006012/0.8904, allocations: 323 kB / 1.031 GB, free: 6.629 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002071/0.8925, allocations: 2.981 MB / 1.034 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.8925, allocations: 0 / 1.034 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002595/0.8927, allocations: 172.3 kB / 1.034 GB, free: 3.516 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.8929, allocations: 11.22 kB / 1.034 GB, free: 3.504 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000886/0.8938, allocations: 410.7 kB / 1.035 GB, free: 3.105 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004909/0.8943, allocations: 0.8217 MB / 1.035 GB, free: 2.27 MB / 0.6511 GB Notification: Performance of SimCode: time 8.01e-07/0.8943, allocations: 0 / 1.035 GB, free: 2.27 MB / 0.6511 GB Notification: Performance of Templates: time 0.009548/0.9039, allocations: 5.201 MB / 1.041 GB, free: 13.14 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches