Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.724/2.724, allocations: 287.3 MB / 302.3 MB, free: 8.297 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.001623/0.001623, allocations: 177.9 kB / 370.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.4 MB / 0.6295 GB, free: 10.65 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.00112/0.00112, allocations: 100.8 kB / 0.7428 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004955/0.0004955, allocations: 11.44 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2171, allocations: 115.3 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9584/1.176, allocations: 138.6 MB / 1.114 GB, free: 15.59 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/1.176, allocations: 71.66 kB / 1.114 GB, free: 15.59 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.052/1.228, allocations: 10.09 MB / 1.124 GB, free: 30.75 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.164e-06/1.228, allocations: 0 / 1.124 GB, free: 30.75 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.405e-05/1.228, allocations: 3.875 kB / 1.124 GB, free: 30.75 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.001929/1.23, allocations: 0.631 MB / 1.124 GB, free: 30.28 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/1.23, allocations: 11.64 kB / 1.124 GB, free: 30.27 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.876e-05/1.23, allocations: 47.3 kB / 1.124 GB, free: 30.23 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.111e-05/1.23, allocations: 23.31 kB / 1.124 GB, free: 30.22 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/1.23, allocations: 193 kB / 1.124 GB, free: 30.01 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/1.231, allocations: 131.1 kB / 1.125 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-05/1.231, allocations: 21.44 kB / 1.125 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005095/1.231, allocations: 251.6 kB / 1.125 GB, free: 29.74 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/1.231, allocations: 7.922 kB / 1.125 GB, free: 29.73 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/1.231, allocations: 11.19 kB / 1.125 GB, free: 29.73 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/1.231, allocations: 6.453 kB / 1.125 GB, free: 29.73 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003525/1.232, allocations: 115.4 kB / 1.125 GB, free: 29.72 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/1.233, allocations: 0.9556 MB / 1.126 GB, free: 28.89 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002334/1.235, allocations: 491.6 kB / 1.126 GB, free: 28.59 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.981e-05/1.235, allocations: 10.44 kB / 1.126 GB, free: 28.59 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006269/1.236, allocations: 301.8 kB / 1.127 GB, free: 28.42 MB / 0.698 GB Notification: Performance of pre-optimization done (n=40): time 3.677e-06/1.236, allocations: 4 kB / 1.127 GB, free: 28.41 MB / 0.698 GB Notification: Performance of matching and sorting (n=40): time 0.001198/1.237, allocations: 413 kB / 1.127 GB, free: 28.34 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002278/1.238, allocations: 347.8 kB / 1.127 GB, free: 27.93 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/1.238, allocations: 160.4 kB / 1.128 GB, free: 27.83 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.399e-05/1.238, allocations: 43.2 kB / 1.128 GB, free: 27.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.009e-05/1.238, allocations: 102.8 kB / 1.128 GB, free: 27.71 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/1.238, allocations: 121.7 kB / 1.128 GB, free: 27.64 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/1.238, allocations: 7.25 kB / 1.128 GB, free: 27.64 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001526/1.238, allocations: 331 kB / 1.128 GB, free: 27.32 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004112/1.239, allocations: 102.8 kB / 1.128 GB, free: 27.32 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004353/1.239, allocations: 181.8 kB / 1.128 GB, free: 27.25 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004406/1.24, allocations: 117.1 kB / 1.129 GB, free: 27.24 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/1.24, allocations: 0 / 1.129 GB, free: 27.24 MB / 0.698 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001198/1.241, allocations: 365.8 kB / 1.129 GB, free: 27.18 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/1.241, allocations: 7.562 kB / 1.129 GB, free: 27.18 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/1.241, allocations: 4 kB / 1.129 GB, free: 27.18 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/1.241, allocations: 7.531 kB / 1.129 GB, free: 27.18 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/1.242, allocations: 82.39 kB / 1.129 GB, free: 27.17 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/1.242, allocations: 11.78 kB / 1.129 GB, free: 27.16 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005332/1.242, allocations: 53.48 kB / 1.129 GB, free: 27.14 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.692e-05/1.242, allocations: 23.77 kB / 1.129 GB, free: 27.14 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.0002448/1.242, allocations: 156.9 kB / 1.129 GB, free: 27.02 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.842e-05/1.243, allocations: 31.12 kB / 1.129 GB, free: 27 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/1.244, allocations: 354.9 kB / 1.13 GB, free: 26.93 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/1.244, allocations: 7.812 kB / 1.13 GB, free: 26.93 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/1.244, allocations: 7.844 kB / 1.13 GB, free: 26.93 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/1.244, allocations: 10.73 kB / 1.13 GB, free: 26.92 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005418/1.244, allocations: 355.5 kB / 1.13 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/1.244, allocations: 3.969 kB / 1.13 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/1.245, allocations: 67.33 kB / 1.13 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/1.245, allocations: 3.812 kB / 1.13 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/1.245, allocations: 18.81 kB / 1.13 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.848e-06/1.245, allocations: 9.406 kB / 1.13 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.245, allocations: 3.938 kB / 1.13 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/1.246, allocations: 0.6186 MB / 1.131 GB, free: 26.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002273/1.246, allocations: 145.2 kB / 1.131 GB, free: 26.21 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.911e-05/1.246, allocations: 19.73 kB / 1.131 GB, free: 26.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/1.247, allocations: 37.09 kB / 1.131 GB, free: 26.21 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/1.247, allocations: 53.25 kB / 1.131 GB, free: 26.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.971e-05/1.247, allocations: 21.28 kB / 1.131 GB, free: 26.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001432/1.247, allocations: 126.1 kB / 1.131 GB, free: 26.12 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.934e-06/1.247, allocations: 3.875 kB / 1.131 GB, free: 26.12 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009955/1.248, allocations: 214.5 kB / 1.131 GB, free: 26.08 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.002477/1.251, allocations: 2.124 MB / 1.133 GB, free: 24.38 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001018/1.252, allocations: 315.5 kB / 1.134 GB, free: 24.36 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/1.252, allocations: 192 / 1.134 GB, free: 24.36 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004527/1.252, allocations: 181.4 kB / 1.134 GB, free: 24.34 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/1.252, allocations: 35.48 kB / 1.134 GB, free: 24.33 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/1.255, allocations: 2.059 MB / 1.136 GB, free: 22.57 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/1.255, allocations: 0.7728 MB / 1.137 GB, free: 21.87 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000451/1.256, allocations: 50.59 kB / 1.137 GB, free: 21.85 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/1.256, allocations: 93.33 kB / 1.137 GB, free: 21.84 MB / 0.698 GB Notification: Performance of SimCode: time 9.32e-07/1.256, allocations: 0 / 1.137 GB, free: 21.84 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/1.287, allocations: 6.83 MB / 1.143 GB, free: 18.91 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002456/1.287, allocations: 190.6 kB / 1.144 GB, free: 18.67 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.675/3.962, allocations: 0 / 1.144 GB, free: 18.67 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)