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.466/2.466, allocations: 284.9 MB / 292.4 MB, free: 10.6 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.001483/0.001483, allocations: 184.8 kB / 360.6 MB, free: 7.289 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.176/2.176, allocations: 205.3 MB / 0.6191 GB, free: 12.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001112, allocations: 87.19 kB / 0.7321 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.379e-05/2.398e-05, allocations: 4 kB / 0.8509 GB, free: 3.32 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8548/0.8549, allocations: 115.2 MB / 0.9634 GB, free: 78.42 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2436/1.099, allocations: 137.9 MB / 1.098 GB, free: 2.527 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/1.099, allocations: 72.52 kB / 1.098 GB, free: 2.457 MB / 0.698 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.05441/1.153, allocations: 10.01 MB / 1.108 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.964e-06/1.153, allocations: 0 / 1.108 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.327e-05/1.153, allocations: 4 kB / 1.108 GB, free: 8.52 MB / 0.7136 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.001928/1.155, allocations: 0.603 MB / 1.109 GB, free: 7.875 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/1.155, allocations: 12.03 kB / 1.109 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/1.156, allocations: 25.02 kB / 1.109 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/1.156, allocations: 190.7 kB / 1.109 GB, free: 7.613 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/1.156, allocations: 7.984 kB / 1.109 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/1.156, allocations: 15.98 kB / 1.109 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000376/1.156, allocations: 91.97 kB / 1.109 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/1.157, allocations: 234.6 kB / 1.109 GB, free: 7.23 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/1.157, allocations: 0 / 1.109 GB, free: 7.23 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/1.157, allocations: 7.984 kB / 1.109 GB, free: 7.223 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/1.157, allocations: 4 kB / 1.109 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/1.158, allocations: 0.9131 MB / 1.11 GB, free: 6.23 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/1.162, allocations: 474.1 kB / 1.11 GB, free: 5.66 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003426/1.162, allocations: 142.5 kB / 1.111 GB, free: 5.484 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 6.162e-05/1.162, allocations: 11.98 kB / 1.111 GB, free: 5.473 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009139/1.163, allocations: 288.8 kB / 1.111 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=40): time 6.773e-06/1.163, allocations: 0 / 1.111 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of matching and sorting (n=40): time 0.007467/1.171, allocations: 0.4928 MB / 1.111 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003794/1.171, allocations: 346.1 kB / 1.112 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/1.171, allocations: 160.4 kB / 1.112 GB, free: 4.055 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001201/1.172, allocations: 29.7 kB / 1.112 GB, free: 4.02 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/1.172, allocations: 105.2 kB / 1.112 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/1.172, allocations: 106.7 kB / 1.112 GB, free: 3.805 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/1.172, allocations: 4 kB / 1.112 GB, free: 3.801 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002032/1.172, allocations: 334.8 kB / 1.112 GB, free: 3.465 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005531/1.173, allocations: 89.11 kB / 1.112 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006744/1.174, allocations: 163.3 kB / 1.113 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005658/1.179, allocations: 444.1 kB / 1.113 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/1.179, allocations: 0 / 1.113 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.005436/1.185, allocations: 0.645 MB / 1.114 GB, free: 2.113 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/1.185, allocations: 4.938 kB / 1.114 GB, free: 2.109 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/1.185, allocations: 4 kB / 1.114 GB, free: 2.105 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/1.185, allocations: 4 kB / 1.114 GB, free: 2.102 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/1.185, allocations: 63.89 kB / 1.114 GB, free: 2.039 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/1.185, allocations: 4 kB / 1.114 GB, free: 2.035 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/1.186, allocations: 55.66 kB / 1.114 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/1.186, allocations: 23.94 kB / 1.114 GB, free: 1.957 MB / 0.7136 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.0002016/1.186, allocations: 127.8 kB / 1.114 GB, free: 1.824 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003541/1.19, allocations: 0.4948 MB / 1.114 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.228e-05/1.19, allocations: 31.78 kB / 1.114 GB, free: 1.293 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/1.191, allocations: 329 kB / 1.115 GB, free: 0.9727 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/1.191, allocations: 9.219 kB / 1.115 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/1.191, allocations: 7.953 kB / 1.115 GB, free: 0.957 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/1.191, allocations: 7.984 kB / 1.115 GB, free: 0.9492 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005593/1.192, allocations: 293.7 kB / 1.115 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.118e-06/1.192, allocations: 8 kB / 1.115 GB, free: 0.6172 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006362/1.192, allocations: 75.84 kB / 1.115 GB, free: 0.543 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-05/1.192, allocations: 4 kB / 1.115 GB, free: 0.5391 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.575e-05/1.193, allocations: 15.98 kB / 1.115 GB, free: 0.5234 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.267e-06/1.193, allocations: 4.875 kB / 1.115 GB, free: 0.5195 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.193, allocations: 4 kB / 1.115 GB, free: 0.5156 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003941/1.196, allocations: 0.7833 MB / 1.116 GB, free: 15.61 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/1.197, allocations: 152.5 kB / 1.116 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.925e-05/1.197, allocations: 12 kB / 1.116 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004699/1.197, allocations: 30.88 kB / 1.116 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/1.198, allocations: 55.83 kB / 1.116 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.613e-05/1.198, allocations: 27.98 kB / 1.116 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.000153/1.198, allocations: 123.3 kB / 1.116 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.51e-07/1.198, allocations: 0 / 1.116 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00101/1.199, allocations: 199.7 kB / 1.117 GB, free: 15.01 MB / 0.7292 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.005263/1.204, allocations: 2.275 MB / 1.119 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002505/1.207, allocations: 2.978 MB / 1.122 GB, free: 9.559 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/1.207, allocations: 0 / 1.122 GB, free: 9.559 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000521/1.207, allocations: 159.7 kB / 1.122 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/1.208, allocations: 17.89 kB / 1.122 GB, free: 9.387 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/1.21, allocations: 0.5255 MB / 1.122 GB, free: 8.793 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/1.21, allocations: 0.769 MB / 1.123 GB, free: 7.996 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0004069/1.21, allocations: 53.2 kB / 1.123 GB, free: 7.949 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/1.211, allocations: 91.39 kB / 1.123 GB, free: 7.859 MB / 0.7292 GB Notification: Performance of SimCode: time 1.103e-06/1.211, allocations: 0 / 1.123 GB, free: 7.859 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0503/1.261, allocations: 6.749 MB / 1.13 GB, free: 1.219 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003259/1.261, allocations: 149.1 kB / 1.13 GB, free: 1.027 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.774/4.036, allocations: 4 kB / 1.13 GB, free: 1.023 MB / 0.7292 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)