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.3/2.3, allocations: 248.7 MB / 256.2 MB, free: 7.02 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.002301/0.002301, allocations: 184 kB / 315.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.3 MB / 0.5662 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001267/0.001266, allocations: 101.4 kB / 0.6704 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.391e-05/2.401e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2168, allocations: 106.3 MB / 0.8841 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9171/1.134, allocations: 133.5 MB / 1.014 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/1.134, allocations: 66.91 kB / 1.015 GB, free: 5.27 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.0615/1.196, allocations: 10.28 MB / 1.025 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.543e-06/1.196, allocations: 0 / 1.025 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 9.488e-06/1.196, allocations: 4 kB / 1.025 GB, free: 12.49 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.002044/1.198, allocations: 0.6168 MB / 1.025 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/1.198, allocations: 8.031 kB / 1.025 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/1.198, allocations: 27.41 kB / 1.025 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/1.198, allocations: 194.6 kB / 1.025 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/1.198, allocations: 7.984 kB / 1.025 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.522e-05/1.199, allocations: 16 kB / 1.025 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000358/1.199, allocations: 88.41 kB / 1.026 GB, free: 11.5 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000469/1.199, allocations: 223.2 kB / 1.026 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/1.199, allocations: 4 kB / 1.026 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/1.199, allocations: 3.25 kB / 1.026 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/1.199, allocations: 4 kB / 1.026 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/1.201, allocations: 0.9174 MB / 1.027 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/1.203, allocations: 469.1 kB / 1.027 GB, free: 9.801 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/1.204, allocations: 140.9 kB / 1.027 GB, free: 9.652 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 6.734e-05/1.204, allocations: 23.27 kB / 1.027 GB, free: 9.633 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006173/1.204, allocations: 295.8 kB / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 4.097e-06/1.204, allocations: 0 / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.00379/1.208, allocations: 499.2 kB / 1.028 GB, free: 8.887 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002123/1.209, allocations: 345.4 kB / 1.028 GB, free: 8.473 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/1.209, allocations: 151.9 kB / 1.028 GB, free: 8.336 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.321e-05/1.209, allocations: 41.38 kB / 1.029 GB, free: 8.293 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/1.209, allocations: 103.9 kB / 1.029 GB, free: 8.191 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/1.209, allocations: 107.8 kB / 1.029 GB, free: 8.102 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/1.209, allocations: 4 kB / 1.029 GB, free: 8.098 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001525/1.209, allocations: 328.1 kB / 1.029 GB, free: 7.777 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/1.21, allocations: 88.92 kB / 1.029 GB, free: 7.723 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/1.21, allocations: 168 kB / 1.029 GB, free: 7.57 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004792/1.215, allocations: 437.6 kB / 1.03 GB, free: 7.176 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/1.215, allocations: 4 kB / 1.03 GB, free: 7.172 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.005416/1.22, allocations: 0.6406 MB / 1.03 GB, free: 6.59 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/1.22, allocations: 4 kB / 1.03 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.22, allocations: 4 kB / 1.03 GB, free: 6.582 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/1.22, allocations: 4 kB / 1.03 GB, free: 6.578 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006083/1.221, allocations: 71.7 kB / 1.03 GB, free: 6.512 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/1.221, allocations: 8.781 kB / 1.03 GB, free: 6.504 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005665/1.222, allocations: 51.61 kB / 1.03 GB, free: 6.453 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.95e-05/1.222, allocations: 24.17 kB / 1.03 GB, free: 6.434 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.0001963/1.222, allocations: 132 kB / 1.031 GB, free: 6.301 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003568/1.226, allocations: 0.4941 MB / 1.031 GB, free: 5.855 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.593e-05/1.226, allocations: 23.81 kB / 1.031 GB, free: 5.832 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/1.227, allocations: 328.6 kB / 1.031 GB, free: 5.574 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.227e-05/1.227, allocations: 11.95 kB / 1.031 GB, free: 5.562 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/1.227, allocations: 4 kB / 1.031 GB, free: 5.559 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/1.227, allocations: 15.92 kB / 1.031 GB, free: 5.543 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00052/1.227, allocations: 291.5 kB / 1.032 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/1.227, allocations: 4 kB / 1.032 GB, free: 5.258 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000589/1.228, allocations: 71.41 kB / 1.032 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.351e-05/1.228, allocations: 4 kB / 1.032 GB, free: 5.188 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/1.228, allocations: 15.17 kB / 1.032 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.091e-05/1.228, allocations: 7.938 kB / 1.032 GB, free: 5.168 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/1.228, allocations: 4 kB / 1.032 GB, free: 5.164 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003948/1.232, allocations: 0.779 MB / 1.033 GB, free: 4.359 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/1.232, allocations: 152 kB / 1.033 GB, free: 4.203 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.51e-05/1.232, allocations: 11.69 kB / 1.033 GB, free: 4.195 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004763/1.233, allocations: 27.97 kB / 1.033 GB, free: 4.168 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/1.233, allocations: 55.7 kB / 1.033 GB, free: 4.121 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/1.233, allocations: 23.86 kB / 1.033 GB, free: 4.102 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001444/1.233, allocations: 128.6 kB / 1.033 GB, free: 3.992 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.81e-07/1.233, allocations: 0 / 1.033 GB, free: 3.992 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0009756/1.234, allocations: 199.2 kB / 1.033 GB, free: 3.801 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.005128/1.239, allocations: 2.278 MB / 1.035 GB, free: 1.516 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002482/1.242, allocations: 2.97 MB / 1.038 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.242, allocations: 0 / 1.038 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004997/1.243, allocations: 166.1 kB / 1.038 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/1.243, allocations: 14.8 kB / 1.038 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/1.245, allocations: 0.5241 MB / 1.039 GB, free: 13.86 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/1.245, allocations: 0.7689 MB / 1.04 GB, free: 13.07 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0003782/1.246, allocations: 63.97 kB / 1.04 GB, free: 13.01 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/1.246, allocations: 93.52 kB / 1.04 GB, free: 12.97 MB / 0.6667 GB Notification: Performance of SimCode: time 1.042e-06/1.246, allocations: 3.938 kB / 1.04 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05529/1.301, allocations: 6.734 MB / 1.046 GB, free: 6.262 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003475/1.302, allocations: 179.5 kB / 1.047 GB, free: 6.062 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.741/4.043, allocations: 7.938 kB / 1.047 GB, free: 6.055 MB / 0.6667 GB