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.177/2.177, allocations: 251 MB / 265.9 MB, free: 11.69 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001642/0.001641, allocations: 178.7 kB / 325.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.445/2.445, allocations: 205.4 MB / 0.5764 GB, free: 21.18 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.001187/0.001188, allocations: 100.3 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000483/0.000483, allocations: 17.25 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2047, allocations: 106.3 MB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2351/0.4399, allocations: 133.3 MB / 1.029 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4402, allocations: 75.95 kB / 1.029 GB, free: 12.39 MB / 0.6823 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.05718/0.4974, allocations: 10.36 MB / 1.039 GB, free: 2.016 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.873e-06/0.4975, allocations: 0 / 1.039 GB, free: 2.016 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.765e-05/0.4975, allocations: 4 kB / 1.039 GB, free: 2.012 MB / 0.6823 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.002032/0.4996, allocations: 0.6231 MB / 1.04 GB, free: 1.34 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.4996, allocations: 16.03 kB / 1.04 GB, free: 1.324 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.492e-05/0.4997, allocations: 50.55 kB / 1.04 GB, free: 1.266 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.12e-05/0.4998, allocations: 19.81 kB / 1.04 GB, free: 1.246 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.5, allocations: 198.6 kB / 1.04 GB, free: 1.012 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.5003, allocations: 126.7 kB / 1.04 GB, free: 0.8633 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-05/0.5004, allocations: 27.98 kB / 1.04 GB, free: 0.8359 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.5009, allocations: 247.6 kB / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.501, allocations: 0 / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.501, allocations: 8 kB / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.501, allocations: 4 kB / 1.04 GB, free: 0.5391 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.5015, allocations: 119.7 kB / 1.041 GB, free: 432 kB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.5029, allocations: 0.955 MB / 1.042 GB, free: 15.38 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002603/0.5055, allocations: 491.4 kB / 1.042 GB, free: 14.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 6.621e-05/0.5056, allocations: 12.27 kB / 1.042 GB, free: 14.78 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007042/0.5064, allocations: 308.6 kB / 1.042 GB, free: 14.42 MB / 0.698 GB Notification: Performance of pre-optimization done (n=40): time 3.847e-06/0.5064, allocations: 0 / 1.042 GB, free: 14.42 MB / 0.698 GB Notification: Performance of matching and sorting (n=40): time 0.001413/0.5078, allocations: 405.3 kB / 1.043 GB, free: 14.02 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000221/0.5081, allocations: 354.1 kB / 1.043 GB, free: 13.59 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.5083, allocations: 159 kB / 1.043 GB, free: 13.43 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.399e-05/0.5084, allocations: 41.7 kB / 1.043 GB, free: 13.38 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.5085, allocations: 104.9 kB / 1.043 GB, free: 13.27 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.5087, allocations: 114.4 kB / 1.043 GB, free: 13.16 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.5087, allocations: 11.94 kB / 1.043 GB, free: 13.15 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.5089, allocations: 338.8 kB / 1.044 GB, free: 12.81 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.5094, allocations: 101.1 kB / 1.044 GB, free: 12.71 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005059/0.5099, allocations: 176.4 kB / 1.044 GB, free: 12.51 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005283/0.5105, allocations: 115.9 kB / 1.044 GB, free: 12.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.5105, allocations: 0 / 1.044 GB, free: 12.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001424/0.5119, allocations: 365.9 kB / 1.044 GB, free: 12.04 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.512, allocations: 4 kB / 1.044 GB, free: 12.03 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.512, allocations: 4 kB / 1.044 GB, free: 12.03 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.157e-05/0.512, allocations: 11.89 kB / 1.044 GB, free: 12.02 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.5128, allocations: 76.88 kB / 1.045 GB, free: 11.94 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/0.5128, allocations: 4 kB / 1.045 GB, free: 11.94 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006353/0.5135, allocations: 63.66 kB / 1.045 GB, free: 11.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.5135, allocations: 19.98 kB / 1.045 GB, free: 11.86 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.0003106/0.5139, allocations: 157.8 kB / 1.045 GB, free: 11.69 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.836e-05/0.514, allocations: 27.7 kB / 1.045 GB, free: 11.66 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.5153, allocations: 369.9 kB / 1.045 GB, free: 11.29 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.5153, allocations: 8 kB / 1.045 GB, free: 11.29 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/0.5153, allocations: 7.953 kB / 1.045 GB, free: 11.28 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.5154, allocations: 8.172 kB / 1.045 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006882/0.5161, allocations: 345.1 kB / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.5161, allocations: 7.984 kB / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/0.5167, allocations: 75.89 kB / 1.046 GB, free: 10.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.465e-05/0.5168, allocations: 8 kB / 1.046 GB, free: 10.79 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.873e-05/0.5168, allocations: 12 kB / 1.046 GB, free: 10.78 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.379e-05/0.5168, allocations: 11.88 kB / 1.046 GB, free: 10.77 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.5169, allocations: 4 kB / 1.046 GB, free: 10.77 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.5183, allocations: 0.6098 MB / 1.046 GB, free: 10.04 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.5186, allocations: 148.5 kB / 1.046 GB, free: 9.871 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/0.5187, allocations: 16.25 kB / 1.046 GB, free: 9.855 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004848/0.5192, allocations: 47.97 kB / 1.046 GB, free: 9.809 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.5194, allocations: 51.83 kB / 1.046 GB, free: 9.758 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.727e-05/0.5195, allocations: 23.98 kB / 1.047 GB, free: 9.734 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001851/0.5197, allocations: 135.8 kB / 1.047 GB, free: 9.602 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.21e-07/0.5197, allocations: 0 / 1.047 GB, free: 9.602 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001063/0.5208, allocations: 215.7 kB / 1.047 GB, free: 9.391 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.003083/0.5239, allocations: 2.102 MB / 1.049 GB, free: 7.188 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001208/0.5251, allocations: 327.5 kB / 1.049 GB, free: 6.867 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.5252, allocations: 0 / 1.049 GB, free: 6.867 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006013/0.5258, allocations: 187.6 kB / 1.049 GB, free: 6.684 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.5261, allocations: 24.08 kB / 1.049 GB, free: 6.66 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/0.5294, allocations: 2.049 MB / 1.051 GB, free: 4.504 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.5299, allocations: 0.7652 MB / 1.052 GB, free: 3.711 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004887/0.5304, allocations: 67.53 kB / 1.052 GB, free: 3.641 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.5307, allocations: 95.39 kB / 1.052 GB, free: 3.547 MB / 0.698 GB Notification: Performance of SimCode: time 1.473e-06/0.5307, allocations: 0 / 1.052 GB, free: 3.547 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6782/1.209, allocations: 6.822 MB / 1.059 GB, free: 150.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002695/1.209, allocations: 209.9 kB / 1.059 GB, free: 150.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.656/3.865, allocations: 0 / 1.059 GB, free: 150.6 MB / 0.698 GB