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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayCon.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001394, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001465/0.001465, allocations: 194.2 kB / 16.25 MB, free: 6.629 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.606/1.606, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.186/3.186, allocations: 482.3 MB / 0.7542 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 68.3 kB / 0.9232 GB, free: 29.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.382, allocations: 162.2 MB / 1.082 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002153/0.3842, allocations: 0.7833 MB / 1.082 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002104/0.3864, allocations: 1.528 MB / 1.084 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.474e-05/0.3864, allocations: 0 / 1.084 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.137e-05/0.3865, allocations: 3.938 kB / 1.084 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.3867, allocations: 19.84 kB / 1.084 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.3871, allocations: 135.7 kB / 1.084 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001673/0.3873, allocations: 115.8 kB / 1.084 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.3874, allocations: 16 kB / 1.084 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.3875, allocations: 55.77 kB / 1.084 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.3876, allocations: 51.83 kB / 1.084 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.3877, allocations: 12 kB / 1.084 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.3878, allocations: 83.94 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.727e-05/0.3879, allocations: 23.92 kB / 1.084 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.037e-05/0.388, allocations: 51.78 kB / 1.084 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003048/0.3883, allocations: 195.8 kB / 1.085 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3883, allocations: 0 / 1.085 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3883, allocations: 0 / 1.085 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.66e-05/0.3883, allocations: 0 / 1.085 GB, free: 10.68 MB / 0.8419 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.0007784/0.3891, allocations: 423.1 kB / 1.085 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.3892, allocations: 12.03 kB / 1.085 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.57e-05/0.3892, allocations: 16.78 kB / 1.085 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.3894, allocations: 168.3 kB / 1.085 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.795e-05/0.3895, allocations: 30.27 kB / 1.085 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.3895, allocations: 16.36 kB / 1.085 GB, free: 9.938 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.3897, allocations: 100.4 kB / 1.085 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3898, allocations: 3.938 kB / 1.085 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.3898, allocations: 8 kB / 1.085 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.3898, allocations: 0 / 1.085 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.3899, allocations: 43.97 kB / 1.085 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.3906, allocations: 0.5243 MB / 1.086 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.3911, allocations: 147.7 kB / 1.086 GB, free: 9.016 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.384e-05/0.3912, allocations: 42.58 kB / 1.086 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.3912, allocations: 4.078 kB / 1.086 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.3915, allocations: 113.9 kB / 1.086 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.3915, allocations: 0 / 1.086 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0003403/0.3919, allocations: 137.5 kB / 1.086 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.392, allocations: 110.8 kB / 1.086 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.3921, allocations: 133.7 kB / 1.087 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.3921, allocations: 33.7 kB / 1.087 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.741e-05/0.3922, allocations: 84.42 kB / 1.087 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.3922, allocations: 35.73 kB / 1.087 GB, free: 8.25 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.3923, allocations: 41.64 kB / 1.087 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3925, allocations: 326.8 kB / 1.087 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-05/0.3926, allocations: 31.98 kB / 1.087 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.785e-05/0.3927, allocations: 35.98 kB / 1.087 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.3928, allocations: 72.84 kB / 1.087 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3928, allocations: 0 / 1.087 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002529/0.3931, allocations: 136.6 kB / 1.087 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3931, allocations: 8 kB / 1.087 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3931, allocations: 7.938 kB / 1.087 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3932, allocations: 0 / 1.087 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.3933, allocations: 23.92 kB / 1.087 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3933, allocations: 0 / 1.087 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.233e-05/0.3934, allocations: 19.83 kB / 1.087 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.3934, allocations: 7.938 kB / 1.087 GB, free: 7.531 MB / 0.8419 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.0001113/0.3935, allocations: 117.8 kB / 1.087 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.97e-05/0.3936, allocations: 4 kB / 1.087 GB, free: 7.402 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002519/0.3938, allocations: 118.1 kB / 1.088 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3938, allocations: 4.062 kB / 1.088 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3939, allocations: 4 kB / 1.088 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3939, allocations: 4 kB / 1.088 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.3941, allocations: 217.5 kB / 1.088 GB, free: 7.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3941, allocations: 3.938 kB / 1.088 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.513e-05/0.3942, allocations: 23.98 kB / 1.088 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3942, allocations: 240 / 1.088 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.3942, allocations: 4 kB / 1.088 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3943, allocations: 7.984 kB / 1.088 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3943, allocations: 0 / 1.088 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002722/0.3945, allocations: 186.4 kB / 1.088 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3946, allocations: 108.9 kB / 1.088 GB, free: 6.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.3947, allocations: 4 kB / 1.088 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.779e-05/0.3948, allocations: 8 kB / 1.088 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.3948, allocations: 11.92 kB / 1.088 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3949, allocations: 8 kB / 1.088 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.63e-05/0.3949, allocations: 95.27 kB / 1.088 GB, free: 6.512 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.71e-07/0.3949, allocations: 0 / 1.088 GB, free: 6.512 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002993/0.3952, allocations: 59.92 kB / 1.088 GB, free: 6.453 MB / 0.8419 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.0002621/0.3955, allocations: 158.3 kB / 1.088 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002617/0.3958, allocations: 103.9 kB / 1.089 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3958, allocations: 0 / 1.089 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.3959, allocations: 59.91 kB / 1.089 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.3961, allocations: 15.92 kB / 1.089 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005521/0.3967, allocations: 261.2 kB / 1.089 GB, free: 5.828 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.397, allocations: 0.704 MB / 1.09 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.574e-05/0.3971, allocations: 20.41 kB / 1.09 GB, free: 5.078 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.562e-05/0.3972, allocations: 23.42 kB / 1.09 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3972, allocations: 3.938 kB / 1.09 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of Templates: time 0.00491/0.4021, allocations: 1.689 MB / 1.091 GB, free: 3.375 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches