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.00435/0.00435, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001219/0.001219, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.384/2.384, allocations: 437.1 MB / 0.7106 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 60.12 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6857/0.6875, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.00186/0.6894, allocations: 0.7395 MB / 1.167 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001882/0.6913, allocations: 1.523 MB / 1.168 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.674e-05/0.6914, allocations: 3.938 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.733e-05/0.6914, allocations: 7.922 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.6916, allocations: 19.86 kB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.692, allocations: 159.5 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.6922, allocations: 115.7 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.252e-05/0.6923, allocations: 19.98 kB / 1.169 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.6924, allocations: 55.77 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.426e-05/0.6925, allocations: 43.83 kB / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.6925, allocations: 12 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.6927, allocations: 99.92 kB / 1.169 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.732e-05/0.6928, allocations: 27.91 kB / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.884e-05/0.6928, allocations: 47.84 kB / 1.169 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.6931, allocations: 195 kB / 1.169 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.6931, allocations: 0 / 1.169 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.322e-06/0.6931, allocations: 0 / 1.169 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.6932, allocations: 0 / 1.169 GB, free: 0.7305 MB / 0.8887 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.000691/0.6938, allocations: 430.8 kB / 1.17 GB, free: 268 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.6939, allocations: 8.922 kB / 1.17 GB, free: 260 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.921e-05/0.6939, allocations: 46.69 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.781e-05/0.694, allocations: 16.81 kB / 1.17 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.6942, allocations: 176.3 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.625e-05/0.6942, allocations: 34.27 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.6942, allocations: 8.375 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.6944, allocations: 109.1 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.6945, allocations: 0 / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.6945, allocations: 8 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.6945, allocations: 0 / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.6946, allocations: 43.97 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.6952, allocations: 0.5126 MB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004581/0.6957, allocations: 139.7 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.725e-05/0.6958, allocations: 42.66 kB / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.6958, allocations: 11.94 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002547/0.6961, allocations: 113.9 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.6961, allocations: 0 / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0003125/0.6964, allocations: 141.5 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.6965, allocations: 118.9 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.6966, allocations: 121.8 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.6966, allocations: 33.7 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.181e-05/0.6967, allocations: 92.44 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.212e-05/0.6967, allocations: 31.73 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.6968, allocations: 37.7 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.697, allocations: 322.8 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-05/0.6971, allocations: 39.98 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.417e-05/0.6972, allocations: 35.98 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.6973, allocations: 75.38 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.6973, allocations: 0 / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002488/0.6976, allocations: 133.7 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.6976, allocations: 4 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.6976, allocations: 4 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.6976, allocations: 0 / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.6978, allocations: 19.98 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.6978, allocations: 4 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.775e-05/0.6979, allocations: 27.77 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.6979, allocations: 7.984 kB / 1.172 GB, free: 13.52 MB / 0.9044 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.0001021/0.698, allocations: 122.9 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.116e-05/0.698, allocations: 7.953 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002294/0.6983, allocations: 114.2 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.6983, allocations: 8 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.6983, allocations: 3.938 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.6983, allocations: 3.938 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.6985, allocations: 217.5 kB / 1.172 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.6985, allocations: 3.938 kB / 1.172 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.484e-05/0.6986, allocations: 23.98 kB / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.6986, allocations: 0 / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.6986, allocations: 0 / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.6986, allocations: 4 kB / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.6987, allocations: 0 / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.6989, allocations: 186.6 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.862e-05/0.699, allocations: 96.98 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.699, allocations: 15.94 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.277e-05/0.6991, allocations: 4 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.6992, allocations: 15.92 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.6992, allocations: 8 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.618e-05/0.6993, allocations: 101 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6993, allocations: 0 / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002793/0.6996, allocations: 59.8 kB / 1.173 GB, free: 12.44 MB / 0.9044 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.0006671/0.7002, allocations: 0.7634 MB / 1.174 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.7005, allocations: 98.58 kB / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.7005, allocations: 0 / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.849e-05/0.7006, allocations: 59.97 kB / 1.174 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/0.7008, allocations: 18.91 kB / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.7025, allocations: 1.543 MB / 1.175 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.7028, allocations: 0.7002 MB / 1.176 GB, free: 9.105 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.902e-05/0.7029, allocations: 22.17 kB / 1.176 GB, free: 9.086 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.454e-05/0.703, allocations: 35.42 kB / 1.176 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.703, allocations: 0 / 1.176 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.7255, allocations: 2.977 MB / 1.179 GB, free: 6.223 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/8.482, allocations: 0.5938 kB / 1.179 GB, free: 6.223 MB / 0.9044 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)