Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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.SunRiseSet,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",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.117/2.117, allocations: 251 MB / 265.9 MB, free: 11.7 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.001482/0.001482, allocations: 176.3 kB / 325.5 MB, free: 2.906 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.464/2.464, allocations: 205.4 MB / 0.5764 GB, free: 21.23 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.001096/0.001096, allocations: 90.62 kB / 0.6809 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006232/0.0006234, allocations: 11.81 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2339, allocations: 106.3 MB / 0.8988 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.223/0.457, allocations: 133.3 MB / 1.029 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.4573, allocations: 75.95 kB / 1.029 GB, free: 12.4 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.05556/0.5129, allocations: 10.35 MB / 1.039 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.684e-06/0.5129, allocations: 0 / 1.039 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.223e-05/0.5129, allocations: 4 kB / 1.039 GB, free: 2.027 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.002026/0.515, allocations: 0.6348 MB / 1.04 GB, free: 1.344 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.515, allocations: 12.03 kB / 1.04 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.253e-05/0.5151, allocations: 46.55 kB / 1.04 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.111e-05/0.5152, allocations: 19.81 kB / 1.04 GB, free: 1.258 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.5154, allocations: 190.6 kB / 1.04 GB, free: 1.031 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.5157, allocations: 130.7 kB / 1.04 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-05/0.5157, allocations: 23.98 kB / 1.04 GB, free: 0.8555 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/0.5163, allocations: 251.6 kB / 1.04 GB, free: 0.5664 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.5163, allocations: 0 / 1.04 GB, free: 0.5664 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.5164, allocations: 4 kB / 1.04 GB, free: 0.5625 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.5164, allocations: 11.98 kB / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003956/0.5168, allocations: 115.8 kB / 1.041 GB, free: 448 kB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.5181, allocations: 0.9589 MB / 1.042 GB, free: 15.39 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/0.5206, allocations: 487.4 kB / 1.042 GB, free: 14.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.93e-05/0.5207, allocations: 16.25 kB / 1.042 GB, free: 14.79 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006686/0.5214, allocations: 308.6 kB / 1.042 GB, free: 14.43 MB / 0.698 GB Notification: Performance of pre-optimization done (n=40): time 3.617e-06/0.5214, allocations: 0 / 1.042 GB, free: 14.43 MB / 0.698 GB Notification: Performance of matching and sorting (n=40): time 0.001344/0.5228, allocations: 405.8 kB / 1.043 GB, free: 14.03 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001979/0.523, allocations: 350.6 kB / 1.043 GB, free: 13.61 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.5232, allocations: 160 kB / 1.043 GB, free: 13.44 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.5233, allocations: 41.64 kB / 1.043 GB, free: 13.39 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.968e-05/0.5234, allocations: 108.9 kB / 1.043 GB, free: 13.29 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.5236, allocations: 114.5 kB / 1.043 GB, free: 13.17 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.5236, allocations: 8 kB / 1.043 GB, free: 13.16 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.5238, allocations: 334.8 kB / 1.044 GB, free: 12.83 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.5242, allocations: 101.1 kB / 1.044 GB, free: 12.73 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/0.5248, allocations: 180.4 kB / 1.044 GB, free: 12.53 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004876/0.5253, allocations: 120.6 kB / 1.044 GB, free: 12.41 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5253, allocations: 0 / 1.044 GB, free: 12.41 MB / 0.698 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001286/0.5266, allocations: 365.4 kB / 1.044 GB, free: 12.05 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.5266, allocations: 4 kB / 1.044 GB, free: 12.04 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.5266, allocations: 0 / 1.044 GB, free: 12.04 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.5267, allocations: 12.05 kB / 1.044 GB, free: 12.03 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007082/0.5274, allocations: 83.75 kB / 1.045 GB, free: 11.95 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.5274, allocations: 4 kB / 1.045 GB, free: 11.95 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005535/0.528, allocations: 63.66 kB / 1.045 GB, free: 11.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-05/0.5281, 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.0002392/0.5283, allocations: 153.7 kB / 1.045 GB, free: 11.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.5284, allocations: 27.7 kB / 1.045 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.5296, allocations: 362.1 kB / 1.045 GB, free: 11.31 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.5296, allocations: 12 kB / 1.045 GB, free: 11.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.5296, allocations: 11.89 kB / 1.045 GB, free: 11.29 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.5297, allocations: 3.984 kB / 1.045 GB, free: 11.29 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006114/0.5303, allocations: 349.1 kB / 1.046 GB, free: 10.89 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.5303, allocations: 4 kB / 1.046 GB, free: 10.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005734/0.5309, allocations: 71.89 kB / 1.046 GB, free: 10.82 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/0.5309, allocations: 8 kB / 1.046 GB, free: 10.81 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/0.531, allocations: 16.38 kB / 1.046 GB, free: 10.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-05/0.531, allocations: 7.938 kB / 1.046 GB, free: 10.79 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/0.531, allocations: 19.92 kB / 1.046 GB, free: 10.77 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.5323, allocations: 0.602 MB / 1.046 GB, free: 10.05 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002469/0.5325, allocations: 148.5 kB / 1.046 GB, free: 9.883 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.32e-05/0.5326, allocations: 16 kB / 1.046 GB, free: 9.867 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.5331, allocations: 39.97 kB / 1.046 GB, free: 9.828 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.5333, allocations: 51.89 kB / 1.046 GB, free: 9.777 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.465e-05/0.5333, allocations: 27.98 kB / 1.047 GB, free: 9.75 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001655/0.5335, allocations: 127.7 kB / 1.047 GB, free: 9.625 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.41e-07/0.5335, allocations: 0 / 1.047 GB, free: 9.625 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009702/0.5345, allocations: 215.7 kB / 1.047 GB, free: 9.414 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.003666/0.5382, allocations: 2.111 MB / 1.049 GB, free: 7.203 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001712/0.54, allocations: 315.5 kB / 1.049 GB, free: 6.895 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/0.54, allocations: 0.75 kB / 1.049 GB, free: 6.895 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008009/0.5408, allocations: 192.5 kB / 1.049 GB, free: 6.707 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004271/0.5413, allocations: 28.08 kB / 1.049 GB, free: 6.68 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/0.5452, allocations: 2.052 MB / 1.051 GB, free: 4.52 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005987/0.5458, allocations: 0.773 MB / 1.052 GB, free: 3.719 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006668/0.5465, allocations: 51.62 kB / 1.052 GB, free: 3.664 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004067/0.5469, allocations: 91.39 kB / 1.052 GB, free: 3.574 MB / 0.698 GB Notification: Performance of SimCode: time 2.255e-06/0.547, allocations: 4 kB / 1.052 GB, free: 3.57 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5898/1.137, allocations: 6.811 MB / 1.059 GB, free: 150.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/1.137, allocations: 190.8 kB / 1.059 GB, free: 150.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/3.829, allocations: 0 / 1.059 GB, free: 150.6 MB / 0.698 GB