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.009035/0.009035, allocations: 103.9 kB / 15.73 MB, free: 6.047 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.002388/0.002388, allocations: 189.3 kB / 16.67 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.499/2.499, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 59.91 kB / 1.054 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8021/0.8034, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001977/0.8055, allocations: 0.7225 MB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001971/0.8075, allocations: 1.521 MB / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.296e-05/0.8076, allocations: 0 / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.324e-05/0.8076, allocations: 7.875 kB / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.8078, allocations: 19.84 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004835/0.8083, allocations: 155.5 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.8085, allocations: 123.6 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.796e-05/0.8086, allocations: 19.98 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.8087, allocations: 47.86 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.482e-05/0.8088, allocations: 55.75 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.8088, allocations: 12 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.8091, allocations: 99.91 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.633e-05/0.8091, allocations: 27.92 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.459e-05/0.8092, allocations: 43.84 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.8094, allocations: 197.7 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.8095, allocations: 0 / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.753e-06/0.8095, allocations: 7.938 kB / 1.21 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.266e-06/0.8095, allocations: 0 / 1.21 GB, free: 10.51 MB / 0.9356 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.0006649/0.8102, allocations: 427.1 kB / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.8102, allocations: 8.031 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.439e-05/0.8102, allocations: 30.75 kB / 1.211 GB, free: 10 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.146e-05/0.8103, allocations: 16.84 kB / 1.211 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.8104, allocations: 184.2 kB / 1.211 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.684e-05/0.8105, allocations: 30.27 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.8105, allocations: 8.375 kB / 1.211 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.8107, allocations: 104.2 kB / 1.211 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.8107, allocations: 0 / 1.211 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.8107, allocations: 4 kB / 1.211 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.8107, allocations: 8 kB / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.944e-05/0.8109, allocations: 39.92 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006037/0.8115, allocations: 0.5243 MB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004581/0.8119, allocations: 135.7 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.812, allocations: 50.59 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.8121, allocations: 11.98 kB / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.8123, allocations: 113.9 kB / 1.212 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.8123, allocations: 0 / 1.212 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0003455/0.8127, allocations: 137.5 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.8128, allocations: 114.9 kB / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.8129, allocations: 129.7 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.8129, allocations: 29.7 kB / 1.212 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.609e-05/0.813, allocations: 92.41 kB / 1.212 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.207e-05/0.813, allocations: 31.62 kB / 1.212 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.17e-05/0.8131, allocations: 37.69 kB / 1.212 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.8132, allocations: 318.8 kB / 1.213 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.8133, allocations: 35.98 kB / 1.213 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.785e-05/0.8134, allocations: 47.91 kB / 1.213 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.8136, allocations: 74.95 kB / 1.213 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.8136, allocations: 0 / 1.213 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002556/0.8138, allocations: 129.5 kB / 1.213 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.8139, allocations: 4 kB / 1.213 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.8139, allocations: 0 / 1.213 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.8139, allocations: 0 / 1.213 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.814, allocations: 27.91 kB / 1.213 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.814, allocations: 3.938 kB / 1.213 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.431e-05/0.8141, allocations: 23.84 kB / 1.213 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.8142, allocations: 0 / 1.213 GB, free: 7.32 MB / 0.9356 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.0001081/0.8143, allocations: 125.8 kB / 1.213 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.8143, allocations: 4 kB / 1.213 GB, free: 7.184 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000258/0.8146, allocations: 117.8 kB / 1.213 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.8146, allocations: 4 kB / 1.213 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.8146, allocations: 7.984 kB / 1.213 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.8146, allocations: 3.938 kB / 1.213 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.8148, allocations: 213.6 kB / 1.213 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.8148, allocations: 320 / 1.213 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.67e-05/0.8149, allocations: 19.94 kB / 1.214 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.8149, allocations: 11.98 kB / 1.214 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.8149, allocations: 4 kB / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.815, allocations: 0 / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.815, allocations: 4 kB / 1.214 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.8152, allocations: 178.5 kB / 1.214 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.472e-05/0.8153, allocations: 101.2 kB / 1.214 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.8154, allocations: 3.938 kB / 1.214 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.105e-05/0.8154, allocations: 11.98 kB / 1.214 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.8155, allocations: 19.91 kB / 1.214 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.8155, allocations: 8 kB / 1.214 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.388e-05/0.8156, allocations: 99.27 kB / 1.214 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8156, allocations: 0 / 1.214 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002935/0.8159, allocations: 55.94 kB / 1.214 GB, free: 6.234 MB / 0.9356 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.0006696/0.8166, allocations: 0.7623 MB / 1.215 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002364/0.8168, allocations: 95.89 kB / 1.215 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.8168, allocations: 4 kB / 1.215 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.961e-05/0.8169, allocations: 47.92 kB / 1.215 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.8172, allocations: 29.56 kB / 1.215 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.8189, allocations: 1.542 MB / 1.216 GB, free: 3.633 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.8191, allocations: 0.704 MB / 1.217 GB, free: 2.902 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.607e-05/0.8192, allocations: 8.562 kB / 1.217 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.205e-05/0.8193, allocations: 39.42 kB / 1.217 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of SimCode: time 4.4e-07/0.8193, allocations: 0 / 1.217 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/0.8397, allocations: 3.024 MB / 1.22 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.599, allocations: 21.31 kB / 1.22 GB, free: 15.96 MB / 0.9512 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,dayCon.y Variables in the result:dayCon.lat,dayCon.lon,dayCon.timZon,dayCon.y,time