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.854/1.854, allocations: 288.3 MB / 303.2 MB, free: 8.148 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.001171/0.001171, allocations: 181.5 kB / 371.8 MB, free: 10.26 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.889/1.889, allocations: 205.4 MB / 0.6306 GB, free: 10.03 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001214/0.001213, allocations: 101.1 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004358/0.0004357, allocations: 15.97 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2762, allocations: 115.3 MB / 0.9794 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8394/1.116, allocations: 138.8 MB / 1.115 GB, free: 16.41 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/1.116, allocations: 69.2 kB / 1.115 GB, free: 16.41 MB / 0.6823 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.03161/1.148, allocations: 10.09 MB / 1.125 GB, free: 31.56 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.204e-06/1.148, allocations: 0 / 1.125 GB, free: 31.56 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.624e-05/1.148, allocations: 3.812 kB / 1.125 GB, free: 31.56 MB / 0.698 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.001714/1.149, allocations: 0.6252 MB / 1.126 GB, free: 31.09 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/1.15, allocations: 15.44 kB / 1.126 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/1.15, allocations: 25.53 kB / 1.126 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/1.15, allocations: 186.6 kB / 1.126 GB, free: 30.86 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/1.15, allocations: 127.7 kB / 1.126 GB, free: 30.73 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/1.15, allocations: 22.78 kB / 1.126 GB, free: 30.73 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/1.151, allocations: 244.1 kB / 1.126 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/1.151, allocations: 3.938 kB / 1.126 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/1.151, allocations: 10.56 kB / 1.126 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/1.151, allocations: 3.938 kB / 1.126 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002966/1.151, allocations: 116.8 kB / 1.126 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/1.153, allocations: 0.9532 MB / 1.127 GB, free: 29.76 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/1.154, allocations: 497.4 kB / 1.128 GB, free: 29.45 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.279e-05/1.154, allocations: 15.25 kB / 1.128 GB, free: 29.44 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004868/1.155, allocations: 304 kB / 1.128 GB, free: 29.27 MB / 0.698 GB Notification: Performance of pre-optimization done (n=40): time 4.148e-06/1.155, allocations: 0 / 1.128 GB, free: 29.27 MB / 0.698 GB Notification: Performance of matching and sorting (n=40): time 0.000788/1.155, allocations: 394.9 kB / 1.128 GB, free: 29.21 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/1.156, allocations: 364.5 kB / 1.129 GB, free: 28.79 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/1.156, allocations: 161.3 kB / 1.129 GB, free: 28.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.272e-05/1.156, allocations: 37.36 kB / 1.129 GB, free: 28.66 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.779e-05/1.156, allocations: 105.6 kB / 1.129 GB, free: 28.57 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/1.156, allocations: 108.5 kB / 1.129 GB, free: 28.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/1.156, allocations: 11.03 kB / 1.129 GB, free: 28.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001911/1.156, allocations: 336.7 kB / 1.129 GB, free: 28.19 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/1.157, allocations: 103.2 kB / 1.13 GB, free: 28.18 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/1.157, allocations: 181.1 kB / 1.13 GB, free: 28.11 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/1.157, allocations: 123.8 kB / 1.13 GB, free: 28.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/1.157, allocations: 0 / 1.13 GB, free: 28.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008747/1.158, allocations: 365.8 kB / 1.13 GB, free: 28.04 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/1.158, allocations: 7.688 kB / 1.13 GB, free: 28.04 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/1.158, allocations: 96 / 1.13 GB, free: 28.04 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/1.158, allocations: 7.812 kB / 1.13 GB, free: 28.04 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/1.159, allocations: 83.36 kB / 1.13 GB, free: 28.03 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/1.159, allocations: 4 kB / 1.13 GB, free: 28.03 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003277/1.159, allocations: 68.36 kB / 1.13 GB, free: 28 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/1.159, allocations: 20.61 kB / 1.13 GB, free: 28 MB / 0.698 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.0001783/1.159, allocations: 154.5 kB / 1.13 GB, free: 27.88 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.724e-05/1.159, allocations: 31.12 kB / 1.131 GB, free: 27.86 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006113/1.16, allocations: 357.2 kB / 1.131 GB, free: 27.77 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/1.16, allocations: 11.53 kB / 1.131 GB, free: 27.77 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/1.16, allocations: 3.906 kB / 1.131 GB, free: 27.77 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/1.16, allocations: 3.984 kB / 1.131 GB, free: 27.77 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003409/1.16, allocations: 354.6 kB / 1.131 GB, free: 27.51 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/1.16, allocations: 0 / 1.131 GB, free: 27.51 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/1.161, allocations: 80.98 kB / 1.131 GB, free: 27.49 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/1.161, allocations: 7.969 kB / 1.131 GB, free: 27.49 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/1.161, allocations: 14.5 kB / 1.131 GB, free: 27.49 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/1.161, allocations: 7.828 kB / 1.131 GB, free: 27.48 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.161, allocations: 3.844 kB / 1.131 GB, free: 27.48 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006382/1.161, allocations: 0.6082 MB / 1.132 GB, free: 27.07 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/1.162, allocations: 154.3 kB / 1.132 GB, free: 26.94 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.146e-05/1.162, allocations: 18.31 kB / 1.132 GB, free: 26.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/1.162, allocations: 38.56 kB / 1.132 GB, free: 26.92 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/1.162, allocations: 53.58 kB / 1.132 GB, free: 26.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/1.162, allocations: 22.95 kB / 1.132 GB, free: 26.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001075/1.162, allocations: 123.8 kB / 1.132 GB, free: 26.82 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.1e-07/1.162, allocations: 4 kB / 1.132 GB, free: 26.81 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007372/1.163, allocations: 219.2 kB / 1.133 GB, free: 26.76 MB / 0.698 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.000509/1.163, allocations: 314.8 kB / 1.133 GB, free: 26.59 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005398/1.164, allocations: 311.8 kB / 1.133 GB, free: 26.53 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.164, allocations: 7.781 kB / 1.133 GB, free: 26.53 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002231/1.164, allocations: 182.6 kB / 1.133 GB, free: 26.49 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/1.164, allocations: 29.73 kB / 1.133 GB, free: 26.48 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008823/1.165, allocations: 0.6247 MB / 1.134 GB, free: 26.05 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/1.166, allocations: 0.7703 MB / 1.135 GB, free: 25.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002237/1.166, allocations: 58.42 kB / 1.135 GB, free: 25.27 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/1.166, allocations: 53.09 kB / 1.135 GB, free: 25.26 MB / 0.698 GB Notification: Performance of SimCode: time 3.71e-07/1.166, allocations: 0 / 1.135 GB, free: 25.26 MB / 0.698 GB Notification: Performance of Templates: time 0.008313/1.174, allocations: 4.682 MB / 1.139 GB, free: 22.88 MB / 0.698 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)