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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.008344/0.008344, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.002272/0.002272, allocations: 196.4 kB / 16.68 MB, free: 5.934 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.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.838/2.838, allocations: 482.4 MB / 0.7548 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.89 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2777, allocations: 162.2 MB / 1.241 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001747/0.2795, allocations: 0.726 MB / 1.242 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.2814, allocations: 1.526 MB / 1.244 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.689e-05/0.2815, allocations: 4 kB / 1.244 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.2815, allocations: 3.938 kB / 1.244 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.2816, allocations: 27.78 kB / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003793/0.282, allocations: 151.5 kB / 1.244 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001564/0.2822, allocations: 115.6 kB / 1.244 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.899e-05/0.2823, allocations: 27.98 kB / 1.244 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.2824, allocations: 43.91 kB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.2825, allocations: 55.75 kB / 1.244 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.371e-05/0.2826, allocations: 8 kB / 1.244 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.2828, allocations: 103.9 kB / 1.244 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.609e-05/0.2828, allocations: 23.97 kB / 1.244 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.253e-05/0.2829, allocations: 47.78 kB / 1.244 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.2832, allocations: 203.5 kB / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.2832, allocations: 0 / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2832, allocations: 4 kB / 1.244 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.2832, allocations: 0 / 1.244 GB, free: 6.254 MB / 0.9669 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.0007003/0.2839, allocations: 430.8 kB / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.284, allocations: 8.031 kB / 1.245 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.284, allocations: 38.75 kB / 1.245 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.2841, allocations: 8.891 kB / 1.245 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.2842, allocations: 180.3 kB / 1.245 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.942e-05/0.2843, allocations: 34.25 kB / 1.245 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.2843, allocations: 12.38 kB / 1.245 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.2845, allocations: 111.3 kB / 1.245 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.2845, allocations: 0 / 1.245 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.2845, allocations: 4 kB / 1.245 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2845, allocations: 0 / 1.245 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.2847, allocations: 47.91 kB / 1.245 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006544/0.2853, allocations: 0.5088 MB / 1.246 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.2858, allocations: 139.8 kB / 1.246 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.443e-05/0.2859, allocations: 54.53 kB / 1.246 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.286, allocations: 3.984 kB / 1.246 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.2862, allocations: 113.9 kB / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.2862, allocations: 0 / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.000341/0.2865, allocations: 149.7 kB / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.2866, allocations: 102.8 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.2867, allocations: 125.8 kB / 1.246 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.2868, allocations: 37.83 kB / 1.246 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.2868, allocations: 88.38 kB / 1.247 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.2869, allocations: 31.73 kB / 1.247 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.2869, allocations: 33.7 kB / 1.247 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2871, allocations: 322.8 kB / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.953e-05/0.2872, allocations: 35.97 kB / 1.247 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.2873, allocations: 43.98 kB / 1.247 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.2875, allocations: 82.89 kB / 1.247 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2875, allocations: 0 / 1.247 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002616/0.2878, allocations: 129.6 kB / 1.247 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.2878, allocations: 8 kB / 1.247 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2878, allocations: 0 / 1.247 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.2878, allocations: 0 / 1.247 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.2879, allocations: 19.98 kB / 1.247 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.288, allocations: 0 / 1.247 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.628e-05/0.2881, allocations: 19.83 kB / 1.247 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.2881, allocations: 7.984 kB / 1.247 GB, free: 3.066 MB / 0.9669 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.0001055/0.2882, allocations: 127.8 kB / 1.247 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.234e-05/0.2882, allocations: 7.953 kB / 1.247 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002495/0.2885, allocations: 118.1 kB / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2885, allocations: 0 / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2885, allocations: 0 / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.2885, allocations: 11.88 kB / 1.247 GB, free: 2.785 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.2887, allocations: 225.5 kB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2887, allocations: 0 / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.771e-05/0.2888, allocations: 19.98 kB / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2888, allocations: 0 / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.2889, allocations: 8 kB / 1.248 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.2889, allocations: 3.938 kB / 1.248 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2889, allocations: 0 / 1.248 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002673/0.2892, allocations: 174.7 kB / 1.248 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.2892, allocations: 101 kB / 1.248 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.2893, allocations: 7.953 kB / 1.248 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.491e-05/0.2894, allocations: 11.98 kB / 1.248 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.042e-05/0.2894, allocations: 15.98 kB / 1.248 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2894, allocations: 11.94 kB / 1.248 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.7e-05/0.2895, allocations: 95.27 kB / 1.248 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.974e-06/0.2895, allocations: 0 / 1.248 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002813/0.2898, allocations: 71.73 kB / 1.248 GB, free: 1.961 MB / 0.9669 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.0006779/0.2905, allocations: 0.7566 MB / 1.249 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000245/0.2908, allocations: 91.97 kB / 1.249 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2908, allocations: 4 kB / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.2909, allocations: 55.86 kB / 1.249 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.2911, allocations: 15.92 kB / 1.249 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.2929, allocations: 1.546 MB / 1.251 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.2932, allocations: 0.7079 MB / 1.251 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.789e-05/0.2933, allocations: 16.67 kB / 1.251 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.161e-05/0.2934, allocations: 35.42 kB / 1.251 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of SimCode: time 2.454e-06/0.2934, allocations: 0 / 1.251 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.3167, allocations: 2.996 MB / 1.254 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.07, allocations: 3.984 kB / 1.254 GB, free: 11.74 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 400 --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