Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.313/2.313, allocations: 253.1 MB / 260.4 MB, free: 7.465 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001707/0.001707, allocations: 185.2 kB / 319.6 MB, free: 3.301 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.977/1.977, allocations: 205.4 MB / 0.5704 GB, free: 15.05 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 95.7 kB / 0.6746 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.867e-06/8.966e-06, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2098, allocations: 106.2 MB / 0.8881 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6757/0.8856, allocations: 133.5 MB / 1.018 GB, free: 4.816 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/0.8859, allocations: 72.08 kB / 1.018 GB, free: 4.777 MB / 0.6355 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Controls/OBC/CDL/Utilities/SunRiseSet.mo:54:7-54:32:writable] Warning: timDif was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.06921/0.9551, allocations: 9.956 MB / 1.028 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.588e-05/0.9552, allocations: 4 kB / 1.028 GB, free: 12.28 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.002506/0.9577, allocations: 0.6171 MB / 1.029 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.9578, allocations: 12.03 kB / 1.029 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.958, allocations: 27.7 kB / 1.029 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.9582, allocations: 187.7 kB / 1.029 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.9583, allocations: 7.25 kB / 1.029 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.899e-05/0.9584, allocations: 12 kB / 1.029 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005158/0.9589, allocations: 98.62 kB / 1.029 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006478/0.9596, allocations: 226.2 kB / 1.029 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.9596, allocations: 3.938 kB / 1.029 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.9597, allocations: 4 kB / 1.029 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.9597, allocations: 4 kB / 1.029 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.9611, allocations: 0.8954 MB / 1.03 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003551/0.9647, allocations: 479.7 kB / 1.031 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.9652, allocations: 135.5 kB / 1.031 GB, free: 9.457 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.166e-05/0.9653, allocations: 15.42 kB / 1.031 GB, free: 9.445 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007244/0.966, allocations: 266.6 kB / 1.031 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 1.632e-05/0.966, allocations: 3.938 kB / 1.031 GB, free: 9.164 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.001712/0.9678, allocations: 278.8 kB / 1.031 GB, free: 8.93 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002574/0.9681, allocations: 352.2 kB / 1.032 GB, free: 8.508 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.9684, allocations: 156.7 kB / 1.032 GB, free: 8.363 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.103e-05/0.9685, allocations: 36.27 kB / 1.032 GB, free: 8.324 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.9686, allocations: 103.6 kB / 1.032 GB, free: 8.227 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.9688, allocations: 109.2 kB / 1.032 GB, free: 8.133 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.9689, allocations: 0 / 1.032 GB, free: 8.133 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001984/0.9691, allocations: 336.5 kB / 1.032 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004443/0.9695, allocations: 88.3 kB / 1.032 GB, free: 7.75 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006053/0.9702, allocations: 155.1 kB / 1.033 GB, free: 7.613 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.9713, allocations: 144.9 kB / 1.033 GB, free: 7.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.9713, allocations: 0 / 1.033 GB, free: 7.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001924/0.9732, allocations: 370.1 kB / 1.033 GB, free: 7.191 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.9733, allocations: 4 kB / 1.033 GB, free: 7.188 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.9733, allocations: 0 / 1.033 GB, free: 7.188 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.194e-05/0.9734, allocations: 4 kB / 1.033 GB, free: 7.184 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008606/0.9742, allocations: 71.45 kB / 1.033 GB, free: 7.117 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/0.9743, allocations: 8.484 kB / 1.033 GB, free: 7.109 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008628/0.9752, allocations: 63.56 kB / 1.033 GB, free: 7.047 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.9753, allocations: 18.98 kB / 1.033 GB, free: 7.031 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition2,$whenCondition1,$PRE.sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition4,$whenCondition3,$PRE.sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition6,$whenCondition5,$PRE.sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition8,$whenCondition7,$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.0002575/0.9756, allocations: 123.5 kB / 1.033 GB, free: 6.91 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.9757, allocations: 27.22 kB / 1.033 GB, free: 6.887 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.9774, allocations: 328.4 kB / 1.034 GB, free: 6.625 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.9774, allocations: 8 kB / 1.034 GB, free: 6.617 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.9775, allocations: 7.906 kB / 1.034 GB, free: 6.609 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/0.9775, allocations: 7.984 kB / 1.034 GB, free: 6.602 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008007/0.9783, allocations: 295.8 kB / 1.034 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-06/0.9783, allocations: 0 / 1.034 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008508/0.9792, allocations: 78.47 kB / 1.034 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.107e-05/0.9793, allocations: 4 kB / 1.034 GB, free: 6.238 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.253e-05/0.9793, allocations: 14.73 kB / 1.034 GB, free: 6.227 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.389e-05/0.9794, allocations: 4 kB / 1.034 GB, free: 6.223 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/0.9794, allocations: 7.938 kB / 1.034 GB, free: 6.215 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001927/0.9813, allocations: 0.5723 MB / 1.035 GB, free: 5.609 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/0.9818, allocations: 149.9 kB / 1.035 GB, free: 5.457 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.9819, allocations: 11.92 kB / 1.035 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007339/0.9827, allocations: 27.98 kB / 1.035 GB, free: 5.418 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.9829, allocations: 52.34 kB / 1.035 GB, free: 5.375 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.113e-05/0.983, allocations: 26.23 kB / 1.035 GB, free: 5.355 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002162/0.9832, allocations: 123.5 kB / 1.035 GB, free: 5.25 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001536/0.9848, allocations: 203.2 kB / 1.035 GB, free: 5.055 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,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp,$whenCondition6,$whenCondition5,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition4,$whenCondition3,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition2,$whenCondition1,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp) * Number of discrete states: 8 (sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.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.001292/0.9861, allocations: 310.1 kB / 1.036 GB, free: 4.746 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00291/0.9891, allocations: 2.975 MB / 1.038 GB, free: 1.762 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.9891, allocations: 0 / 1.038 GB, free: 1.762 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.00058/0.9897, allocations: 168.4 kB / 1.039 GB, free: 1.633 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.9901, allocations: 11.81 kB / 1.039 GB, free: 1.625 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.9916, allocations: 413.3 kB / 1.039 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000647/0.9923, allocations: 0.8106 MB / 1.04 GB, free: 396 kB / 0.6511 GB Notification: Performance of SimCode: time 1.373e-06/0.9923, allocations: 4 kB / 1.04 GB, free: 392 kB / 0.6511 GB Notification: Performance of Templates: time 0.01677/1.009, allocations: 5.138 MB / 1.045 GB, free: 11.29 MB / 0.6667 GB