Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_latest_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.001527/0.001527, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001788/0.001789, allocations: 196.7 kB / 16.54 MB, free: 6.672 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.446/1.446, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.934/2.934, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 61.88 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3367, allocations: 159.1 MB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002654/0.3394, allocations: 0.7247 MB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002414/0.3418, allocations: 1.53 MB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.674e-05/0.3419, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.342, allocations: 7.938 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.3422, allocations: 23.86 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.3427, allocations: 151.5 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.3429, allocations: 115.8 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.343, allocations: 19.92 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.3431, allocations: 51.84 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.3433, allocations: 47.83 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.3433, allocations: 12 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.3435, allocations: 91.92 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.511e-05/0.3435, allocations: 23.92 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.014e-05/0.3436, allocations: 47.8 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.3439, allocations: 195.7 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3439, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3439, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.3439, allocations: 0 / 1.067 GB, free: 11.52 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007849/0.3447, allocations: 423.2 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3448, allocations: 8.031 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.011e-05/0.3448, allocations: 42.73 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.081e-05/0.3449, allocations: 8.844 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.3451, allocations: 176.2 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.157e-05/0.3452, allocations: 34.25 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.3452, allocations: 12.38 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.3454, allocations: 102.3 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3454, allocations: 7.938 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.3455, allocations: 4 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3455, allocations: 0 / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.3456, allocations: 47.97 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007352/0.3463, allocations: 0.5282 MB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004889/0.3468, allocations: 139.7 kB / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.873e-05/0.3469, allocations: 38.58 kB / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.347, allocations: 8.078 kB / 1.068 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002506/0.3472, allocations: 113.9 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.3472, allocations: 3.938 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004045/0.3476, allocations: 137.5 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.418e-05/0.3477, allocations: 106.8 kB / 1.068 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.3479, allocations: 133.7 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.3479, allocations: 33.83 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.348, allocations: 88.33 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.348, allocations: 39.53 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.986e-05/0.3481, allocations: 33.7 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3482, allocations: 326.8 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-05/0.3483, allocations: 31.98 kB / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.404e-05/0.3484, allocations: 38.23 kB / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.3486, allocations: 76.78 kB / 1.069 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3486, allocations: 4 kB / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002595/0.3489, allocations: 130.5 kB / 1.069 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.3489, allocations: 4 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3489, allocations: 0 / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.349, allocations: 11.88 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.3491, allocations: 15.98 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.3491, allocations: 4 kB / 1.069 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.332e-05/0.3492, allocations: 15.86 kB / 1.069 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.3492, allocations: 8 kB / 1.069 GB, free: 8.324 MB / 0.8262 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.000104/0.3493, allocations: 117.8 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.3494, allocations: 11.91 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002521/0.3496, allocations: 118 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3496, allocations: 4 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3496, allocations: 0 / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3497, allocations: 7.938 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002089/0.3499, allocations: 217.5 kB / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3499, allocations: 4.312 kB / 1.07 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.45e-05/0.35, allocations: 19.92 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.35, allocations: 4 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.35, allocations: 8 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.35, allocations: 4 kB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.35, allocations: 3.984 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.3503, allocations: 172.6 kB / 1.07 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.3504, allocations: 112.8 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.3505, allocations: 4 kB / 1.07 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.987e-05/0.3505, allocations: 8 kB / 1.07 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.3506, allocations: 11.92 kB / 1.07 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.3506, allocations: 11.98 kB / 1.07 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.672e-05/0.3507, allocations: 95.27 kB / 1.07 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3507, allocations: 4 kB / 1.07 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002922/0.351, allocations: 59.88 kB / 1.07 GB, free: 7.238 MB / 0.8262 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.0007324/0.3517, allocations: 0.755 MB / 1.071 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002601/0.352, allocations: 105.7 kB / 1.071 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.352, allocations: 0 / 1.071 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.824e-05/0.3521, allocations: 51.92 kB / 1.071 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.3524, allocations: 13.06 kB / 1.071 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.3542, allocations: 1.536 MB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.3545, allocations: 0.7039 MB / 1.073 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.024e-05/0.3546, allocations: 23.42 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.345e-05/0.3546, allocations: 35.42 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.3546, allocations: 0 / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.3779, allocations: 2.947 MB / 1.076 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/8.138, allocations: 1.5 kB / 1.076 GB, free: 1.055 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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