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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.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.00115/0.00115, allocations: 112.5 kB / 15.73 MB, free: 76 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.001154/0.001154, allocations: 189.2 kB / 16.66 MB, free: 6.582 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.844/2.844, allocations: 469.4 MB / 0.7421 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001242, allocations: 64.12 kB / 1.064 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3027, allocations: 159.1 MB / 1.22 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001974/0.3047, allocations: 0.7208 MB / 1.22 GB, free: 14 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002071/0.3068, allocations: 1.528 MB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.906e-05/0.3069, allocations: 0 / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.605e-05/0.3069, allocations: 3.938 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.3071, allocations: 23.84 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004784/0.3076, allocations: 155.5 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000169/0.3078, allocations: 119.7 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.3079, allocations: 19.97 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.308, allocations: 51.84 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.874e-05/0.3082, allocations: 51.83 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.779e-05/0.3082, allocations: 12 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002138/0.3084, allocations: 103.9 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.578e-05/0.3085, allocations: 19.92 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.655e-05/0.3085, allocations: 59.77 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.3088, allocations: 187.4 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3089, allocations: 4 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.208e-06/0.3089, allocations: 0 / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.3089, allocations: 3.938 kB / 1.223 GB, free: 11.65 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.0008173/0.3097, allocations: 426.9 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.3098, allocations: 8.031 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.679e-05/0.3098, allocations: 38.75 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.13e-05/0.3099, allocations: 8.891 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.31, allocations: 192.2 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.314e-05/0.3101, allocations: 30.27 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.3101, allocations: 8.375 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.3104, allocations: 108.1 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3104, allocations: 0 / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.3104, allocations: 0 / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3104, allocations: 7.938 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.3105, allocations: 43.97 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006649/0.3112, allocations: 0.5204 MB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005036/0.3117, allocations: 139.7 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.726e-05/0.3118, allocations: 46.66 kB / 1.224 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.3118, allocations: 4 kB / 1.224 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.3121, allocations: 117.8 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.3121, allocations: 0 / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0003604/0.3125, allocations: 141.5 kB / 1.224 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.829e-05/0.3126, allocations: 110.8 kB / 1.225 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.3127, allocations: 129.7 kB / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.3127, allocations: 25.7 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.185e-05/0.3128, allocations: 100.5 kB / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.3128, allocations: 35.73 kB / 1.225 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.3129, allocations: 37.83 kB / 1.225 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.313, allocations: 318.8 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.835e-05/0.3131, allocations: 35.98 kB / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9e-05/0.3132, allocations: 39.97 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.3134, allocations: 80.02 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3134, allocations: 0 / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002418/0.3137, allocations: 133.5 kB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.3137, allocations: 4 kB / 1.225 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.3137, allocations: 7.984 kB / 1.225 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.3137, allocations: 4 kB / 1.225 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3139, allocations: 15.98 kB / 1.225 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3139, allocations: 0 / 1.225 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.21e-05/0.314, allocations: 19.83 kB / 1.225 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.314, allocations: 8 kB / 1.226 GB, free: 8.445 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 9.016e-05/0.3141, allocations: 124.4 kB / 1.226 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.3141, allocations: 7.953 kB / 1.226 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002228/0.3143, allocations: 118 kB / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3144, allocations: 4 kB / 1.226 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3144, allocations: 0 / 1.226 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3144, allocations: 3.938 kB / 1.226 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.3146, allocations: 217.9 kB / 1.226 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3146, allocations: 4.234 kB / 1.226 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.117e-05/0.3147, allocations: 19.98 kB / 1.226 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.3147, allocations: 8 kB / 1.226 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.3147, allocations: 4 kB / 1.226 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.3147, allocations: 4 kB / 1.226 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3147, allocations: 3.984 kB / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.3149, allocations: 174.6 kB / 1.226 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.414e-05/0.315, allocations: 108.9 kB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.3151, allocations: 8 kB / 1.226 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.192e-05/0.3152, allocations: 11.98 kB / 1.226 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.189e-05/0.3152, allocations: 15.92 kB / 1.226 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.3152, allocations: 4 kB / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.492e-05/0.3153, allocations: 102 kB / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.713e-06/0.3153, allocations: 0 / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002866/0.3156, allocations: 59.75 kB / 1.226 GB, free: 7.355 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.0006636/0.3163, allocations: 0.7648 MB / 1.227 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.3165, allocations: 95.89 kB / 1.227 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3165, allocations: 0 / 1.227 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.386e-05/0.3166, allocations: 51.92 kB / 1.227 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.3169, allocations: 23.92 kB / 1.227 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.3185, allocations: 1.543 MB / 1.229 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.3188, allocations: 0.7002 MB / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.762e-05/0.3188, allocations: 16.55 kB / 1.23 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.686e-05/0.3189, allocations: 31.42 kB / 1.23 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.3189, allocations: 0 / 1.23 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.3385, allocations: 2.998 MB / 1.233 GB, free: 1.133 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/8.118, allocations: 9.781 kB / 1.233 GB, free: 1.125 MB / 0.9825 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