Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.575/1.575, allocations: 297.8 MB / 313.7 MB, free: 140 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009126/0.0009129, allocations: 184.5 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 223.2 MB / 0.6626 GB, free: 4.27 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007516/0.0007514, allocations: 98.73 kB / 0.7808 GB, free: 50.5 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004009/0.0004012, allocations: 12 kB / 0.9088 GB, free: 2.863 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6288/0.6292, allocations: 120.3 MB / 1.026 GB, free: 55.93 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1887/0.8179, allocations: 142 MB / 1.165 GB, free: 1.723 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.8183, allocations: 71.34 kB / 1.165 GB, free: 1.664 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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.03423/0.8525, allocations: 10.25 MB / 1.175 GB, free: 9.715 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.195e-06/0.8525, allocations: 0 / 1.175 GB, free: 9.715 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.24e-05/0.8526, allocations: 4 kB / 1.175 GB, free: 9.711 MB / 0.7448 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.00142/0.854, allocations: 0.6316 MB / 1.176 GB, free: 9.035 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.854, allocations: 12.03 kB / 1.176 GB, free: 9.023 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.652e-05/0.8541, allocations: 20.66 kB / 1.176 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.8543, allocations: 189.7 kB / 1.176 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.8545, allocations: 135.9 kB / 1.176 GB, free: 8.625 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.8545, allocations: 16.38 kB / 1.176 GB, free: 8.609 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003767/0.8549, allocations: 252.2 kB / 1.176 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.8549, allocations: 3.938 kB / 1.176 GB, free: 8.316 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.855, allocations: 4.75 kB / 1.176 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.855, allocations: 8 kB / 1.176 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.8552, allocations: 115.7 kB / 1.176 GB, free: 8.191 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009856/0.8562, allocations: 0.9604 MB / 1.177 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.8575, allocations: 496.2 kB / 1.178 GB, free: 6.551 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.8577, allocations: 151 kB / 1.178 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.8578, allocations: 12 kB / 1.178 GB, free: 6.355 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004413/0.8582, allocations: 299.8 kB / 1.178 GB, free: 6.008 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=40): time 4.158e-06/0.8582, allocations: 2.203 kB / 1.178 GB, free: 6.008 MB / 0.7448 GB Notification: Performance of matching and sorting (n=40): time 0.0008183/0.8591, allocations: 405 kB / 1.179 GB, free: 5.609 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002005/0.8593, allocations: 354 kB / 1.179 GB, free: 5.184 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.8595, allocations: 175.2 kB / 1.179 GB, free: 5 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.866e-05/0.8595, allocations: 41.7 kB / 1.179 GB, free: 4.953 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.985e-05/0.8596, allocations: 109.4 kB / 1.179 GB, free: 4.84 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.8597, allocations: 114.5 kB / 1.179 GB, free: 4.727 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.8597, allocations: 8 kB / 1.179 GB, free: 4.719 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.8599, allocations: 334.8 kB / 1.18 GB, free: 4.383 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.8602, allocations: 112.9 kB / 1.18 GB, free: 4.273 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.8604, allocations: 180.4 kB / 1.18 GB, free: 4.078 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.861, allocations: 274.1 kB / 1.18 GB, free: 3.793 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.861, allocations: 0 / 1.18 GB, free: 3.793 MB / 0.7448 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007333/0.8617, allocations: 372 kB / 1.181 GB, free: 3.426 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.8618, allocations: 8 kB / 1.181 GB, free: 3.418 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.8618, allocations: 0 / 1.181 GB, free: 3.418 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.8618, allocations: 8 kB / 1.181 GB, free: 3.41 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003563/0.8622, allocations: 75.88 kB / 1.181 GB, free: 3.336 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.8622, allocations: 4 kB / 1.181 GB, free: 3.332 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.8625, allocations: 55.66 kB / 1.181 GB, free: 3.277 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.8625, allocations: 27.92 kB / 1.181 GB, free: 3.25 MB / 0.7448 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 () * Number of clocked 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.0001844/0.8627, allocations: 160 kB / 1.181 GB, free: 3.086 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.439e-05/0.8628, allocations: 23.72 kB / 1.181 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007154/0.8635, allocations: 359.3 kB / 1.181 GB, free: 2.715 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.8635, allocations: 16 kB / 1.181 GB, free: 2.699 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-05/0.8636, allocations: 4.656 kB / 1.181 GB, free: 2.695 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.8636, allocations: 3.984 kB / 1.181 GB, free: 2.691 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004141/0.864, allocations: 359 kB / 1.182 GB, free: 2.293 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.864, allocations: 4 kB / 1.182 GB, free: 2.289 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002717/0.8643, allocations: 67.91 kB / 1.182 GB, free: 2.223 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.687e-06/0.8643, allocations: 8 kB / 1.182 GB, free: 2.215 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.8643, allocations: 15.98 kB / 1.182 GB, free: 2.199 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/0.8644, allocations: 13.75 kB / 1.182 GB, free: 2.188 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.8644, allocations: 0 / 1.182 GB, free: 2.188 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006924/0.8651, allocations: 490.8 kB / 1.182 GB, free: 1.66 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.8653, allocations: 152.5 kB / 1.182 GB, free: 1.492 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.8653, allocations: 12 kB / 1.182 GB, free: 1.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.8656, allocations: 39.97 kB / 1.182 GB, free: 1.441 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.8657, allocations: 57.31 kB / 1.182 GB, free: 1.387 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.903e-05/0.8657, allocations: 23.98 kB / 1.182 GB, free: 1.363 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001207/0.8659, allocations: 132 kB / 1.183 GB, free: 1.234 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.01e-07/0.8659, allocations: 0 / 1.183 GB, free: 1.234 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0007801/0.8667, allocations: 219.7 kB / 1.183 GB, free: 1.02 MB / 0.7448 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) * Number of clocked states: 0 () * 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.0007746/0.8674, allocations: 321.6 kB / 1.183 GB, free: 0.7031 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006333/0.8681, allocations: 320.9 kB / 1.183 GB, free: 400 kB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8681, allocations: 0 / 1.183 GB, free: 400 kB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.8684, allocations: 179.2 kB / 1.184 GB, free: 224 kB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.8687, allocations: 40.47 kB / 1.184 GB, free: 184 kB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.8697, allocations: 0.6327 MB / 1.184 GB, free: 15.49 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.8701, allocations: 0.7668 MB / 1.185 GB, free: 14.7 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0002561/0.8703, allocations: 56.72 kB / 1.185 GB, free: 14.65 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.8704, allocations: 43.41 kB / 1.185 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of SimCode: time 3.3e-07/0.8705, allocations: 0 / 1.185 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of Templates: time 0.009252/0.8797, allocations: 4.705 MB / 1.19 GB, free: 10.05 MB / 0.7605 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)