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.001178/0.001178, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001202/0.001202, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.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.487/2.487, allocations: 437 MB / 0.7101 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5839/0.5852, allocations: 151.6 MB / 1.017 GB, free: 2.641 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001939/0.5872, allocations: 0.7842 MB / 1.018 GB, free: 1.855 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001867/0.5891, allocations: 1.521 MB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.627e-05/0.5892, allocations: 0 / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.679e-05/0.5892, allocations: 7.938 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.5894, allocations: 23.91 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.5897, allocations: 139.6 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.5899, allocations: 111.8 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.59, allocations: 19.97 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.5901, allocations: 55.91 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.365e-05/0.5902, allocations: 51.81 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.5903, allocations: 12 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.5904, allocations: 83.83 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.33e-05/0.5905, allocations: 31.89 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.088e-05/0.5905, allocations: 47.8 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.5908, allocations: 189.8 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.5908, allocations: 0 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5908, allocations: 0 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.5908, allocations: 0 / 1.02 GB, free: 15.56 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.0006546/0.5915, allocations: 427 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.5915, allocations: 8.031 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.156e-05/0.5916, allocations: 38.75 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.306e-05/0.5916, allocations: 12.83 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.5918, allocations: 184.1 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.681e-05/0.5918, allocations: 38.27 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.5919, allocations: 8.375 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.592, allocations: 103.8 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.5921, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.5921, allocations: 11.94 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.5921, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.5922, allocations: 47.97 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005967/0.5928, allocations: 0.5165 MB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005071/0.5933, allocations: 143.7 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.597e-05/0.5934, allocations: 42.59 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.5934, allocations: 8 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002097/0.5936, allocations: 113.9 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.5936, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.000301/0.594, allocations: 141.5 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/0.594, allocations: 106.8 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.891e-05/0.5941, allocations: 129.8 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.5942, allocations: 33.83 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.125e-05/0.5942, allocations: 96.33 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.5943, allocations: 31.64 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.404e-05/0.5943, allocations: 33.7 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.5944, allocations: 326.8 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.502e-05/0.5945, allocations: 31.98 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.683e-05/0.5946, allocations: 38.09 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.5948, allocations: 72.84 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5948, allocations: 4 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002272/0.595, allocations: 135.2 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.595, allocations: 4 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.595, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.5951, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.5952, allocations: 19.92 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.5952, allocations: 7.938 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.268e-05/0.5953, allocations: 11.84 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.5953, allocations: 15.97 kB / 1.023 GB, free: 12.36 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 8.969e-05/0.5954, allocations: 118.4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.5954, allocations: 7.906 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.5957, allocations: 114 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.5957, allocations: 4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.5957, allocations: 0 / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.5957, allocations: 7.938 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.5959, allocations: 221.4 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5959, allocations: 4 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.274e-05/0.596, allocations: 24.17 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.596, allocations: 4 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.596, allocations: 8 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.5961, allocations: 4 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5961, allocations: 240 / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.5963, allocations: 186.5 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.411e-05/0.5964, allocations: 93 kB / 1.023 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.5964, allocations: 11.98 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.948e-05/0.5965, allocations: 8 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/0.5965, allocations: 11.92 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.5966, allocations: 4 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.052e-05/0.5966, allocations: 99.27 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5966, allocations: 4 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002482/0.5969, allocations: 59.92 kB / 1.024 GB, free: 11.28 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.0005842/0.5975, allocations: 0.7631 MB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002311/0.5977, allocations: 108.5 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5977, allocations: 0 / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.847e-05/0.5978, allocations: 51.92 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.598, allocations: 12.78 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.5997, allocations: 1.567 MB / 1.026 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.6, allocations: 0.6963 MB / 1.027 GB, free: 7.93 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.235e-05/0.6001, allocations: 16.55 kB / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.719e-05/0.6001, allocations: 35.42 kB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6001, allocations: 0 / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03693/0.6371, allocations: 2.828 MB / 1.03 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.6373, allocations: 218.6 kB / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/2.24, allocations: 2.672 kB / 1.03 GB, free: 4.969 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)