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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001037/0.001036, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008156/0.008156, allocations: 169.7 kB / 16.27 MB, free: 6.656 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.309/1.309, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.483/2.483, allocations: 437.8 MB / 0.7121 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004165/0.0004167, allocations: 8 kB / 0.8729 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5822/0.5826, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.0007702/0.5834, allocations: 460.1 kB / 1.024 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.5852, allocations: 1.529 MB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.5852, allocations: 0 / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.5852, allocations: 0 / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.5854, allocations: 23.78 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.5857, allocations: 127.7 kB / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.5858, allocations: 111.7 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.273e-05/0.5859, allocations: 19.98 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.783e-05/0.586, allocations: 47.83 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.332e-05/0.586, allocations: 47.81 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.5861, allocations: 4 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.5862, allocations: 67.95 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.5862, allocations: 23.86 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.493e-05/0.5863, allocations: 65.48 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.5865, allocations: 185.8 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5866, allocations: 4 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.845e-06/0.5866, allocations: 4 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.5866, allocations: 0 / 1.026 GB, free: 13.14 MB / 0.7794 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.0006155/0.5872, allocations: 403.2 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.5872, allocations: 12.03 kB / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/0.5873, allocations: 42.75 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.5873, allocations: 8.844 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.5875, allocations: 176.2 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.086e-05/0.5875, allocations: 34.27 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.5875, allocations: 8.125 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.5877, allocations: 111.9 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.5877, allocations: 0 / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.5878, allocations: 4 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.5878, allocations: 4 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.647e-05/0.5879, allocations: 47.91 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005975/0.5885, allocations: 0.5204 MB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004447/0.5889, allocations: 139.7 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.702e-05/0.589, allocations: 42.59 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.589, allocations: 7.984 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.5892, allocations: 109.9 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.5893, allocations: 4 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003069/0.5896, allocations: 149.4 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.5896, allocations: 106.8 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.5897, allocations: 137.9 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.5898, allocations: 29.7 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.5898, allocations: 92.47 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.963e-05/0.5899, allocations: 27.56 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.369e-05/0.5899, allocations: 25.7 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.901e-05/0.59, allocations: 327 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.885e-05/0.5901, allocations: 35.98 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.392e-05/0.5902, allocations: 31.98 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.5904, allocations: 76.84 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5904, allocations: 3.938 kB / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002254/0.5906, allocations: 127.8 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.5906, allocations: 8 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.5906, allocations: 0 / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.5907, allocations: 4 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.5908, allocations: 23.98 kB / 1.029 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.5908, allocations: 0 / 1.029 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.872e-05/0.5909, allocations: 19.83 kB / 1.029 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.5909, allocations: 4 kB / 1.029 GB, free: 9.984 MB / 0.7794 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 9.163e-05/0.591, allocations: 126.8 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.591, allocations: 4 kB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.5913, allocations: 121.9 kB / 1.029 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.5913, allocations: 4 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5913, allocations: 0 / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.5913, allocations: 3.938 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.5915, allocations: 217.5 kB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.5915, allocations: 4.312 kB / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.726e-05/0.5916, allocations: 15.98 kB / 1.029 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.5916, allocations: 8 kB / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.5916, allocations: 4 kB / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.239e-06/0.5916, allocations: 4 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.5916, allocations: 3.938 kB / 1.029 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002245/0.5919, allocations: 178.5 kB / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.083e-05/0.5919, allocations: 97.23 kB / 1.029 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.592, allocations: 11.98 kB / 1.029 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-05/0.5921, allocations: 11.94 kB / 1.029 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.5921, allocations: 19.91 kB / 1.029 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.5921, allocations: 4 kB / 1.029 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.101e-05/0.5922, allocations: 99.27 kB / 1.029 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5922, allocations: 0 / 1.029 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002544/0.5924, allocations: 59.92 kB / 1.029 GB, free: 8.898 MB / 0.7794 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.0005664/0.593, allocations: 0.7641 MB / 1.03 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002012/0.5932, allocations: 91.97 kB / 1.03 GB, free: 8.012 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5932, allocations: 0 / 1.03 GB, free: 8.012 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.736e-05/0.5933, allocations: 55.91 kB / 1.03 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.5935, allocations: 21.5 kB / 1.03 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.595, allocations: 1.575 MB / 1.032 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.5953, allocations: 0.7004 MB / 1.033 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.998e-05/0.5953, allocations: 16.55 kB / 1.033 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.664e-05/0.5954, allocations: 31.53 kB / 1.033 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.5954, allocations: 0 / 1.033 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.6074, allocations: 2.686 MB / 1.035 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/0.6076, allocations: 212.6 kB / 1.035 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.612/2.219, allocations: 4 kB / 1.036 GB, free: 2.734 MB / 0.7794 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=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)