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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00165/0.00165, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001935/0.001935, allocations: 192.5 kB / 16.14 MB, free: 6.711 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.417/1.417, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.769/2.769, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 64.3 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3117, allocations: 157.4 MB / 1.052 GB, free: 8.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002023/0.3138, allocations: 0.774 MB / 1.053 GB, free: 8.062 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001867/0.3157, allocations: 1.548 MB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.541e-05/0.3158, allocations: 0 / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.948e-05/0.3158, allocations: 3.938 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.316, allocations: 19.84 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.3163, allocations: 131.7 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.3165, allocations: 111.7 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3166, allocations: 19.97 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.3167, allocations: 39.86 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.3168, allocations: 47.81 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.3169, allocations: 4 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.3171, allocations: 75.95 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.665e-05/0.3171, allocations: 27.89 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.89e-05/0.3172, allocations: 35.8 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.3175, allocations: 187.8 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3175, allocations: 0 / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.22e-07/0.3175, allocations: 0 / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.3175, allocations: 3.938 kB / 1.055 GB, free: 5.801 MB / 0.8106 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.0007689/0.3183, allocations: 428.6 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.3183, allocations: 12.03 kB / 1.055 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.3184, allocations: 8.844 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.3185, allocations: 184.1 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.3186, allocations: 34.27 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.3186, allocations: 8.312 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.3188, allocations: 107.5 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3188, allocations: 7.938 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.3188, allocations: 0 / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3188, allocations: 4 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.319, allocations: 43.97 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006655/0.3196, allocations: 0.5204 MB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004642/0.3201, allocations: 135.7 kB / 1.056 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.415e-05/0.3202, allocations: 46.66 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.3202, allocations: 4 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.3205, allocations: 109.9 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.3205, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003224/0.3208, allocations: 149.5 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.3209, allocations: 106.8 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.321, allocations: 121.8 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.321, allocations: 33.64 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.02e-05/0.3211, allocations: 100.4 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.403e-05/0.3211, allocations: 27.56 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.405e-05/0.3212, allocations: 41.69 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3213, allocations: 322.9 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.403e-05/0.3214, allocations: 35.98 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.445e-05/0.3215, allocations: 40.22 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.3217, allocations: 79.03 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3217, allocations: 4 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002564/0.322, allocations: 125.5 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.322, allocations: 4 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.322, allocations: 0 / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.322, allocations: 11.98 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3221, allocations: 23.92 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3222, allocations: 4 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.872e-05/0.3222, allocations: 7.938 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.3223, allocations: 11.92 kB / 1.058 GB, free: 2.652 MB / 0.8106 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.316e-05/0.3224, allocations: 121.8 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.3224, allocations: 7.906 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002381/0.3226, allocations: 114 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.3227, allocations: 7.984 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3227, allocations: 3.938 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3227, allocations: 0 / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/0.3229, allocations: 221.4 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3229, allocations: 4 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.323, allocations: 19.92 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.323, allocations: 4.234 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.323, allocations: 4 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.3231, allocations: 4 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3231, allocations: 0 / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.3233, allocations: 184.8 kB / 1.058 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.713e-05/0.3234, allocations: 100.9 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.3235, allocations: 4 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.38e-05/0.3235, allocations: 11.98 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.564e-05/0.3236, allocations: 19.92 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.3237, allocations: 4.062 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.974e-05/0.3237, allocations: 99.27 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3237, allocations: 0 / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003006/0.324, allocations: 55.94 kB / 1.059 GB, free: 1.574 MB / 0.8106 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.0002649/0.3243, allocations: 159.1 kB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002426/0.3246, allocations: 99.91 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3246, allocations: 0 / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.828e-05/0.3247, allocations: 55.92 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.3249, allocations: 11.98 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005013/0.3254, allocations: 266.8 kB / 1.059 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.3257, allocations: 0.7004 MB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.927e-05/0.3258, allocations: 16.55 kB / 1.06 GB, free: 220 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.3259, allocations: 19.44 kB / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/0.3259, allocations: 0 / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of Templates: time 0.004481/0.3304, allocations: 1.645 MB / 1.062 GB, free: 14.57 MB / 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