Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_9_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.006539/0.00654, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001226/0.001226, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.299/2.299, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.91 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.883/0.8844, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001986/0.8864, allocations: 0.7423 MB / 1.088 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002/0.8884, allocations: 1.523 MB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.8885, allocations: 1.219 kB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.946e-05/0.8886, allocations: 4.641 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001891/0.8887, allocations: 21.34 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.8892, allocations: 158.1 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.8894, allocations: 116.5 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.8895, allocations: 22.67 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.8897, allocations: 48.09 kB / 1.09 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.8898, allocations: 50.94 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.8898, allocations: 15.5 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.8901, allocations: 100.2 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.905e-05/0.8901, allocations: 25.55 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.214e-05/0.8902, allocations: 44.36 kB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003869/0.8906, allocations: 197.9 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.8906, allocations: 7.938 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.645e-06/0.8906, allocations: 3.938 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.8906, allocations: 0 / 1.09 GB, free: 3.32 MB / 0.8575 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.0006578/0.8913, allocations: 426.1 kB / 1.091 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.8913, allocations: 9.5 kB / 1.091 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.103e-05/0.8914, allocations: 38.48 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.8914, allocations: 14.25 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.946e-05/0.8915, allocations: 170.4 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.051e-05/0.8916, allocations: 35.83 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.8916, allocations: 5.531 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.8918, allocations: 102.5 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.8918, allocations: 3.938 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.8919, allocations: 9.703 kB / 1.091 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.8919, allocations: 2.078 kB / 1.091 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.892, allocations: 48.7 kB / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.8926, allocations: 0.5126 MB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004938/0.8931, allocations: 141.9 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.917e-05/0.8932, allocations: 44.66 kB / 1.092 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.8932, allocations: 2.172 kB / 1.092 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.8935, allocations: 124.2 kB / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.8935, allocations: 0 / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0003979/0.8939, allocations: 140.1 kB / 1.092 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.894, allocations: 117.6 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.8941, allocations: 125.2 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.8941, allocations: 31.55 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.283e-05/0.8941, allocations: 88.39 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.8942, allocations: 35.12 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.267e-05/0.8943, allocations: 33.38 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.887e-05/0.8943, allocations: 323.8 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.8944, allocations: 34.17 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.773e-05/0.8945, allocations: 39.81 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.8947, allocations: 81.66 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.8948, allocations: 0 / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002785/0.895, allocations: 131.2 kB / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.8951, allocations: 5.094 kB / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.8951, allocations: 1.188 kB / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.8951, allocations: 1.859 kB / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.8953, allocations: 17.91 kB / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.8953, allocations: 1.484 kB / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.478e-05/0.8954, allocations: 18.48 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.8954, allocations: 8.297 kB / 1.093 GB, free: 0.8359 MB / 0.8575 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.0001018/0.8955, allocations: 125.8 kB / 1.093 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.8955, allocations: 8.562 kB / 1.093 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002641/0.8958, allocations: 121.6 kB / 1.093 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.8958, allocations: 6.25 kB / 1.093 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.8958, allocations: 4.688 kB / 1.093 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.8959, allocations: 6.188 kB / 1.093 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.896, allocations: 210.5 kB / 1.094 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.8961, allocations: 0.9062 kB / 1.094 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.8962, allocations: 21.27 kB / 1.094 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.8962, allocations: 5.406 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.8962, allocations: 3.031 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.8962, allocations: 2.297 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.8962, allocations: 4.812 kB / 1.094 GB, free: 408 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.8965, allocations: 189.1 kB / 1.094 GB, free: 268 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-05/0.8966, allocations: 101.3 kB / 1.094 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.8966, allocations: 7.047 kB / 1.094 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.961e-05/0.8967, allocations: 5.469 kB / 1.094 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.8968, allocations: 18.69 kB / 1.094 GB, free: 148 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.8968, allocations: 4.375 kB / 1.094 GB, free: 148 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.72e-05/0.8969, allocations: 106.9 kB / 1.094 GB, free: 60 kB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.8969, allocations: 0 / 1.094 GB, free: 60 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003356/0.8972, allocations: 57.42 kB / 1.094 GB, free: 44 kB / 0.8575 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.0007817/0.898, allocations: 0.7541 MB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003047/0.8983, allocations: 102.6 kB / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.8983, allocations: 0 / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.8985, allocations: 51.3 kB / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.8987, allocations: 15.31 kB / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.9007, allocations: 1.551 MB / 1.097 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.9011, allocations: 0.7023 MB / 1.097 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.636e-05/0.9012, allocations: 12.22 kB / 1.097 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.88e-05/0.9013, allocations: 38.83 kB / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of SimCode: time 3.7e-07/0.9013, allocations: 0 / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.9219, allocations: 2.971 MB / 1.1 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/8.472, allocations: 10.69 kB / 1.1 GB, free: 12.78 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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