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.001172/0.001172, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.439/1.439, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.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.427/2.427, allocations: 390.2 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.91 kB / 0.8126 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5666/0.568, allocations: 140.4 MB / 0.9497 GB, free: 9.344 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001768/0.5698, allocations: 0.7285 MB / 0.9504 GB, free: 8.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.5712, allocations: 1.525 MB / 0.9519 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.642e-05/0.5712, allocations: 5.125 kB / 0.9519 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.742e-05/0.5713, allocations: 7.875 kB / 0.9519 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.5714, allocations: 23.75 kB / 0.9519 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.5718, allocations: 154.3 kB / 0.9521 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.5719, allocations: 115.6 kB / 0.9522 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.134e-05/0.572, allocations: 16.83 kB / 0.9522 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.156e-05/0.5721, allocations: 52.28 kB / 0.9523 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.182e-05/0.5722, allocations: 51.3 kB / 0.9523 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.5722, allocations: 11.53 kB / 0.9523 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.5724, allocations: 87.42 kB / 0.9524 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.5724, allocations: 24.02 kB / 0.9524 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.77e-05/0.5724, allocations: 52.5 kB / 0.9525 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.5727, allocations: 192.5 kB / 0.9527 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.5727, allocations: 0 / 0.9527 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.5727, allocations: 0 / 0.9527 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.309e-06/0.5727, allocations: 5.344 kB / 0.9527 GB, free: 7.047 MB / 0.7169 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.0005714/0.5733, allocations: 422.9 kB / 0.9531 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.5733, allocations: 9.062 kB / 0.9531 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.061e-05/0.5734, allocations: 41.33 kB / 0.9531 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.94e-05/0.5734, allocations: 8.844 kB / 0.9531 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.265e-05/0.5735, allocations: 185.5 kB / 0.9533 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.554e-05/0.5735, allocations: 34.16 kB / 0.9533 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.5736, allocations: 10.06 kB / 0.9534 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.5737, allocations: 98.58 kB / 0.9534 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.5737, allocations: 4 kB / 0.9535 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.5737, allocations: 8.984 kB / 0.9535 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.5737, allocations: 1.375 kB / 0.9535 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.582e-05/0.5738, allocations: 46.38 kB / 0.9535 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004715/0.5743, allocations: 0.5224 MB / 0.954 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004367/0.5748, allocations: 138.5 kB / 0.9541 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.171e-05/0.5748, allocations: 42.17 kB / 0.9542 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.5749, allocations: 5.234 kB / 0.9542 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001646/0.575, allocations: 115.4 kB / 0.9543 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.5751, allocations: 4 kB / 0.9543 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002819/0.5753, allocations: 138.3 kB / 0.9544 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.5754, allocations: 105.3 kB / 0.9545 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.668e-05/0.5755, allocations: 130.5 kB / 0.9547 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.5755, allocations: 27.17 kB / 0.9547 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.994e-05/0.5755, allocations: 90.92 kB / 0.9548 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.5755, allocations: 39.73 kB / 0.9548 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.5756, allocations: 33.05 kB / 0.9548 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.786e-05/0.5756, allocations: 329.5 kB / 0.9552 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-05/0.5757, allocations: 33.73 kB / 0.9552 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.666e-05/0.5758, allocations: 38.86 kB / 0.9552 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.576, allocations: 76.84 kB / 0.9553 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.576, allocations: 0 / 0.9553 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002169/0.5762, allocations: 131.8 kB / 0.9554 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.5762, allocations: 6.094 kB / 0.9554 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.5762, allocations: 0 / 0.9554 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.5762, allocations: 5.719 kB / 0.9554 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.5764, allocations: 21.45 kB / 0.9555 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.5764, allocations: 0.9688 kB / 0.9555 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.773e-05/0.5765, allocations: 17.33 kB / 0.9555 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.5765, allocations: 6.938 kB / 0.9555 GB, free: 4.371 MB / 0.7169 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 6.155e-05/0.5766, allocations: 121.7 kB / 0.9556 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.5766, allocations: 10.56 kB / 0.9556 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.5768, allocations: 125.8 kB / 0.9557 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5768, allocations: 3.562 kB / 0.9557 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5768, allocations: 0 / 0.9557 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.5768, allocations: 7.438 kB / 0.9557 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.5769, allocations: 215.8 kB / 0.9559 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.577, allocations: 1.406 kB / 0.9559 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.525e-05/0.5771, allocations: 22.61 kB / 0.956 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.5771, allocations: 5 kB / 0.956 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.5771, allocations: 6.25 kB / 0.956 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.5771, allocations: 5.031 kB / 0.956 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5771, allocations: 5.359 kB / 0.956 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.5773, allocations: 174.4 kB / 0.9562 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.506e-05/0.5774, allocations: 102.4 kB / 0.9563 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.5774, allocations: 2.375 kB / 0.9563 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.07e-05/0.5775, allocations: 12.94 kB / 0.9563 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.5775, allocations: 13.89 kB / 0.9563 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.5775, allocations: 12.55 kB / 0.9563 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.898e-05/0.5776, allocations: 94.8 kB / 0.9564 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5776, allocations: 0 / 0.9564 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000263/0.5779, allocations: 55.16 kB / 0.9564 GB, free: 3.516 MB / 0.7169 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.0004456/0.5783, allocations: 0.7592 MB / 0.9572 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002184/0.5785, allocations: 104.4 kB / 0.9573 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5785, allocations: 0 / 0.9573 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.609e-05/0.5786, allocations: 54.91 kB / 0.9573 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.5788, allocations: 23 kB / 0.9574 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.5801, allocations: 1.535 MB / 0.9589 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.97e-05/0.5802, allocations: 0.7045 MB / 0.9595 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.96e-05/0.5803, allocations: 12.94 kB / 0.9596 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.779e-05/0.5803, allocations: 38.3 kB / 0.9596 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/0.5803, allocations: 0 / 0.9596 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.6006, allocations: 2.927 MB / 0.9624 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/8.135, allocations: 13.23 kB / 0.9625 GB, free: 15.09 MB / 0.7325 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