Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_10_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.001528/0.001528, allocations: 108 kB / 15.61 MB, free: 152 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.001837/0.001837, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.532/2.532, allocations: 437 MB / 0.7104 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.91 kB / 0.8693 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5856/0.587, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.00186/0.5889, allocations: 0.7214 MB / 1.018 GB, free: 1.777 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.5907, allocations: 1.536 MB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.02e-05/0.5908, allocations: 0 / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.88e-05/0.5908, allocations: 7.938 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.591, allocations: 19.8 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.5914, allocations: 159.5 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.5915, allocations: 115.7 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.57e-05/0.5916, allocations: 23.92 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.5918, allocations: 55.83 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.5919, allocations: 47.83 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.5919, allocations: 12 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.5921, allocations: 83.94 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.243e-05/0.5921, allocations: 23.92 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.835e-05/0.5922, allocations: 43.8 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.5925, allocations: 201.8 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.5925, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.522e-06/0.5925, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.5925, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 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.0007594/0.5933, allocations: 427 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.5933, allocations: 8.031 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.644e-05/0.5934, allocations: 42.69 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.882e-05/0.5934, allocations: 8.844 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.5936, allocations: 176.2 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.739e-05/0.5937, allocations: 38.27 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.5937, allocations: 8.375 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.5939, allocations: 108.1 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.5939, allocations: 4 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.5939, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5939, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.5941, allocations: 47.97 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006624/0.5947, allocations: 0.5243 MB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004718/0.5952, allocations: 139.7 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.969e-05/0.5953, allocations: 50.59 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.5953, allocations: 0 / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.5955, allocations: 113.9 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.042e-06/0.5956, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003233/0.5959, allocations: 149.5 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.5959, allocations: 106.8 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.327e-05/0.596, allocations: 121.8 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.5961, allocations: 37.83 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.643e-05/0.5961, allocations: 92.31 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.5961, allocations: 23.66 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.682e-05/0.5962, allocations: 41.69 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.5963, allocations: 322.8 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.544e-05/0.5964, allocations: 31.98 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.821e-05/0.5965, allocations: 39.97 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.5966, allocations: 74.11 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5966, allocations: 4 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002244/0.5969, allocations: 130.4 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.5969, allocations: 11.94 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.5969, allocations: 3.984 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.5969, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.597, allocations: 23.98 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.5971, allocations: 3.938 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.589e-05/0.5972, allocations: 11.84 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.5972, allocations: 4 kB / 1.023 GB, free: 12.26 MB / 0.7794 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.39e-05/0.5973, allocations: 135.6 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.5973, allocations: 7.906 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002192/0.5975, allocations: 110 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.5975, allocations: 7.984 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5976, allocations: 4.172 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.5976, allocations: 11.94 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.5977, allocations: 221.5 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.5977, allocations: 3.984 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.081e-05/0.5978, allocations: 19.98 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.5979, allocations: 0 / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.5979, allocations: 4.312 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.5979, allocations: 0 / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.5979, allocations: 4 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.5981, allocations: 186.5 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.722e-05/0.5982, allocations: 93 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.696e-05/0.5982, allocations: 8 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.966e-05/0.5983, allocations: 7.984 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.5984, allocations: 15.92 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.5984, allocations: 4 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.246e-05/0.5985, allocations: 99.27 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.51e-07/0.5985, allocations: 4 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002682/0.5987, allocations: 55.94 kB / 1.024 GB, free: 11.17 MB / 0.7794 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.000544/0.5993, allocations: 0.7635 MB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002208/0.5995, allocations: 103.9 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.5995, allocations: 0 / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.749e-05/0.5996, allocations: 51.92 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.5998, allocations: 19.86 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.6013, allocations: 1.532 MB / 1.027 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/0.6015, allocations: 0.7002 MB / 1.027 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.893e-05/0.6016, allocations: 20.48 kB / 1.027 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.35e-05/0.6017, allocations: 31.42 kB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of SimCode: time 4.21e-07/0.6017, allocations: 0 / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.6198, allocations: 2.936 MB / 1.03 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.126/7.746, allocations: 4.453 kB / 1.03 GB, free: 4.984 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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