Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime,fileNamePrefix="Buildings_latest_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004563/0.004563, allocations: 99.89 kB / 15.73 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 194.7 kB / 16.67 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.819/2.819, allocations: 482.6 MB / 0.755 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 75.95 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2684, allocations: 162.3 MB / 1.242 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime): time 0.001736/0.2702, allocations: 0.894 MB / 1.243 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002728/0.2729, allocations: 2.474 MB / 1.245 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.066e-05/0.273, allocations: 0 / 1.245 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.625e-05/0.273, allocations: 15.81 kB / 1.245 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.2732, allocations: 47.56 kB / 1.245 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008878/0.2741, allocations: 0.4944 MB / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.2744, allocations: 315.1 kB / 1.246 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.121e-05/0.2744, allocations: 13.69 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.2746, allocations: 143.6 kB / 1.246 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.2748, allocations: 151.5 kB / 1.246 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.67e-05/0.2749, allocations: 24 kB / 1.246 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005928/0.2755, allocations: 371.7 kB / 1.247 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.153e-05/0.2756, allocations: 67.8 kB / 1.247 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.2757, allocations: 119.5 kB / 1.247 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006707/0.2764, allocations: 0.5567 MB / 1.247 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.2764, allocations: 4 kB / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2764, allocations: 0 / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.2764, allocations: 0 / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001274/0.2777, allocations: 0.6674 MB / 1.248 GB, free: 3.402 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.2777, allocations: 19.91 kB / 1.248 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.2778, allocations: 46.73 kB / 1.248 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.562e-05/0.2778, allocations: 24.8 kB / 1.248 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.278, allocations: 189.8 kB / 1.248 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.2781, allocations: 131.3 kB / 1.248 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.2782, allocations: 24.36 kB / 1.248 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.2785, allocations: 244.2 kB / 1.249 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.2785, allocations: 0 / 1.249 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.2786, allocations: 8 kB / 1.249 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.2786, allocations: 7.984 kB / 1.249 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002241/0.2788, allocations: 111.7 kB / 1.249 GB, free: 2.496 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004233/0.2792, allocations: 407.1 kB / 1.249 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.2806, allocations: 495.3 kB / 1.25 GB, free: 1.422 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.2809, allocations: 162.3 kB / 1.25 GB, free: 1.227 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.2809, allocations: 15.92 kB / 1.25 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004199/0.2813, allocations: 311.6 kB / 1.25 GB, free: 0.8555 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=40): time 1.703e-06/0.2813, allocations: 0 / 1.25 GB, free: 0.8555 MB / 0.9981 GB Notification: Performance of matching and sorting (n=40): time 0.0007623/0.2821, allocations: 417.5 kB / 1.251 GB, free: 452 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.2823, allocations: 354.6 kB / 1.251 GB, free: 16 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4709/0.7532, allocations: 164.1 kB / 1.251 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.646e-05/0.7533, allocations: 40.14 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.7534, allocations: 98.3 kB / 1.251 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.396e-05/0.7535, allocations: 116.4 kB / 1.251 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.7536, allocations: 92.95 kB / 1.251 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.302e-05/0.7537, allocations: 332.8 kB / 1.252 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.754, allocations: 117.9 kB / 1.252 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.7543, allocations: 167.8 kB / 1.252 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005212/0.7548, allocations: 268.9 kB / 1.252 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.7548, allocations: 0 / 1.252 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007443/0.7556, allocations: 381.2 kB / 1.253 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.7556, allocations: 5.344 kB / 1.253 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.7556, allocations: 2.016 kB / 1.253 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.7557, allocations: 6.781 kB / 1.253 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/0.7561, allocations: 78.48 kB / 1.253 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.7561, allocations: 3 kB / 1.253 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.7564, allocations: 53.27 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.7564, allocations: 21.11 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 (sunRiseSetSyd.sunUp,sunRiseSetSyd.nextSunSet,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunRise,$whenCondition7,$whenCondition8,sunRiseSetAntarctic.sunUp,sunRiseSetAntarctic.nextSunSet,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunRise,$whenCondition5,$whenCondition6,sunRiseSetSf.sunUp,sunRiseSetSf.nextSunSet,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunRise,$whenCondition3,$whenCondition4,sunRiseSetArctic.sunUp,sunRiseSetArctic.nextSunSet,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunRise,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.7565, allocations: 154.8 kB / 1.253 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.068e-05/0.7566, allocations: 30.59 kB / 1.253 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006372/0.7573, allocations: 362.1 kB / 1.253 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.7573, allocations: 8.219 kB / 1.253 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.7573, allocations: 4.047 kB / 1.253 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.7573, allocations: 7.625 kB / 1.253 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.7576, allocations: 354.2 kB / 1.254 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.7576, allocations: 2.844 kB / 1.254 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/0.7579, allocations: 73.44 kB / 1.254 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.505e-06/0.7579, allocations: 4.906 kB / 1.254 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.758, allocations: 26.86 kB / 1.254 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.758, allocations: 9.797 kB / 1.254 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.758, allocations: 3.188 kB / 1.254 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006414/0.7586, allocations: 0.4886 MB / 1.254 GB, free: 13.44 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.7588, allocations: 151.2 kB / 1.254 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.086e-05/0.7588, allocations: 21.3 kB / 1.254 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.7591, allocations: 33.66 kB / 1.254 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.7592, allocations: 48.58 kB / 1.254 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.842e-05/0.7592, allocations: 23.39 kB / 1.254 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.022e-05/0.7593, allocations: 122.1 kB / 1.255 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7593, allocations: 1.781 kB / 1.255 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005332/0.7599, allocations: 222.6 kB / 1.255 GB, free: 13.16 MB / 0.9981 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,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 8 (sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001201/0.7611, allocations: 1.252 MB / 1.256 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006226/0.7617, allocations: 335.6 kB / 1.256 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.7617, allocations: 3.969 kB / 1.256 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.762, allocations: 190.5 kB / 1.257 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.7623, allocations: 30.06 kB / 1.257 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.7654, allocations: 2.763 MB / 1.259 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001797/0.7656, allocations: 0.7678 MB / 1.26 GB, free: 9.48 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001921/0.7658, allocations: 56.02 kB / 1.26 GB, free: 9.465 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.766, allocations: 94.92 kB / 1.26 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.766, allocations: 0 / 1.26 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.131/1.897, allocations: 7.901 MB / 1.268 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/13.5, allocations: 10.27 kB / 1.268 GB, free: 8.547 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime_fmu --startTime=43200 --stopTime=345600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe 2>&1)