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.008802/0.008808, allocations: 99.44 kB / 15.73 MB, free: 6.039 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.001671/0.001671, allocations: 193.6 kB / 16.67 MB, free: 5.965 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.597/2.597, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 59.91 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3158, allocations: 151.6 MB / 1.166 GB, free: 7.363 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002007/0.3179, allocations: 0.72 MB / 1.167 GB, free: 6.637 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002034/0.3199, allocations: 1.525 MB / 1.168 GB, free: 5.094 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.493e-05/0.32, allocations: 4 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.679e-05/0.3201, allocations: 7.875 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.3203, allocations: 19.84 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004738/0.3207, allocations: 155.5 kB / 1.169 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.3209, allocations: 123.7 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.321, allocations: 12 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.3212, allocations: 59.77 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.281e-05/0.3213, allocations: 47.81 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.3213, allocations: 12 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002114/0.3215, allocations: 99.92 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.3216, allocations: 23.97 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.793e-05/0.3216, allocations: 43.8 kB / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.3219, allocations: 215.5 kB / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.322, allocations: 0 / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.583e-06/0.322, allocations: 0 / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.322, allocations: 0 / 1.169 GB, free: 4.285 MB / 0.92 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.0007702/0.3228, allocations: 426.8 kB / 1.17 GB, free: 3.82 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.3228, allocations: 8.031 kB / 1.17 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.702e-05/0.3229, allocations: 46.73 kB / 1.17 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.24e-05/0.3229, allocations: 12.89 kB / 1.17 GB, free: 3.746 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.3231, allocations: 180.2 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.951e-05/0.3232, allocations: 38.25 kB / 1.17 GB, free: 3.488 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.3232, allocations: 8.375 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.3234, allocations: 100.2 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.3234, allocations: 3.984 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.3234, allocations: 4 kB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.3234, allocations: 7.938 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.3235, allocations: 43.97 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000665/0.3242, allocations: 0.5127 MB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004825/0.3247, allocations: 139.7 kB / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.828e-05/0.3248, allocations: 38.67 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.3248, allocations: 16.05 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.3251, allocations: 113.8 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.3251, allocations: 0 / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0003508/0.3255, allocations: 137.5 kB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.3256, allocations: 114.9 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.3257, allocations: 121.8 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.3257, allocations: 33.7 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.02e-05/0.3258, allocations: 92.36 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.3258, allocations: 31.69 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.143e-05/0.3259, allocations: 37.7 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.326, allocations: 322.8 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.814e-05/0.3261, allocations: 35.98 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.891e-05/0.3262, allocations: 43.92 kB / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.3264, allocations: 74.81 kB / 1.172 GB, free: 1.285 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3264, allocations: 0 / 1.172 GB, free: 1.285 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002405/0.3267, allocations: 125.6 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3267, allocations: 4 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3267, allocations: 4 kB / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3267, allocations: 0 / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.3269, allocations: 19.92 kB / 1.172 GB, free: 1.129 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3269, allocations: 4 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.175e-05/0.327, allocations: 27.81 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.327, allocations: 4 kB / 1.172 GB, free: 1.094 MB / 0.92 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.555e-05/0.3271, allocations: 121.8 kB / 1.172 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.3271, allocations: 7.953 kB / 1.172 GB, free: 0.957 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.3274, allocations: 118.1 kB / 1.172 GB, free: 0.832 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3274, allocations: 11.94 kB / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3274, allocations: 320 / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3274, allocations: 3.938 kB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.3276, allocations: 217.5 kB / 1.172 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.3277, allocations: 11.98 kB / 1.172 GB, free: 0.543 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.752e-05/0.3278, allocations: 19.94 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.3278, allocations: 4 kB / 1.172 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.3278, allocations: 0 / 1.172 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.3278, allocations: 7.984 kB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3278, allocations: 0 / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.3281, allocations: 176.5 kB / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 9.51e-05/0.3282, allocations: 105 kB / 1.173 GB, free: 200 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.3282, allocations: 11.95 kB / 1.173 GB, free: 188 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.854e-05/0.3283, allocations: 4 kB / 1.173 GB, free: 184 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.3284, allocations: 15.92 kB / 1.173 GB, free: 168 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.3284, allocations: 7.984 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of sorting global known variables: time 7.117e-05/0.3285, allocations: 103.3 kB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3285, allocations: 0 / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.000301/0.3288, allocations: 55.81 kB / 1.173 GB, free: 0 / 0.92 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.0007389/0.3295, allocations: 0.7583 MB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002419/0.3298, allocations: 101.9 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3298, allocations: 0 / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.289e-05/0.3299, allocations: 51.92 kB / 1.174 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.3301, allocations: 17.97 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.332, allocations: 1.546 MB / 1.175 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.3323, allocations: 0.6963 MB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.019e-05/0.3324, allocations: 20.3 kB / 1.176 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.443e-05/0.3325, allocations: 39.36 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of SimCode: time 2e-07/0.3325, allocations: 0 / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.3558, allocations: 2.977 MB / 1.179 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.807/8.163, allocations: 6.25 kB / 1.179 GB, free: 9.785 MB / 0.9356 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