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.001171/0.001171, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001201/0.001202, allocations: 189 kB / 16.25 MB, free: 6.152 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 / 239.9 MB, free: 4.41 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.412/2.412, allocations: 390.2 MB / 0.6644 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 55.91 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7958/0.7973, allocations: 140.4 MB / 0.9492 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002068/0.7994, allocations: 0.7848 MB / 0.95 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00164/0.8011, allocations: 1.517 MB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.463e-05/0.8012, allocations: 1.375 kB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.258e-05/0.8012, allocations: 3.984 kB / 0.9515 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.8014, allocations: 18.36 kB / 0.9515 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.8018, allocations: 139.5 kB / 0.9516 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.8019, allocations: 119.2 kB / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.8021, allocations: 24.31 kB / 0.9518 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.8022, allocations: 51.72 kB / 0.9518 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.356e-05/0.8023, allocations: 47.98 kB / 0.9519 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.761e-05/0.8023, allocations: 14.89 kB / 0.9519 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.8025, allocations: 88.22 kB / 0.952 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.053e-05/0.8025, allocations: 23.73 kB / 0.952 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.712e-05/0.8026, allocations: 44.41 kB / 0.952 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.8029, allocations: 197.2 kB / 0.9522 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.8029, allocations: 4 kB / 0.9522 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8029, allocations: 0 / 0.9522 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.8029, allocations: 1.438 kB / 0.9522 GB, free: 6.773 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.0006557/0.8036, allocations: 427.6 kB / 0.9526 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.8036, allocations: 8.031 kB / 0.9526 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.246e-05/0.8037, allocations: 42.08 kB / 0.9527 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.8037, allocations: 7.812 kB / 0.9527 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.8038, allocations: 174.2 kB / 0.9528 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.825e-05/0.8039, allocations: 38.03 kB / 0.9529 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.8039, allocations: 13.12 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.8041, allocations: 103.8 kB / 0.953 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.8041, allocations: 0 / 0.953 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.8041, allocations: 1.188 kB / 0.953 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.8041, allocations: 1.094 kB / 0.953 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.966e-05/0.8042, allocations: 50.19 kB / 0.953 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000567/0.8048, allocations: 0.5194 MB / 0.9536 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.8053, allocations: 133.7 kB / 0.9537 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.025e-05/0.8054, allocations: 46.05 kB / 0.9537 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.8054, allocations: 9.266 kB / 0.9537 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.8056, allocations: 114.2 kB / 0.9538 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.8056, allocations: 4.938 kB / 0.9538 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003476/0.806, allocations: 141.8 kB / 0.954 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.8061, allocations: 109.5 kB / 0.9541 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.531e-05/0.8062, allocations: 126.1 kB / 0.9542 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.8062, allocations: 31.95 kB / 0.9542 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.016e-05/0.8062, allocations: 98.78 kB / 0.9543 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.639e-05/0.8063, allocations: 28 kB / 0.9544 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-05/0.8063, allocations: 36.7 kB / 0.9544 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.676e-05/0.8064, allocations: 324.8 kB / 0.9547 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-05/0.8065, allocations: 34.89 kB / 0.9547 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.237e-05/0.8066, allocations: 41.05 kB / 0.9548 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.8068, allocations: 78.06 kB / 0.9549 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.8068, allocations: 4 kB / 0.9549 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002341/0.807, allocations: 129.3 kB / 0.955 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.807, allocations: 4.625 kB / 0.955 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.807, allocations: 1.125 kB / 0.955 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.8071, allocations: 0 / 0.955 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.8072, allocations: 24.27 kB / 0.955 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.8072, allocations: 0 / 0.955 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.451e-05/0.8073, allocations: 20.7 kB / 0.955 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.8073, allocations: 2.844 kB / 0.955 GB, free: 4.098 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 8.678e-05/0.8074, allocations: 129.5 kB / 0.9552 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.152e-05/0.8074, allocations: 8.281 kB / 0.9552 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.8077, allocations: 114.1 kB / 0.9553 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.8077, allocations: 2.438 kB / 0.9553 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.8077, allocations: 1.25 kB / 0.9553 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.8077, allocations: 7.938 kB / 0.9553 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.8079, allocations: 221.8 kB / 0.9555 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.8079, allocations: 9.391 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.483e-05/0.808, allocations: 15 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.808, allocations: 1.094 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.808, allocations: 2.344 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.808, allocations: 9.047 kB / 0.9555 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.808, allocations: 1.125 kB / 0.9555 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002519/0.8083, allocations: 177 kB / 0.9557 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-05/0.8084, allocations: 98.83 kB / 0.9558 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.8084, allocations: 6.75 kB / 0.9558 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.509e-05/0.8085, allocations: 4.344 kB / 0.9558 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.8085, allocations: 18.52 kB / 0.9558 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.8086, allocations: 11.48 kB / 0.9558 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.049e-05/0.8086, allocations: 106.5 kB / 0.9559 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8086, allocations: 5.094 kB / 0.9559 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002905/0.8089, allocations: 55.31 kB / 0.956 GB, free: 3.234 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.0005262/0.8094, allocations: 0.7573 MB / 0.9567 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002486/0.8097, allocations: 107.9 kB / 0.9568 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.8097, allocations: 0 / 0.9568 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.272e-05/0.8098, allocations: 50.02 kB / 0.9569 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.81, allocations: 13.69 kB / 0.9569 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.8115, allocations: 1.573 MB / 0.9584 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.8117, allocations: 0.7037 MB / 0.9591 GB, free: 352 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.448e-05/0.8117, allocations: 16.28 kB / 0.9591 GB, free: 344 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.8118, allocations: 31.73 kB / 0.9592 GB, free: 320 kB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.8118, allocations: 0 / 0.9592 GB, free: 320 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01363/0.8255, allocations: 2.819 MB / 0.9619 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.8257, allocations: 229.3 kB / 0.9621 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.671, allocations: 0 / 0.9621 GB, free: 14.68 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)