Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_latest_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.001602/0.001602, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001962/0.001962, allocations: 194.9 kB / 16.26 MB, free: 6.625 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.54/1.54, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.057/4.057, allocations: 461.9 MB / 0.7343 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002837/0.002838, allocations: 58.42 kB / 0.8987 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.572/0.5749, allocations: 157.4 MB / 1.052 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.00423/0.5792, allocations: 0.7855 MB / 1.053 GB, free: 7.887 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004222/0.5834, allocations: 1.536 MB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.5836, allocations: 0 / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.672e-05/0.5837, allocations: 0 / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002955/0.584, allocations: 19.84 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008765/0.5849, allocations: 143.7 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.5852, allocations: 115.7 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.5855, allocations: 19.97 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002652/0.5857, allocations: 51.84 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.586, allocations: 51.77 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.586, allocations: 12 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003413/0.5864, allocations: 79.94 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.589e-05/0.5865, allocations: 35.84 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.5866, allocations: 51.78 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005987/0.5872, allocations: 191.8 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.5873, allocations: 0 / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.947e-06/0.5873, allocations: 0 / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.452e-05/0.5873, allocations: 0 / 1.055 GB, free: 5.574 MB / 0.8106 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.001211/0.5885, allocations: 424.7 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.965e-05/0.5886, allocations: 12.62 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.361e-05/0.5887, allocations: 38.73 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.985e-05/0.5888, allocations: 8.844 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.589, allocations: 172.3 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.5891, allocations: 34.27 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.014e-05/0.5892, allocations: 8.375 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.5895, allocations: 112.1 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.5895, allocations: 0 / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.5896, allocations: 8 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.5896, allocations: 0 / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.5898, allocations: 51.84 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.591, allocations: 0.5165 MB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008434/0.5918, allocations: 135.7 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.592, allocations: 54.59 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.284e-05/0.592, allocations: 0 / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005751/0.5926, allocations: 109.9 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 3.607e-06/0.5926, allocations: 0 / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0005888/0.5932, allocations: 149.4 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.573e-05/0.5934, allocations: 102.8 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.5935, allocations: 125.8 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.5936, allocations: 33.7 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.313e-05/0.5937, allocations: 88.33 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.5938, allocations: 39.61 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.5939, allocations: 29.7 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5941, allocations: 330.9 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.5942, allocations: 32.23 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.5943, allocations: 38.38 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.5947, allocations: 88.72 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5947, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003984/0.5951, allocations: 127.7 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.5951, allocations: 9.094 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.5951, allocations: 3.938 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.5952, allocations: 3.938 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.5954, allocations: 24.17 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.5954, allocations: 0 / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.5956, allocations: 19.86 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.5956, allocations: 4 kB / 1.058 GB, free: 2.387 MB / 0.8106 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.0001742/0.5958, allocations: 131.3 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.809e-05/0.5959, allocations: 7.906 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004578/0.5963, allocations: 114 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.5963, allocations: 0 / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5964, allocations: 0 / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.5964, allocations: 7.938 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003105/0.5967, allocations: 221.4 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.5967, allocations: 0 / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.5969, allocations: 19.98 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.5969, allocations: 0 / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.5969, allocations: 8 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.5969, allocations: 7.938 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5969, allocations: 0 / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004207/0.5974, allocations: 170.7 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.5975, allocations: 100.9 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.5976, allocations: 7.984 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.5977, allocations: 8 kB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.5978, allocations: 15.92 kB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.5979, allocations: 12.06 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001344/0.598, allocations: 98.39 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of sort global known variables: time 8.957e-06/0.5981, allocations: 0 / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005613/0.5986, allocations: 63.77 kB / 1.059 GB, free: 1.309 MB / 0.8106 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.001046/0.5997, allocations: 0.7646 MB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004368/0.6001, allocations: 103.9 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6002, allocations: 0 / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.6003, allocations: 51.92 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.6007, allocations: 15.94 kB / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.6039, allocations: 1.557 MB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005023/0.6044, allocations: 0.7041 MB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001429/0.6046, allocations: 16.41 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.6047, allocations: 35.42 kB / 1.062 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of SimCode: time 6.71e-07/0.6047, allocations: 3.938 kB / 1.062 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0301/0.6348, allocations: 2.827 MB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003555/0.6352, allocations: 228.6 kB / 1.065 GB, free: 11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.293/3.929, allocations: 5.562 kB / 1.065 GB, free: 11 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)