Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.706/1.706, allocations: 285.4 MB / 298 MB, free: 6.004 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.001189/0.001189, allocations: 180.3 kB / 366.4 MB, free: 2.102 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.867/1.867, allocations: 205.1 MB / 0.6248 GB, free: 7.746 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.0008011/0.0008011, allocations: 84.52 kB / 0.738 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.391e-05, allocations: 4 kB / 0.8583 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7491/0.7491, allocations: 115.3 MB / 0.9709 GB, free: 77.75 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1949/0.9441, allocations: 138.7 MB / 1.106 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.9444, allocations: 67.97 kB / 1.106 GB, free: 12.98 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Controls/OBC/CDL/Utilities/SunRiseSet.mo:122:7-122:30: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 - DAE generated: time 0.03351/0.9779, allocations: 10.05 MB / 1.116 GB, free: 2.996 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9779, allocations: 0 / 1.116 GB, free: 2.996 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.978, allocations: 4 kB / 1.116 GB, free: 2.992 MB / 0.7136 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.001532/0.9795, allocations: 0.6134 MB / 1.117 GB, free: 2.34 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.934e-05/0.9796, allocations: 9.719 kB / 1.117 GB, free: 2.332 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.9798, allocations: 23.8 kB / 1.117 GB, free: 2.309 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.9801, allocations: 190.7 kB / 1.117 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002295/0.9803, allocations: 138.7 kB / 1.117 GB, free: 1.922 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.457e-05/0.9804, allocations: 16 kB / 1.117 GB, free: 1.906 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.9809, allocations: 247.7 kB / 1.117 GB, free: 1.621 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.9809, allocations: 0 / 1.117 GB, free: 1.621 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.981, allocations: 11.98 kB / 1.117 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.981, allocations: 4 kB / 1.117 GB, free: 1.605 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.9813, allocations: 115.8 kB / 1.118 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.9826, allocations: 0.955 MB / 1.119 GB, free: 460 kB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.9842, allocations: 491.7 kB / 1.119 GB, free: 15.86 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.9844, allocations: 142.4 kB / 1.119 GB, free: 15.68 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.9845, allocations: 19.92 kB / 1.119 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004898/0.985, allocations: 288.1 kB / 1.119 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=40): time 3.035e-06/0.985, allocations: 0 / 1.119 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of matching and sorting (n=40): time 0.0007637/0.9858, allocations: 319.5 kB / 1.12 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002545/0.986, allocations: 362 kB / 1.12 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.9862, allocations: 163.8 kB / 1.12 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.9863, allocations: 37.7 kB / 1.12 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.9864, allocations: 108.9 kB / 1.12 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.9866, allocations: 110.7 kB / 1.12 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.9866, allocations: 12 kB / 1.12 GB, free: 14.13 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.9868, allocations: 330.8 kB / 1.121 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.987, allocations: 97.11 kB / 1.121 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.9873, allocations: 164.4 kB / 1.121 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.9876, allocations: 109.2 kB / 1.121 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.9876, allocations: 0 / 1.121 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006863/0.9883, allocations: 351 kB / 1.121 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.9884, allocations: 4 kB / 1.121 GB, free: 13.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.9884, allocations: 4 kB / 1.121 GB, free: 13.06 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.9884, allocations: 4 kB / 1.121 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003885/0.9888, allocations: 81.41 kB / 1.122 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.9888, allocations: 4 kB / 1.122 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.9892, allocations: 67.61 kB / 1.122 GB, free: 12.91 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.9892, allocations: 23.92 kB / 1.122 GB, free: 12.88 MB / 0.7292 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): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * 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.0001576/0.9894, allocations: 136.3 kB / 1.122 GB, free: 12.74 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.709e-05/0.9895, allocations: 23.72 kB / 1.122 GB, free: 12.72 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00074/0.9902, allocations: 360.4 kB / 1.122 GB, free: 12.36 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.9902, allocations: 8 kB / 1.122 GB, free: 12.36 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.9903, allocations: 4 kB / 1.122 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.9903, allocations: 7.984 kB / 1.122 GB, free: 12.34 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004386/0.9907, allocations: 357 kB / 1.123 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.9907, allocations: 4 kB / 1.123 GB, free: 11.94 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002953/0.991, allocations: 75.84 kB / 1.123 GB, free: 11.87 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.084e-05/0.9911, allocations: 8.188 kB / 1.123 GB, free: 11.86 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.9911, allocations: 19.98 kB / 1.123 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.9911, allocations: 6.188 kB / 1.123 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.9911, allocations: 4 kB / 1.123 GB, free: 11.83 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008223/0.992, allocations: 0.6035 MB / 1.123 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.9922, allocations: 152.5 kB / 1.123 GB, free: 10.94 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.657e-05/0.9922, allocations: 16 kB / 1.123 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.9925, allocations: 39.97 kB / 1.123 GB, free: 10.89 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.9926, allocations: 55.83 kB / 1.123 GB, free: 10.83 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.9927, allocations: 23.98 kB / 1.124 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001226/0.9928, allocations: 127.3 kB / 1.124 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.01e-07/0.9928, allocations: 4 kB / 1.124 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007792/0.9936, allocations: 215.7 kB / 1.124 GB, free: 10.47 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,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.0008045/0.9944, allocations: 317.8 kB / 1.124 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005919/0.995, allocations: 306.6 kB / 1.124 GB, free: 9.852 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.995, allocations: 0 / 1.124 GB, free: 9.852 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.9953, allocations: 177.2 kB / 1.125 GB, free: 9.68 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.9956, allocations: 29.55 kB / 1.125 GB, free: 9.652 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000871/0.9964, allocations: 432.9 kB / 1.125 GB, free: 9.176 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.9968, allocations: 0.7689 MB / 1.126 GB, free: 8.379 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002468/0.9971, allocations: 55.53 kB / 1.126 GB, free: 8.324 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.9972, allocations: 51.41 kB / 1.126 GB, free: 8.273 MB / 0.7292 GB Notification: Performance of SimCode: time 7.12e-07/0.9972, allocations: 3.938 kB / 1.126 GB, free: 8.27 MB / 0.7292 GB Notification: Performance of Templates: time 0.009718/1.007, allocations: 4.692 MB / 1.13 GB, free: 3.652 MB / 0.7292 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)