Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.SunRiseSetNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime",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.001269/0.001269, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.006933/0.006933, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.39/1.39, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.659/2.659, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003542, allocations: 8 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3257, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime): time 0.001106/0.3269, allocations: 0.618 MB / 1.059 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003579/0.3305, allocations: 2.502 MB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.3306, allocations: 3.938 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.106e-05/0.3307, allocations: 7.938 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.331, allocations: 51.67 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.3322, allocations: 414.9 kB / 1.062 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.3326, allocations: 299.1 kB / 1.063 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.477e-05/0.3327, allocations: 17.67 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.3329, allocations: 135.5 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002463/0.3332, allocations: 143.5 kB / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.3333, allocations: 12 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006539/0.3339, allocations: 307.7 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.78e-05/0.334, allocations: 55.8 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.3341, allocations: 137.2 kB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0008909/0.335, allocations: 0.5378 MB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.217e-06/0.3351, allocations: 4 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3351, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.3351, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 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.001619/0.3367, allocations: 0.6296 MB / 1.064 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.3368, allocations: 11.97 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.3369, allocations: 46.73 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.875e-05/0.337, allocations: 24.66 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.3372, allocations: 189.5 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.3374, allocations: 127.4 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.3374, allocations: 24.31 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.3379, allocations: 240.2 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3379, allocations: 0 / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.3379, allocations: 15.94 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.3379, allocations: 7.938 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002451/0.3382, allocations: 111.8 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005744/0.3388, allocations: 403.1 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.3403, allocations: 491.3 kB / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.3405, allocations: 162.2 kB / 1.066 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.3406, allocations: 15.92 kB / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000546/0.3412, allocations: 315.5 kB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=40): time 2.705e-06/0.3412, allocations: 0 / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.000864/0.342, allocations: 417.9 kB / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/0.3422, allocations: 350.1 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.3424, allocations: 167.2 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.3425, allocations: 41.7 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.89e-05/0.3425, allocations: 101.6 kB / 1.068 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3426, allocations: 110.5 kB / 1.068 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/0.3427, allocations: 49.69 kB / 1.068 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3429, allocations: 338.8 kB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.3431, allocations: 113.1 kB / 1.068 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.3434, allocations: 165 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000529/0.344, allocations: 273.4 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.344, allocations: 0 / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007414/0.3447, allocations: 377.1 kB / 1.069 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3448, allocations: 4 kB / 1.069 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3448, allocations: 0 / 1.069 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.3448, allocations: 4 kB / 1.069 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/0.3452, allocations: 84 kB / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.3452, allocations: 8 kB / 1.069 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.3455, allocations: 59.66 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.165e-05/0.3456, allocations: 19.98 kB / 1.069 GB, free: 9.633 MB / 0.8262 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.0001714/0.3457, allocations: 157.6 kB / 1.069 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.3458, allocations: 27.66 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006542/0.3465, allocations: 354.7 kB / 1.07 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.3465, allocations: 8 kB / 1.07 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/0.3465, allocations: 8 kB / 1.07 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/0.3465, allocations: 3.984 kB / 1.07 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000379/0.3469, allocations: 353.1 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3469, allocations: 0 / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.3472, allocations: 79.83 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.3472, allocations: 4.188 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.3473, allocations: 19.94 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.3473, allocations: 11.98 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.3473, allocations: 7.938 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006633/0.3479, allocations: 0.4941 MB / 1.071 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.3481, allocations: 156.5 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.882e-05/0.3482, allocations: 12 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.3484, allocations: 39.97 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.3486, allocations: 51.88 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.3486, allocations: 20 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001024/0.3487, allocations: 139.2 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3487, allocations: 0 / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006261/0.3493, allocations: 215.7 kB / 1.071 GB, free: 7.363 MB / 0.8262 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.001346/0.3507, allocations: 1.232 MB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006117/0.3513, allocations: 334.5 kB / 1.073 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3513, allocations: 0 / 1.073 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.3516, allocations: 184.5 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.3519, allocations: 31.94 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003629/0.3556, allocations: 2.853 MB / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.3559, allocations: 0.7574 MB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002296/0.3561, allocations: 59.19 kB / 1.077 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.3563, allocations: 95.38 kB / 1.077 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of SimCode: time 9.42e-07/0.3563, allocations: 0 / 1.077 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.3756, allocations: 7.308 MB / 1.084 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.3758, allocations: 236.3 kB / 1.084 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.246, allocations: 4 kB / 1.084 GB, free: 10.21 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime_fmu --startTime=-43200 --stopTime=259200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe 2>&1)