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.001839/0.001839, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 194 kB / 16.53 MB, free: 6.391 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.475/1.475, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 472.6 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 60.77 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3866/0.3878, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002202/0.3901, allocations: 0.7169 MB / 1.069 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00207/0.3922, allocations: 1.534 MB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.471e-05/0.3923, allocations: 4 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.255e-05/0.3923, allocations: 7.875 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.3925, allocations: 19.84 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.393, allocations: 155.5 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.3931, allocations: 115.7 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.3933, allocations: 19.98 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.3934, allocations: 51.84 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.3935, allocations: 51.81 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.3935, allocations: 12 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.3937, allocations: 83.89 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.818e-05/0.3938, allocations: 27.91 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.134e-05/0.3938, allocations: 47.78 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.3941, allocations: 191.8 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3941, allocations: 0 / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.074e-06/0.3942, allocations: 0 / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.3942, allocations: 4 kB / 1.071 GB, free: 7.359 MB / 0.8262 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.0007364/0.3949, allocations: 427.1 kB / 1.072 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.395, allocations: 8.031 kB / 1.072 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.189e-05/0.395, allocations: 8.844 kB / 1.072 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.3952, allocations: 176.3 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.269e-05/0.3953, allocations: 42.25 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.3953, allocations: 4.375 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.3955, allocations: 104.3 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.3955, allocations: 0 / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.3955, allocations: 4 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.3956, allocations: 4 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.3957, allocations: 47.91 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006921/0.3964, allocations: 0.5204 MB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005038/0.3969, allocations: 135.7 kB / 1.073 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.211e-05/0.397, allocations: 50.59 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.397, allocations: 4.062 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/0.3973, allocations: 117.9 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.3973, allocations: 0 / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0003515/0.3976, allocations: 141.4 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.289e-05/0.3977, allocations: 110.8 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.3978, allocations: 122 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.3979, allocations: 33.7 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.514e-05/0.3979, allocations: 96.31 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.286e-05/0.398, allocations: 27.56 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.175e-05/0.398, allocations: 41.64 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3982, allocations: 318.8 kB / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.515e-05/0.3983, allocations: 39.98 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.339e-05/0.3984, allocations: 37.53 kB / 1.074 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.3985, allocations: 78.81 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3985, allocations: 0 / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002385/0.3988, allocations: 133.4 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.3988, allocations: 4 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.3988, allocations: 0 / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3988, allocations: 0 / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.399, allocations: 27.92 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.399, allocations: 0 / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.079e-05/0.3991, allocations: 15.92 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.3991, allocations: 3.938 kB / 1.074 GB, free: 4.227 MB / 0.8262 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.0001042/0.3992, allocations: 130.3 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.3992, allocations: 7.906 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002685/0.3995, allocations: 117.9 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3995, allocations: 4 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3995, allocations: 0 / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3996, allocations: 4 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.3998, allocations: 217.5 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3998, allocations: 3.984 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.083e-05/0.3999, allocations: 16.31 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3999, allocations: 0 / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.3999, allocations: 8 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3999, allocations: 3.984 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3999, allocations: 7.938 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.4002, allocations: 176.6 kB / 1.075 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.904e-05/0.4003, allocations: 109.1 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.4003, allocations: 4 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.686e-05/0.4004, allocations: 4 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.084e-05/0.4004, allocations: 23.91 kB / 1.075 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.4005, allocations: 7.984 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.315e-05/0.4005, allocations: 99.27 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4005, allocations: 4 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002806/0.4008, allocations: 55.94 kB / 1.075 GB, free: 3.137 MB / 0.8262 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.0002537/0.4011, allocations: 159.1 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002522/0.4013, allocations: 99.89 kB / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4013, allocations: 0 / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.4015, allocations: 51.92 kB / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.4017, allocations: 16.86 kB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004698/0.4022, allocations: 245 kB / 1.075 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.4025, allocations: 0.7079 MB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.006e-05/0.4025, allocations: 8.562 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.4026, allocations: 19.42 kB / 1.076 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.4026, allocations: 0 / 1.076 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of Templates: time 0.004458/0.4071, allocations: 1.729 MB / 1.078 GB, free: 60 kB / 0.8262 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