Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayCon.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled") translateModel(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayCon.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.421/1.421, allocations: 249.3 MB / 261.8 MB, free: 5.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 173 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.2 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009647/0.0009644, allocations: 90.52 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.756e-05/3.759e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2338, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7463/0.9801, allocations: 132.9 MB / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/0.9805, allocations: 78.12 kB / 1.022 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01118/0.9917, allocations: 3.399 MB / 1.025 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.406e-06/0.9918, allocations: 0 / 1.025 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.521e-05/0.9918, allocations: 4 kB / 1.025 GB, free: 14.96 MB / 0.6511 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.0006709/0.9925, allocations: 409.7 kB / 1.025 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.9926, allocations: 12.03 kB / 1.025 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.55e-05/0.9926, allocations: 7.906 kB / 1.025 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.9928, allocations: 171 kB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.876e-05/0.9929, allocations: 33.45 kB / 1.026 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.9929, allocations: 8 kB / 1.026 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002086/0.9931, allocations: 104.7 kB / 1.026 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.9932, allocations: 8.547 kB / 1.026 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.9932, allocations: 6.859 kB / 1.026 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.9932, allocations: 0 / 1.026 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.99e-05/0.9933, allocations: 43.55 kB / 1.026 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/0.994, allocations: 0.5203 MB / 1.026 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000489/0.9945, allocations: 134.7 kB / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.632e-05/0.9946, allocations: 47.69 kB / 1.026 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.9946, allocations: 3.938 kB / 1.026 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002432/0.9949, allocations: 115.7 kB / 1.026 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.9949, allocations: 0 / 1.026 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.000296/0.9952, allocations: 117.6 kB / 1.027 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.9953, allocations: 110.8 kB / 1.027 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.9955, allocations: 117.6 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.9955, allocations: 29.73 kB / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/0.9956, allocations: 95.58 kB / 1.027 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.9956, allocations: 35.17 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.966e-06/0.9956, allocations: 3.438 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.9958, allocations: 322.6 kB / 1.027 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.019e-05/0.9958, allocations: 30.81 kB / 1.027 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.606e-05/0.9959, allocations: 29 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.323e-05/0.996, allocations: 40.69 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.996, allocations: 0 / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002007/0.9962, allocations: 129.1 kB / 1.027 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.9962, allocations: 4 kB / 1.028 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.9963, allocations: 0 / 1.028 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.9963, allocations: 0 / 1.028 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.9964, allocations: 23.92 kB / 1.028 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.9964, allocations: 3.953 kB / 1.028 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.585e-05/0.9965, allocations: 15.38 kB / 1.028 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.9966, allocations: 7.984 kB / 1.028 GB, free: 12.23 MB / 0.6511 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 ($whenCondition2,$whenCondition1,$PRE.dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunRise,$PRE.dayCon.sunRiseSet.nextSunSet,dayCon.sunRiseSet.nextSunSet,dayCon.booToRea.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.056e-05/0.9967, allocations: 114.9 kB / 1.028 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.9967, allocations: 7.906 kB / 1.028 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.9969, allocations: 118.7 kB / 1.028 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.997, allocations: 0 / 1.028 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.997, allocations: 4 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.997, allocations: 3.953 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/0.9972, allocations: 217.8 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.9972, allocations: 4 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.266e-05/0.9973, allocations: 23.92 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.9973, allocations: 3.938 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.9973, allocations: 4 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.9973, allocations: 0 / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.9974, allocations: 3.938 kB / 1.028 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002541/0.9976, allocations: 202.7 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.279e-05/0.9977, allocations: 104.1 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.9977, allocations: 3.062 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.691e-05/0.9978, allocations: 23.5 kB / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.9979, allocations: 7.984 kB / 1.028 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.9979, allocations: 7.875 kB / 1.028 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.147e-05/0.998, allocations: 107.1 kB / 1.028 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.21e-07/0.998, allocations: 0 / 1.028 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003174/0.9983, allocations: 55.44 kB / 1.029 GB, free: 11.23 MB / 0.6511 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.booToRea.u) * Number of discrete states: 2 (dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunSet) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003164/0.9986, allocations: 161.5 kB / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.9989, allocations: 89.48 kB / 1.029 GB, free: 11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.9989, allocations: 0 / 1.029 GB, free: 11 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.999, allocations: 53.98 kB / 1.029 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.9992, allocations: 11.88 kB / 1.029 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004769/0.9997, allocations: 153.6 kB / 1.029 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/1, allocations: 0.7043 MB / 1.03 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.779e-05/1, allocations: 20.67 kB / 1.03 GB, free: 10.05 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/1, allocations: 19 kB / 1.03 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of SimCode: time 2.21e-07/1, allocations: 3.938 kB / 1.03 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of Templates: time 0.005162/1.006, allocations: 1.511 MB / 1.031 GB, free: 8.539 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches