Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.324/1.324, allocations: 289.8 MB / 297.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00095/0.00095, allocations: 177.3 kB / 366.3 MB, free: 1.961 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.042/1.042, allocations: 205.1 MB / 0.6256 GB, free: 5.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008395/0.0008395, allocations: 96.52 kB / 0.7396 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.404e-06, allocations: 4 kB / 0.859 GB, free: 13.35 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4248/0.4248, allocations: 116.3 MB / 0.9726 GB, free: 68.86 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.5635, allocations: 139 MB / 1.108 GB, free: 9.504 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/0.5637, allocations: 72.55 kB / 1.108 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.0317/0.5954, allocations: 9.99 MB / 1.118 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.019e-05/0.5955, allocations: 4 kB / 1.118 GB, free: 15.45 MB / 0.7292 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.001182/0.5967, allocations: 0.6219 MB / 1.119 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.5967, allocations: 8.031 kB / 1.119 GB, free: 14.77 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.379e-05/0.5968, allocations: 23.8 kB / 1.119 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.5969, allocations: 191.5 kB / 1.119 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.5969, allocations: 7.906 kB / 1.119 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.597, allocations: 16 kB / 1.119 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002171/0.5972, allocations: 87.95 kB / 1.119 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.5975, allocations: 217.9 kB / 1.119 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.5975, allocations: 0 / 1.119 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.5975, allocations: 4 kB / 1.119 GB, free: 14.15 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.5976, allocations: 7.984 kB / 1.119 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.598, allocations: 360.1 kB / 1.12 GB, free: 13.72 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.5993, allocations: 476.5 kB / 1.12 GB, free: 13.15 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.5995, allocations: 142.5 kB / 1.12 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.504e-05/0.5995, allocations: 19.84 kB / 1.12 GB, free: 12.95 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/0.5998, allocations: 275.2 kB / 1.12 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.5999, allocations: 0 / 1.12 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of matching and sorting (n=40): time 0.0007175/0.6006, allocations: 297.2 kB / 1.121 GB, free: 12.34 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.6007, allocations: 354.1 kB / 1.121 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.6008, allocations: 144.7 kB / 1.121 GB, free: 11.76 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.6009, allocations: 33.7 kB / 1.121 GB, free: 11.72 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.139e-05/0.6009, allocations: 94.08 kB / 1.121 GB, free: 11.62 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.454e-05/0.601, allocations: 102.5 kB / 1.121 GB, free: 11.52 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.6011, allocations: 4 kB / 1.121 GB, free: 11.52 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.6012, allocations: 330.7 kB / 1.122 GB, free: 11.19 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/0.6013, allocations: 96.98 kB / 1.122 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.6016, allocations: 151.4 kB / 1.122 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004856/0.602, allocations: 161.5 kB / 1.122 GB, free: 10.78 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.6021, allocations: 0 / 1.122 GB, free: 10.78 MB / 0.7292 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007778/0.6028, allocations: 377.8 kB / 1.123 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.6029, allocations: 6.656 kB / 1.123 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.6029, allocations: 7.938 kB / 1.123 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.6029, allocations: 1.969 kB / 1.123 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/0.6032, allocations: 67.89 kB / 1.123 GB, free: 10.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.6032, allocations: 4 kB / 1.123 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.6036, allocations: 51.66 kB / 1.123 GB, free: 10.27 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.6036, allocations: 23.98 kB / 1.123 GB, free: 10.25 MB / 0.7292 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.0001094/0.6037, allocations: 124.7 kB / 1.123 GB, free: 10.12 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.6038, allocations: 27.89 kB / 1.123 GB, free: 10.09 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006374/0.6044, allocations: 334.2 kB / 1.123 GB, free: 9.766 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.6044, allocations: 8 kB / 1.123 GB, free: 9.758 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.6045, allocations: 4 kB / 1.123 GB, free: 9.754 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.6045, allocations: 7.984 kB / 1.123 GB, free: 9.746 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.6048, allocations: 289.8 kB / 1.123 GB, free: 9.426 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.6048, allocations: 4 kB / 1.123 GB, free: 9.422 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.6051, allocations: 71.91 kB / 1.124 GB, free: 9.352 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.567e-06/0.6051, allocations: 11.92 kB / 1.124 GB, free: 9.34 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.6052, allocations: 20.28 kB / 1.124 GB, free: 9.32 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.6052, allocations: 7.938 kB / 1.124 GB, free: 9.312 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.6052, allocations: 8 kB / 1.124 GB, free: 9.305 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007549/0.6059, allocations: 0.5837 MB / 1.124 GB, free: 8.598 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.6061, allocations: 140.7 kB / 1.124 GB, free: 8.441 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.108e-05/0.6062, allocations: 19.89 kB / 1.124 GB, free: 8.422 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.6064, allocations: 32.91 kB / 1.124 GB, free: 8.391 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.256e-05/0.6065, allocations: 43.95 kB / 1.124 GB, free: 8.348 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.331e-05/0.6066, allocations: 23.98 kB / 1.124 GB, free: 8.324 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.367e-05/0.6067, allocations: 119.8 kB / 1.124 GB, free: 8.207 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005781/0.6072, allocations: 207.7 kB / 1.125 GB, free: 8.004 MB / 0.7292 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.0005988/0.6078, allocations: 329.6 kB / 1.125 GB, free: 7.672 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001655/0.6095, allocations: 2.987 MB / 1.128 GB, free: 4.59 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.6095, allocations: 0 / 1.128 GB, free: 4.59 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.6098, allocations: 175.9 kB / 1.128 GB, free: 4.418 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.61, allocations: 14 kB / 1.128 GB, free: 4.402 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008108/0.6108, allocations: 414.7 kB / 1.129 GB, free: 3.941 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/0.6112, allocations: 0.8033 MB / 1.129 GB, free: 3.109 MB / 0.7292 GB Notification: Performance of SimCode: time 2.41e-07/0.6112, allocations: 0 / 1.129 GB, free: 3.109 MB / 0.7292 GB Notification: Performance of Templates: time 0.008603/0.6198, allocations: 5.19 MB / 1.134 GB, free: 13.98 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)