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.SunRiseSetNegativeStartTime.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.SunRiseSetNegativeStartTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.247/2.247, allocations: 253.1 MB / 260.4 MB, free: 7.578 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.001784/0.001784, allocations: 188.7 kB / 319.6 MB, free: 3.32 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.168/2.168, allocations: 205.4 MB / 0.5704 GB, free: 15.14 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.001684/0.001684, allocations: 83.41 kB / 0.6746 GB, free: 4.504 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.073e-05/1.092e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2253, allocations: 106.2 MB / 0.8881 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7079/0.9333, allocations: 133.5 MB / 1.018 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.9336, allocations: 69.89 kB / 1.018 GB, free: 4.848 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.05923/0.9929, allocations: 9.963 MB / 1.028 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.298e-05/0.9929, allocations: 4 kB / 1.028 GB, free: 12.36 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.002014/0.995, allocations: 0.6176 MB / 1.029 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.995, allocations: 8.031 kB / 1.029 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.9951, allocations: 23.72 kB / 1.029 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.9954, allocations: 190.6 kB / 1.029 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.9954, allocations: 11.97 kB / 1.029 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.9955, allocations: 16 kB / 1.029 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003988/0.9959, allocations: 93.27 kB / 1.029 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.9964, allocations: 229.1 kB / 1.029 GB, free: 11.13 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.9964, allocations: 3.938 kB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.625e-05/0.9965, allocations: 3.984 kB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.9965, allocations: 4 kB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.9976, allocations: 0.8911 MB / 1.03 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/1, allocations: 472.7 kB / 1.031 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003505/1.001, allocations: 144.4 kB / 1.031 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.765e-05/1.001, allocations: 11.92 kB / 1.031 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005741/1.001, allocations: 269.1 kB / 1.031 GB, free: 9.238 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 3.777e-06/1.001, allocations: 3.938 kB / 1.031 GB, free: 9.234 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.001254/1.003, allocations: 283.8 kB / 1.031 GB, free: 8.996 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002027/1.003, allocations: 353.1 kB / 1.032 GB, free: 8.574 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/1.003, allocations: 151.7 kB / 1.032 GB, free: 8.434 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.074e-05/1.003, allocations: 36.81 kB / 1.032 GB, free: 8.395 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.923e-05/1.003, allocations: 95.89 kB / 1.032 GB, free: 8.301 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/1.004, allocations: 109.3 kB / 1.032 GB, free: 8.211 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/1.004, allocations: 4 kB / 1.032 GB, free: 8.207 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001634/1.004, allocations: 326.3 kB / 1.032 GB, free: 7.887 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/1.004, allocations: 91.48 kB / 1.032 GB, free: 7.828 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/1.004, allocations: 161.6 kB / 1.033 GB, free: 7.684 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008028/1.005, allocations: 144.4 kB / 1.033 GB, free: 7.57 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/1.005, allocations: 0 / 1.033 GB, free: 7.57 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001401/1.007, allocations: 362.9 kB / 1.033 GB, free: 7.27 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/1.007, allocations: 7.984 kB / 1.033 GB, free: 7.262 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/1.007, allocations: 8.094 kB / 1.033 GB, free: 7.254 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/1.007, allocations: 7.938 kB / 1.033 GB, free: 7.246 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006441/1.007, allocations: 63.02 kB / 1.033 GB, free: 7.188 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/1.007, allocations: 7.938 kB / 1.033 GB, free: 7.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006442/1.008, allocations: 59.56 kB / 1.033 GB, free: 7.121 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-05/1.008, allocations: 23.55 kB / 1.033 GB, free: 7.102 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.0002081/1.008, allocations: 119.7 kB / 1.033 GB, free: 6.984 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.931e-05/1.009, allocations: 23.72 kB / 1.033 GB, free: 6.961 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/1.01, allocations: 330.1 kB / 1.034 GB, free: 6.699 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/1.01, allocations: 8.188 kB / 1.034 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.128e-05/1.01, allocations: 7.906 kB / 1.034 GB, free: 6.684 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/1.01, allocations: 11.97 kB / 1.034 GB, free: 6.672 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005745/1.011, allocations: 300.5 kB / 1.034 GB, free: 6.383 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/1.011, allocations: 4 kB / 1.034 GB, free: 6.379 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006504/1.011, allocations: 71.22 kB / 1.034 GB, free: 6.312 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.987e-05/1.011, allocations: 8 kB / 1.034 GB, free: 6.305 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.95e-05/1.011, allocations: 11.23 kB / 1.034 GB, free: 6.297 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-05/1.011, allocations: 8 kB / 1.034 GB, free: 6.289 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.011, allocations: 3.938 kB / 1.034 GB, free: 6.285 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001849/1.013, allocations: 0.5666 MB / 1.035 GB, free: 5.684 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004323/1.014, allocations: 151.9 kB / 1.035 GB, free: 5.527 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/1.014, allocations: 11.12 kB / 1.035 GB, free: 5.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007074/1.015, allocations: 39.97 kB / 1.035 GB, free: 5.48 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/1.015, allocations: 43.53 kB / 1.035 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.675e-05/1.015, allocations: 26.86 kB / 1.035 GB, free: 5.426 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002065/1.015, allocations: 126.2 kB / 1.035 GB, free: 5.316 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001424/1.017, allocations: 203 kB / 1.035 GB, free: 5.121 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.001099/1.018, allocations: 309.3 kB / 1.036 GB, free: 4.812 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.003432/1.021, allocations: 2.968 MB / 1.038 GB, free: 1.836 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.021, allocations: 4 kB / 1.038 GB, free: 1.832 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007723/1.022, allocations: 164.5 kB / 1.039 GB, free: 1.707 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/1.022, allocations: 15.86 kB / 1.039 GB, free: 1.695 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/1.024, allocations: 414.5 kB / 1.039 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009858/1.025, allocations: 0.8119 MB / 1.04 GB, free: 472 kB / 0.6511 GB Notification: Performance of SimCode: time 1.332e-06/1.025, allocations: 0 / 1.04 GB, free: 472 kB / 0.6511 GB Notification: Performance of Templates: time 0.02098/1.046, allocations: 5.125 MB / 1.045 GB, free: 11.38 MB / 0.6667 GB