Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",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.009232/0.009232, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.002068/0.002068, allocations: 198.9 kB / 16.68 MB, free: 5.969 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.54/1.54, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.91/2.91, allocations: 469.8 MB / 0.7425 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 63.91 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3574, allocations: 159.1 MB / 1.22 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001886/0.3594, allocations: 0.7273 MB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002255/0.3616, allocations: 1.52 MB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.228e-05/0.3617, allocations: 0 / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.07e-05/0.3618, allocations: 11.92 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001892/0.362, allocations: 23.86 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.3624, allocations: 155.4 kB / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.3626, allocations: 115.7 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.3628, allocations: 19.97 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.3629, allocations: 55.83 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.363, allocations: 47.83 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.3631, allocations: 12 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.3633, allocations: 99.92 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.854e-05/0.3634, allocations: 27.91 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.938e-05/0.3634, allocations: 47.78 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003411/0.3638, allocations: 191.4 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.3638, allocations: 0 / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of FrontEnd: time 5.12e-06/0.3638, allocations: 0 / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.792e-06/0.3638, allocations: 3.938 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008063/0.3646, allocations: 430.9 kB / 1.224 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3647, allocations: 12.03 kB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.185e-05/0.3648, allocations: 38.75 kB / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.944e-05/0.3648, allocations: 8.891 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.365, allocations: 184.2 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.547e-05/0.3651, allocations: 34.27 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.3651, allocations: 12.31 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.3653, allocations: 112.1 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3654, allocations: 0 / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.3654, allocations: 0 / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3654, allocations: 4 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.3655, allocations: 43.97 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007038/0.3662, allocations: 0.5204 MB / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.3667, allocations: 131.7 kB / 1.225 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.742e-05/0.3668, allocations: 46.66 kB / 1.225 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.3668, allocations: 0 / 1.225 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.3671, allocations: 121.9 kB / 1.225 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.3671, allocations: 0 / 1.225 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0003394/0.3674, allocations: 145.5 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.3675, allocations: 114.8 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.3676, allocations: 129.7 kB / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.3677, allocations: 29.7 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.9e-05/0.3678, allocations: 92.42 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.388e-05/0.3678, allocations: 35.86 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/0.3679, allocations: 37.7 kB / 1.225 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.368, allocations: 318.8 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.884e-05/0.3681, allocations: 39.98 kB / 1.226 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.31e-05/0.3682, allocations: 35.98 kB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.3684, allocations: 79.73 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3684, allocations: 0 / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002562/0.3687, allocations: 133.5 kB / 1.226 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3687, allocations: 9.719 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3687, allocations: 0 / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3687, allocations: 0 / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.3688, allocations: 23.98 kB / 1.226 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3688, allocations: 0 / 1.226 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.624e-05/0.3689, allocations: 15.83 kB / 1.226 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.369, allocations: 7.984 kB / 1.226 GB, free: 8.082 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (dayCon.not1.y,dayCon.sunRiseSet.nextSunSet,$PRE.dayCon.sunRiseSet.nextSunSet,dayCon.sunRiseSet.nextSunRise,$PRE.dayCon.sunRiseSet.nextSunRise,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001268/0.3691, allocations: 126.5 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.3691, allocations: 11.95 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002448/0.3694, allocations: 118.1 kB / 1.226 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3694, allocations: 4.312 kB / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3694, allocations: 0 / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3694, allocations: 3.938 kB / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.3696, allocations: 221.5 kB / 1.226 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3696, allocations: 0 / 1.226 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.258e-05/0.3697, allocations: 19.98 kB / 1.226 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3697, allocations: 4 kB / 1.226 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.3698, allocations: 4 kB / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3698, allocations: 0 / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3698, allocations: 4 kB / 1.226 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.37, allocations: 178.6 kB / 1.227 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.146e-05/0.3701, allocations: 104.9 kB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/0.3702, allocations: 8 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.526e-05/0.3702, allocations: 7.984 kB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.3703, allocations: 19.92 kB / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.3703, allocations: 4 kB / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.066e-05/0.3704, allocations: 99.27 kB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3704, allocations: 0 / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002746/0.3707, allocations: 59.8 kB / 1.227 GB, free: 6.992 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunSet,dayCon.not1.y) * Number of discrete states: 2 (dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunSet) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007059/0.3714, allocations: 0.7703 MB / 1.228 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002501/0.3716, allocations: 94.58 kB / 1.228 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3717, allocations: 0 / 1.228 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.75e-05/0.3718, allocations: 51.92 kB / 1.228 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.372, allocations: 26.25 kB / 1.228 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.3738, allocations: 1.543 MB / 1.229 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.3741, allocations: 0.7002 MB / 1.23 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.842e-05/0.3742, allocations: 20.67 kB / 1.23 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.834e-05/0.3743, allocations: 35.42 kB / 1.23 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.3743, allocations: 0 / 1.23 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.398, allocations: 2.97 MB / 1.233 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.319/8.717, allocations: 26.14 kB / 1.233 GB, free: 0.7617 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.csv --start-time 0 --stop-time 604800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 241.92 Buildings_11_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[529]=604800.000000 File[65]=16450.600000 " Variables in the reference:time,dayCon.y Variables in the result:time,dayCon.y,dayCon.lat,dayCon.lon,dayCon.timZon