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.009656/0.009656, allocations: 100 kB / 15.73 MB, free: 6.059 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.002054/0.002054, allocations: 189.5 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.427/2.427, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.234/4.234, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003395/0.003396, allocations: 63.83 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.523/1.527, allocations: 151.6 MB / 1.166 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.00234/1.529, allocations: 0.7322 MB / 1.167 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002746/1.532, allocations: 1.531 MB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.466e-05/1.532, allocations: 4 kB / 1.168 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.979e-05/1.532, allocations: 3.938 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002163/1.532, allocations: 27.72 kB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005676/1.533, allocations: 155.5 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002228/1.533, allocations: 119.7 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/1.533, allocations: 15.98 kB / 1.169 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/1.533, allocations: 47.84 kB / 1.169 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/1.534, allocations: 51.83 kB / 1.169 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/1.534, allocations: 12 kB / 1.169 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002553/1.534, allocations: 99.91 kB / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.237e-05/1.534, allocations: 27.91 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.89e-05/1.534, allocations: 47.78 kB / 1.169 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004007/1.534, allocations: 195 kB / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/1.534, allocations: 0 / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.663e-06/1.534, allocations: 7.938 kB / 1.169 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.875e-06/1.535, allocations: 0 / 1.169 GB, free: 0.7266 MB / 0.8887 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.001023/1.536, allocations: 434.8 kB / 1.17 GB, free: 260 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/1.536, allocations: 8.625 kB / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.251e-05/1.536, allocations: 34.75 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/1.536, allocations: 12.89 kB / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/1.536, allocations: 176.3 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.588e-05/1.536, allocations: 34.27 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.991e-05/1.536, allocations: 4.375 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000231/1.536, allocations: 112.1 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/1.536, allocations: 0 / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/1.536, allocations: 7.938 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/1.536, allocations: 4 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/1.537, allocations: 43.91 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008267/1.537, allocations: 0.5205 MB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/1.538, allocations: 135.7 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.171e-05/1.538, allocations: 46.66 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/1.538, allocations: 7.938 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/1.538, allocations: 113.9 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 5.921e-06/1.538, allocations: 3.984 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0003931/1.539, allocations: 145.5 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/1.539, allocations: 110.8 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/1.539, allocations: 117.8 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/1.539, allocations: 33.69 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.391e-05/1.539, allocations: 96.44 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.005e-05/1.539, allocations: 35.86 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.541e-05/1.539, allocations: 33.7 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002122/1.539, allocations: 318.8 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/1.54, allocations: 35.98 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/1.54, allocations: 39.97 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/1.54, allocations: 74.25 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/1.54, allocations: 0 / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004268/1.541, allocations: 137.4 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/1.541, allocations: 11.98 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/1.541, allocations: 0 / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.14e-05/1.541, allocations: 0 / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/1.541, allocations: 19.98 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/1.541, allocations: 0 / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/1.541, allocations: 23.83 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/1.541, allocations: 0 / 1.172 GB, free: 13.54 MB / 0.9044 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.0001927/1.541, allocations: 130.3 kB / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/1.541, allocations: 7.953 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003758/1.542, allocations: 117.9 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/1.542, allocations: 4 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/1.542, allocations: 0 / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/1.542, allocations: 3.938 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003311/1.542, allocations: 217.5 kB / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/1.542, allocations: 0 / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/1.542, allocations: 19.98 kB / 1.172 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-06/1.542, allocations: 8 kB / 1.172 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/1.542, allocations: 4.312 kB / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/1.542, allocations: 0 / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.542, allocations: 8 kB / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003995/1.543, allocations: 181 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/1.543, allocations: 101 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/1.543, allocations: 7.953 kB / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/1.543, allocations: 11.98 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.95e-05/1.543, allocations: 20.16 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/1.543, allocations: 4 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001179/1.543, allocations: 100.3 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/1.543, allocations: 0 / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0005187/1.544, allocations: 55.81 kB / 1.173 GB, free: 12.45 MB / 0.9044 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.001175/1.545, allocations: 0.7635 MB / 1.174 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004223/1.546, allocations: 99.89 kB / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/1.546, allocations: 0 / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/1.546, allocations: 51.86 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/1.546, allocations: 23.92 kB / 1.174 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/1.549, allocations: 1.541 MB / 1.175 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/1.55, allocations: 0.7002 MB / 1.176 GB, free: 9.113 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001239/1.55, allocations: 16.55 kB / 1.176 GB, free: 9.098 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/1.55, allocations: 35.42 kB / 1.176 GB, free: 9.066 MB / 0.9044 GB Notification: Performance of SimCode: time 7.02e-07/1.55, allocations: 0 / 1.176 GB, free: 9.066 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/1.591, allocations: 2.979 MB / 1.179 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/14.09, allocations: 6.219 kB / 1.179 GB, free: 6.23 MB / 0.9044 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