Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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.SunRiseSet,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_latest_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005895/0.005895, allocations: 102 kB / 15.73 MB, free: 6.062 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.001511/0.001511, allocations: 192 kB / 16.67 MB, free: 5.973 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.683/2.683, allocations: 482.6 MB / 0.7551 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 68.31 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3079, allocations: 162.3 MB / 1.242 GB, free: 8.977 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.002004/0.31, allocations: 0.8974 MB / 1.243 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003209/0.3132, allocations: 2.476 MB / 1.245 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.3133, allocations: 8 kB / 1.245 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.639e-05/0.3134, allocations: 11.81 kB / 1.245 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.3136, allocations: 47.56 kB / 1.245 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.3148, allocations: 0.4986 MB / 1.246 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003882/0.3152, allocations: 315.1 kB / 1.246 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.221e-05/0.3153, allocations: 13.69 kB / 1.246 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.3155, allocations: 147.6 kB / 1.246 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.3158, allocations: 151.5 kB / 1.246 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.07e-05/0.3159, allocations: 24 kB / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007108/0.3166, allocations: 371.6 kB / 1.247 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.441e-05/0.3167, allocations: 63.84 kB / 1.247 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.3168, allocations: 119.5 kB / 1.247 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007516/0.3176, allocations: 0.549 MB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3176, allocations: 4 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3176, allocations: 4 kB / 1.247 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.3176, allocations: 0 / 1.247 GB, free: 3.281 MB / 0.9669 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.001374/0.319, allocations: 0.6636 MB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.319, allocations: 12.03 kB / 1.248 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.13e-05/0.3191, allocations: 50.73 kB / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.318e-05/0.3192, allocations: 28.8 kB / 1.248 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.3193, allocations: 194 kB / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.3195, allocations: 127.3 kB / 1.248 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.3195, allocations: 28.36 kB / 1.248 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.3199, allocations: 240.2 kB / 1.249 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3199, allocations: 4 kB / 1.249 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.32, allocations: 7.984 kB / 1.249 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.32, allocations: 7.984 kB / 1.249 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.3202, allocations: 115.7 kB / 1.249 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004792/0.3207, allocations: 395.2 kB / 1.249 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.3222, allocations: 499.2 kB / 1.25 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.3224, allocations: 162.3 kB / 1.25 GB, free: 400 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.234e-05/0.3224, allocations: 15.86 kB / 1.25 GB, free: 384 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004826/0.3229, allocations: 315.6 kB / 1.25 GB, free: 16 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=40): time 2.024e-06/0.3229, allocations: 0 / 1.25 GB, free: 16 kB / 0.9669 GB Notification: Performance of matching and sorting (n=40): time 0.0008492/0.3238, allocations: 413.7 kB / 1.251 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/0.324, allocations: 358.6 kB / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.3242, allocations: 167.3 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.3242, allocations: 41.7 kB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.197e-05/0.3243, allocations: 93.14 kB / 1.251 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.3244, allocations: 119 kB / 1.251 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.3246, allocations: 94.23 kB / 1.251 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3247, allocations: 334.8 kB / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.325, allocations: 118.1 kB / 1.252 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.3253, allocations: 168.9 kB / 1.252 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005564/0.3259, allocations: 266.3 kB / 1.252 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3259, allocations: 3.938 kB / 1.252 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007668/0.3267, allocations: 380.7 kB / 1.253 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3267, allocations: 8 kB / 1.253 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3267, allocations: 3.984 kB / 1.253 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.3267, allocations: 4 kB / 1.253 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003787/0.3271, allocations: 71.89 kB / 1.253 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.3271, allocations: 15.92 kB / 1.253 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.3274, allocations: 47.81 kB / 1.253 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.844e-05/0.3275, allocations: 19.98 kB / 1.253 GB, free: 13.2 MB / 0.9825 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.0001758/0.3277, allocations: 165.6 kB / 1.253 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.618e-05/0.3277, allocations: 27.8 kB / 1.253 GB, free: 13 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006847/0.3284, allocations: 354.1 kB / 1.253 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.3284, allocations: 8 kB / 1.253 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.3285, allocations: 4 kB / 1.253 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.3285, allocations: 7.984 kB / 1.253 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/0.3289, allocations: 361.1 kB / 1.254 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3289, allocations: 4 kB / 1.254 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.3292, allocations: 71.91 kB / 1.254 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.864e-06/0.3292, allocations: 4 kB / 1.254 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.561e-05/0.3293, allocations: 19.98 kB / 1.254 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.3293, allocations: 7.938 kB / 1.254 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3293, allocations: 4 kB / 1.254 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007297/0.33, allocations: 0.4982 MB / 1.254 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.3302, allocations: 144.8 kB / 1.254 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.3303, allocations: 23.89 kB / 1.254 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.3305, allocations: 31.97 kB / 1.254 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3306, allocations: 51.81 kB / 1.254 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.501e-05/0.3307, allocations: 23.94 kB / 1.254 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001086/0.3308, allocations: 135.2 kB / 1.255 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3308, allocations: 0 / 1.255 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005659/0.3314, allocations: 215.2 kB / 1.255 GB, free: 10.93 MB / 0.9825 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.001533/0.3329, allocations: 1.244 MB / 1.256 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00071/0.3336, allocations: 342.7 kB / 1.256 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3336, allocations: 0 / 1.256 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003189/0.334, allocations: 188.5 kB / 1.257 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.3342, allocations: 31.92 kB / 1.257 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.3381, allocations: 2.761 MB / 1.259 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3385, allocations: 0.765 MB / 1.26 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002021/0.3387, allocations: 59.25 kB / 1.26 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.3389, allocations: 99.39 kB / 1.26 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of SimCode: time 8.42e-07/0.3389, allocations: 0 / 1.26 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.3685, allocations: 7.852 MB / 1.268 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.161/9.529, allocations: 7.062 kB / 1.268 GB, free: 13.46 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)