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.SunRiseSet.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.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.334/2.334, allocations: 253.1 MB / 260.4 MB, free: 7.602 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.001703/0.001703, allocations: 177.3 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 2.083/2.083, 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.001286/0.001285, allocations: 97.64 kB / 0.6746 GB, free: 4.406 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.678e-06/9.778e-06, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2061, allocations: 106.3 MB / 0.8881 GB, free: 12.13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7645/0.9707, allocations: 133.5 MB / 1.018 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003404/0.9711, allocations: 68.03 kB / 1.018 GB, free: 4.832 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.06547/1.037, allocations: 9.961 MB / 1.028 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.309e-05/1.037, allocations: 4 kB / 1.028 GB, free: 12.32 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.001966/1.039, allocations: 0.6191 MB / 1.029 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/1.039, allocations: 8.031 kB / 1.029 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/1.039, allocations: 23.72 kB / 1.029 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/1.039, allocations: 190.6 kB / 1.029 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/1.039, allocations: 4 kB / 1.029 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/1.039, allocations: 12 kB / 1.029 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004014/1.04, allocations: 103.8 kB / 1.029 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/1.04, allocations: 225.5 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/1.04, allocations: 7.922 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/1.04, allocations: 4 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/1.04, allocations: 4 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009818/1.041, allocations: 0.8967 MB / 1.03 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/1.044, allocations: 465.9 kB / 1.031 GB, free: 9.652 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/1.044, allocations: 145.2 kB / 1.031 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.885e-05/1.044, allocations: 11.98 kB / 1.031 GB, free: 9.484 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/1.045, allocations: 267.3 kB / 1.031 GB, free: 9.211 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 3.667e-06/1.045, allocations: 0 / 1.031 GB, free: 9.211 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.001208/1.046, allocations: 277 kB / 1.031 GB, free: 8.977 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002056/1.046, allocations: 361.5 kB / 1.032 GB, free: 8.547 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/1.046, allocations: 151.4 kB / 1.032 GB, free: 8.406 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/1.047, allocations: 33.45 kB / 1.032 GB, free: 8.371 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/1.047, allocations: 100.3 kB / 1.032 GB, free: 8.273 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/1.047, allocations: 106.2 kB / 1.032 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/1.047, allocations: 0 / 1.032 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000157/1.047, allocations: 336.4 kB / 1.032 GB, free: 7.855 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/1.047, allocations: 92.86 kB / 1.032 GB, free: 7.797 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004103/1.048, allocations: 151.5 kB / 1.033 GB, free: 7.664 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007766/1.049, allocations: 149 kB / 1.033 GB, free: 7.547 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/1.049, allocations: 4 kB / 1.033 GB, free: 7.543 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001457/1.05, allocations: 368.1 kB / 1.033 GB, free: 7.234 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/1.05, allocations: 4 kB / 1.033 GB, free: 7.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/1.05, allocations: 0 / 1.033 GB, free: 7.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/1.05, allocations: 4.094 kB / 1.033 GB, free: 7.227 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000657/1.051, allocations: 67.83 kB / 1.033 GB, free: 7.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/1.051, allocations: 11.92 kB / 1.033 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/1.052, allocations: 59.52 kB / 1.033 GB, free: 7.094 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.766e-05/1.052, allocations: 19.42 kB / 1.033 GB, free: 7.078 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.0002047/1.052, allocations: 130.1 kB / 1.033 GB, free: 6.953 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.649e-05/1.052, allocations: 23.72 kB / 1.033 GB, free: 6.93 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/1.053, allocations: 328.6 kB / 1.034 GB, free: 6.668 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/1.053, allocations: 12 kB / 1.034 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/1.053, allocations: 7.906 kB / 1.034 GB, free: 6.648 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/1.053, allocations: 7.984 kB / 1.034 GB, free: 6.641 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005778/1.054, allocations: 294.6 kB / 1.034 GB, free: 6.355 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/1.054, allocations: 0 / 1.034 GB, free: 6.355 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006447/1.055, allocations: 75.47 kB / 1.034 GB, free: 6.285 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-05/1.055, allocations: 4.188 kB / 1.034 GB, free: 6.281 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6e-05/1.055, allocations: 15.67 kB / 1.034 GB, free: 6.27 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.849e-06/1.055, allocations: 4 kB / 1.034 GB, free: 6.266 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/1.055, allocations: 7.938 kB / 1.034 GB, free: 6.258 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001444/1.056, allocations: 0.5801 MB / 1.035 GB, free: 5.645 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002853/1.056, allocations: 143.6 kB / 1.035 GB, free: 5.496 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/1.057, allocations: 11.61 kB / 1.035 GB, free: 5.488 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005227/1.057, allocations: 31.97 kB / 1.035 GB, free: 5.457 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/1.057, allocations: 51.09 kB / 1.035 GB, free: 5.414 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.86e-05/1.057, allocations: 19.5 kB / 1.035 GB, free: 5.398 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000162/1.058, allocations: 121.3 kB / 1.035 GB, free: 5.297 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001033/1.059, allocations: 207.4 kB / 1.035 GB, free: 5.098 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.0009621/1.06, allocations: 308.9 kB / 1.036 GB, free: 4.789 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002884/1.062, allocations: 2.971 MB / 1.038 GB, free: 1.809 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.063, allocations: 0 / 1.038 GB, free: 1.809 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005594/1.063, allocations: 167.2 kB / 1.039 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/1.063, allocations: 19.45 kB / 1.039 GB, free: 1.664 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/1.065, allocations: 410.2 kB / 1.039 GB, free: 1.266 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006574/1.066, allocations: 0.8107 MB / 1.04 GB, free: 448 kB / 0.6511 GB Notification: Performance of SimCode: time 1.153e-06/1.066, allocations: 0.75 kB / 1.04 GB, free: 448 kB / 0.6511 GB Notification: Performance of Templates: time 0.01654/1.082, allocations: 5.121 MB / 1.045 GB, free: 11.35 MB / 0.6667 GB