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.001085/0.001085, allocations: 108 kB / 15.6 MB, free: 124 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.001111/0.001111, allocations: 195.6 kB / 16.54 MB, free: 6.668 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.29/2.29, allocations: 390.3 MB / 0.6647 GB, free: 404 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 0.8126 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6031/0.6044, allocations: 140.4 MB / 0.9497 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.0017/0.6062, allocations: 0.7212 MB / 0.9504 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.6075, allocations: 1.533 MB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.54e-05/0.6075, allocations: 1.5 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.705e-05/0.6076, allocations: 3.938 kB / 0.9519 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.6077, allocations: 17.52 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.608, allocations: 156 kB / 0.9521 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.6081, allocations: 122.9 kB / 0.9522 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.817e-05/0.6082, allocations: 17.88 kB / 0.9522 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.819e-05/0.6083, allocations: 51.8 kB / 0.9523 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.603e-05/0.6084, allocations: 46.39 kB / 0.9523 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.6084, allocations: 11.28 kB / 0.9523 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.6086, allocations: 92.84 kB / 0.9524 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.6086, allocations: 19.67 kB / 0.9524 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.579e-05/0.6087, allocations: 44.39 kB / 0.9525 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.6089, allocations: 201 kB / 0.9527 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.6089, allocations: 0 / 0.9527 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.723e-06/0.6089, allocations: 0 / 0.9527 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.6089, allocations: 3.938 kB / 0.9527 GB, free: 6.828 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.0005169/0.6094, allocations: 430.8 kB / 0.9531 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.6095, allocations: 10.34 kB / 0.9531 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.692e-05/0.6095, allocations: 35.81 kB / 0.9531 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.6095, allocations: 9.938 kB / 0.9531 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.345e-05/0.6096, allocations: 180.9 kB / 0.9533 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.461e-05/0.6097, allocations: 39.64 kB / 0.9533 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.6097, allocations: 4.719 kB / 0.9534 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.6099, allocations: 111.2 kB / 0.9535 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.6099, allocations: 0 / 0.9535 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.6099, allocations: 1.625 kB / 0.9535 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.6099, allocations: 1.5 kB / 0.9535 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.738e-05/0.61, allocations: 42.11 kB / 0.9535 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000445/0.6104, allocations: 0.5235 MB / 0.954 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004012/0.6108, allocations: 137.5 kB / 0.9541 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.731e-05/0.6109, allocations: 42.06 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.6109, allocations: 1.156 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.6111, allocations: 119.3 kB / 0.9543 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.6111, allocations: 4 kB / 0.9543 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002612/0.6114, allocations: 146.1 kB / 0.9544 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.6114, allocations: 109 kB / 0.9545 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.195e-05/0.6115, allocations: 122.9 kB / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.6115, allocations: 30.89 kB / 0.9547 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.933e-05/0.6115, allocations: 90.66 kB / 0.9548 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.6116, allocations: 31.62 kB / 0.9548 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.881e-05/0.6116, allocations: 46.12 kB / 0.9549 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.519e-05/0.6116, allocations: 321.3 kB / 0.9552 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.155e-05/0.6117, allocations: 34.05 kB / 0.9552 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.1e-05/0.6118, allocations: 39.12 kB / 0.9552 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.612, allocations: 76.33 kB / 0.9553 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.612, allocations: 0 / 0.9553 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002002/0.6122, allocations: 129 kB / 0.9554 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.6122, allocations: 4.344 kB / 0.9554 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.6122, allocations: 7.984 kB / 0.9554 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.6122, allocations: 5.391 kB / 0.9554 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.6123, allocations: 22.3 kB / 0.9555 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.6123, allocations: 1.375 kB / 0.9555 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.927e-05/0.6124, allocations: 13.38 kB / 0.9555 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.6124, allocations: 3.125 kB / 0.9555 GB, free: 4.152 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.206e-05/0.6125, allocations: 133.5 kB / 0.9556 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/0.6125, allocations: 7.031 kB / 0.9556 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001933/0.6127, allocations: 123.4 kB / 0.9557 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.6127, allocations: 2.188 kB / 0.9557 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.6127, allocations: 8.984 kB / 0.9557 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.6127, allocations: 5.125 kB / 0.9557 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.6129, allocations: 217.2 kB / 0.956 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.6129, allocations: 1.25 kB / 0.956 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.983e-05/0.613, allocations: 16.88 kB / 0.956 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.613, allocations: 11.92 kB / 0.956 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.613, allocations: 3.531 kB / 0.956 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.613, allocations: 3.938 kB / 0.956 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.613, allocations: 3.562 kB / 0.956 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001823/0.6132, allocations: 178.5 kB / 0.9562 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.189e-05/0.6132, allocations: 95.06 kB / 0.9563 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.6133, allocations: 10.12 kB / 0.9563 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.323e-05/0.6133, allocations: 8.109 kB / 0.9563 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.6134, allocations: 18.86 kB / 0.9563 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.6134, allocations: 3.906 kB / 0.9563 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.804e-05/0.6134, allocations: 99.05 kB / 0.9564 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6134, allocations: 0 / 0.9564 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002455/0.6137, allocations: 55.41 kB / 0.9564 GB, free: 3.289 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.0004147/0.6141, allocations: 0.7622 MB / 0.9572 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000201/0.6143, allocations: 104.5 kB / 0.9573 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.6143, allocations: 1.25 kB / 0.9573 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.627e-05/0.6144, allocations: 54.2 kB / 0.9573 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.6146, allocations: 26.83 kB / 0.9574 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.6158, allocations: 1.528 MB / 0.9589 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.406e-05/0.6159, allocations: 0.7047 MB / 0.9595 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.416e-05/0.616, allocations: 16.05 kB / 0.9596 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.393e-05/0.616, allocations: 35.17 kB / 0.9596 GB, free: 404 kB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.616, allocations: 0 / 0.9596 GB, free: 404 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08946/0.7055, allocations: 2.932 MB / 0.9625 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.433/8.139, allocations: 10.5 kB / 0.9625 GB, free: 14.86 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)