Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|skyBri.skyBri",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") translateModel(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|skyBri.skyBri",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, 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.001505/0.001505, allocations: 193.7 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.405/1.405, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.764/2.764, allocations: 472.6 MB / 0.7451 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 67.95 kB / 0.9121 GB, free: 33.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3636, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.006951/0.3706, allocations: 5.167 MB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1748/0.5454, allocations: 150.7 MB / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.5466, allocations: 19.94 kB / 1.22 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0006706/0.5473, allocations: 190.1 kB / 1.221 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002202/0.5495, allocations: 0.5778 MB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002179/0.5517, allocations: 0.8471 MB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001644/0.5534, allocations: 1.444 MB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009472/0.5543, allocations: 0.6692 MB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007119/0.555, allocations: 0.51 MB / 1.225 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000619/0.5557, allocations: 0.5543 MB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.5558, allocations: 132 kB / 1.225 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000957/0.5568, allocations: 475.6 kB / 1.226 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.5571, allocations: 315 kB / 1.226 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005657/0.5577, allocations: 0.618 MB / 1.227 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001954/0.5596, allocations: 1.702 MB / 1.228 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.5596, allocations: 0 / 1.228 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of FrontEnd: time 5.06e-06/0.5597, allocations: 0 / 1.228 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.402e-05/0.5597, allocations: 3.938 kB / 1.228 GB, free: 5.859 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.00275/0.5624, allocations: 1.508 MB / 1.23 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.5625, allocations: 8.031 kB / 1.23 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001661/0.5642, allocations: 311.1 kB / 1.23 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.5655, allocations: 0.7616 MB / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.398e-05/0.5656, allocations: 74 kB / 1.231 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.5657, allocations: 88 kB / 1.231 GB, free: 3.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.5676, allocations: 1.078 MB / 1.232 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.5677, allocations: 3.938 kB / 1.232 GB, free: 1.902 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.496e-05/0.5678, allocations: 40 kB / 1.232 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/0.5678, allocations: 24 kB / 1.232 GB, free: 1.84 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.5701, allocations: 1.268 MB / 1.233 GB, free: 0.5703 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004864/0.575, allocations: 2.974 MB / 1.236 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.5775, allocations: 1.032 MB / 1.237 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007845/0.5783, allocations: 374.6 kB / 1.238 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.363e-05/0.5784, allocations: 32.59 kB / 1.238 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.5797, allocations: 0.5606 MB / 1.238 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=84): time 3.065e-06/0.5797, allocations: 0 / 1.238 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=84): time 0.004493/0.5842, allocations: 1.38 MB / 1.239 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.5844, allocations: 192.9 kB / 1.24 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.5854, allocations: 0.6449 MB / 1.24 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.5856, allocations: 45.7 kB / 1.24 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.586, allocations: 420.2 kB / 1.241 GB, free: 8.668 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002714/0.5863, allocations: 276 kB / 1.241 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002852/0.5866, allocations: 166.5 kB / 1.241 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001971/0.5868, allocations: 390.8 kB / 1.242 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000816/0.5876, allocations: 325.8 kB / 1.242 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009008/0.5885, allocations: 419.1 kB / 1.242 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.5901, allocations: 0.714 MB / 1.243 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.5902, allocations: 0 / 1.243 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002564/0.5927, allocations: 0.9736 MB / 1.244 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.5928, allocations: 5.562 kB / 1.244 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.5928, allocations: 4 kB / 1.244 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005901/0.5934, allocations: 80.88 kB / 1.244 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008039/0.5942, allocations: 187.8 kB / 1.244 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.5963, allocations: 1.64 MB / 1.246 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009742/0.5973, allocations: 115.3 kB / 1.246 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.57e-05/0.5974, allocations: 39.97 kB / 1.246 GB, free: 3.18 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005135/0.5979, allocations: 277.2 kB / 1.246 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.5981, allocations: 86.97 kB / 1.246 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002916/0.6011, allocations: 1.198 MB / 1.247 GB, free: 1.598 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.6011, allocations: 12 kB / 1.247 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.6011, allocations: 3.938 kB / 1.247 GB, free: 1.582 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.6011, allocations: 7.922 kB / 1.247 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5898/1.191, allocations: 2.137 MB / 1.25 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/1.191, allocations: 0 / 1.25 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008191/1.192, allocations: 173.8 kB / 1.25 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004872/1.192, allocations: 74.7 kB / 1.25 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-05/1.192, allocations: 29.69 kB / 1.25 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/1.194, allocations: 1.653 MB / 1.251 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.194, allocations: 0.5625 kB / 1.251 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002751/1.197, allocations: 1.12 MB / 1.253 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004736/1.197, allocations: 281.1 kB / 1.253 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/1.198, allocations: 17.84 kB / 1.253 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007923/1.198, allocations: 85.09 kB / 1.253 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/1.199, allocations: 78.45 kB / 1.253 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.76e-05/1.199, allocations: 37.44 kB / 1.253 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007431/1.199, allocations: 466.6 kB / 1.253 GB, free: 181.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.91e-07/1.199, allocations: 0 / 1.253 GB, free: 181.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001136/1.201, allocations: 346.2 kB / 1.254 GB, free: 181.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/1.202, allocations: 0.6109 MB / 1.254 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003324/1.205, allocations: 1.173 MB / 1.255 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.205, allocations: 1.031 kB / 1.255 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001139/1.207, allocations: 0.5817 MB / 1.256 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/1.208, allocations: 302.3 kB / 1.256 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/1.211, allocations: 1.818 MB / 1.258 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/1.212, allocations: 1.04 MB / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009751/1.213, allocations: 273.7 kB / 1.259 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/1.213, allocations: 117.2 kB / 1.26 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of SimCode: time 3.9e-07/1.213, allocations: 0 / 1.26 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.02975/1.243, allocations: 15.9 MB / 1.275 GB, free: 176.9 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches