Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.283/2.283, allocations: 248.5 MB / 261.1 MB, free: 6.012 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001406/0.001405, allocations: 183.8 kB / 320.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.975/1.975, allocations: 205.2 MB / 0.571 GB, free: 11.83 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 109.3 kB / 0.6754 GB, free: 0.9141 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.296e-05/4.312e-05, allocations: 4 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2187, allocations: 106.2 MB / 0.8907 GB, free: 7.48 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8765/1.095, allocations: 133.2 MB / 1.021 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/1.096, allocations: 72.27 kB / 1.021 GB, free: 2.035 MB / 0.6355 GB [/home/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 - DAE generated: time 0.05639/1.152, allocations: 10.34 MB / 1.031 GB, free: 9.094 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.014e-06/1.152, allocations: 0 / 1.031 GB, free: 9.094 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.282e-05/1.152, allocations: 4 kB / 1.031 GB, free: 9.09 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.00194/1.154, allocations: 0.6118 MB / 1.032 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/1.154, allocations: 8.031 kB / 1.032 GB, free: 8.441 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.726e-05/1.154, allocations: 50.05 kB / 1.032 GB, free: 8.395 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.245e-05/1.154, allocations: 23.72 kB / 1.032 GB, free: 8.371 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/1.155, allocations: 190.6 kB / 1.032 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/1.155, allocations: 133.3 kB / 1.032 GB, free: 7.996 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.352e-05/1.155, allocations: 15.31 kB / 1.032 GB, free: 7.984 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005613/1.156, allocations: 250.2 kB / 1.032 GB, free: 7.738 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/1.156, allocations: 7.938 kB / 1.032 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/1.156, allocations: 6.812 kB / 1.032 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/1.156, allocations: 11.94 kB / 1.032 GB, free: 7.719 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/1.156, allocations: 116.7 kB / 1.032 GB, free: 7.633 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/1.157, allocations: 0.9416 MB / 1.033 GB, free: 6.668 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002576/1.16, allocations: 488.8 kB / 1.034 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003425/1.16, allocations: 159.1 kB / 1.034 GB, free: 5.969 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.702e-05/1.16, allocations: 7 kB / 1.034 GB, free: 5.965 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006511/1.161, allocations: 319.2 kB / 1.034 GB, free: 5.641 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 3.477e-06/1.161, allocations: 0 / 1.034 GB, free: 5.641 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.001068/1.162, allocations: 310 kB / 1.034 GB, free: 5.387 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002194/1.162, allocations: 354 kB / 1.035 GB, free: 4.965 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/1.163, allocations: 155 kB / 1.035 GB, free: 4.824 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.699e-05/1.163, allocations: 40.45 kB / 1.035 GB, free: 4.785 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.997e-05/1.163, allocations: 104.9 kB / 1.035 GB, free: 4.688 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/1.163, allocations: 109.6 kB / 1.035 GB, free: 4.598 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/1.163, allocations: 9.875 kB / 1.035 GB, free: 4.594 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001559/1.163, allocations: 331.8 kB / 1.036 GB, free: 4.27 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/1.164, allocations: 101.4 kB / 1.036 GB, free: 4.203 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/1.164, allocations: 172.1 kB / 1.036 GB, free: 4.047 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003744/1.164, allocations: 103.5 kB / 1.036 GB, free: 3.973 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/1.164, allocations: 0 / 1.036 GB, free: 3.973 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001053/1.165, allocations: 356 kB / 1.036 GB, free: 3.688 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/1.165, allocations: 12 kB / 1.036 GB, free: 3.676 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/1.165, allocations: 0 / 1.036 GB, free: 3.676 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/1.166, allocations: 7.953 kB / 1.036 GB, free: 3.668 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007826/1.166, allocations: 79.31 kB / 1.036 GB, free: 3.594 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/1.166, allocations: 4 kB / 1.036 GB, free: 3.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/1.167, allocations: 53.78 kB / 1.036 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/1.167, allocations: 27.05 kB / 1.036 GB, free: 3.52 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): 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.0002139/1.167, allocations: 133.8 kB / 1.037 GB, free: 3.398 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/1.167, allocations: 31.02 kB / 1.037 GB, free: 3.371 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/1.169, allocations: 352.6 kB / 1.037 GB, free: 3.094 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.102e-05/1.169, allocations: 15.95 kB / 1.037 GB, free: 3.078 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/1.169, allocations: 7.938 kB / 1.037 GB, free: 3.07 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/1.169, allocations: 4 kB / 1.037 GB, free: 3.066 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006439/1.169, allocations: 353.6 kB / 1.037 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/1.169, allocations: 0 / 1.037 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006417/1.17, allocations: 71.03 kB / 1.037 GB, free: 2.66 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-05/1.17, allocations: 4.375 kB / 1.037 GB, free: 2.656 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.638e-05/1.17, allocations: 21.98 kB / 1.037 GB, free: 2.645 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.47e-05/1.17, allocations: 11.94 kB / 1.037 GB, free: 2.633 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/1.17, allocations: 7.953 kB / 1.037 GB, free: 2.625 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/1.171, allocations: 0.607 MB / 1.038 GB, free: 1.992 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/1.172, allocations: 146.6 kB / 1.038 GB, free: 1.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.536e-05/1.172, allocations: 18.36 kB / 1.038 GB, free: 1.832 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004715/1.172, allocations: 34.92 kB / 1.038 GB, free: 1.805 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/1.172, allocations: 58.88 kB / 1.038 GB, free: 1.754 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/1.173, allocations: 22.5 kB / 1.038 GB, free: 1.738 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001635/1.173, allocations: 131.8 kB / 1.038 GB, free: 1.625 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.41e-07/1.173, allocations: 0 / 1.038 GB, free: 1.625 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0009818/1.174, allocations: 219.2 kB / 1.039 GB, free: 1.426 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.002709/1.176, allocations: 2.105 MB / 1.041 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001005/1.178, allocations: 296.1 kB / 1.041 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.178, allocations: 0 / 1.041 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005308/1.178, allocations: 191.3 kB / 1.041 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/1.178, allocations: 22.23 kB / 1.041 GB, free: 14.95 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/1.18, allocations: 0.5711 MB / 1.042 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/1.181, allocations: 0.765 MB / 1.042 GB, free: 13.61 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0004231/1.181, allocations: 60.42 kB / 1.042 GB, free: 13.55 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/1.182, allocations: 88.64 kB / 1.043 GB, free: 13.51 MB / 0.6667 GB Notification: Performance of SimCode: time 1.252e-06/1.182, allocations: 0 / 1.043 GB, free: 13.51 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04533/1.227, allocations: 7.029 MB / 1.049 GB, free: 6.648 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003573/1.227, allocations: 186.7 kB / 1.05 GB, free: 6.422 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.694/3.921, allocations: 0 / 1.05 GB, free: 6.422 MB / 0.6667 GB