Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006275/0.006275, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001266/0.001266, allocations: 191.7 kB / 16.79 MB, free: 5.809 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.489/1.489, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.862/2.862, allocations: 461.9 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.66 kB / 0.899 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.315, allocations: 157.4 MB / 1.053 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.009424/0.3245, allocations: 7.008 MB / 1.06 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1643/0.4889, allocations: 148.8 MB / 1.205 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.4906, allocations: 19.88 kB / 1.205 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.4918, allocations: 186.5 kB / 1.205 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003045/0.4949, allocations: 0.6792 MB / 1.206 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002821/0.4977, allocations: 0.8908 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003086/0.5008, allocations: 1.945 MB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001879/0.5027, allocations: 1.075 MB / 1.21 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.504, allocations: 0.7082 MB / 1.21 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001385/0.5054, allocations: 0.8206 MB / 1.211 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0006082/0.5061, allocations: 116 kB / 1.211 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.5075, allocations: 455.6 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000592/0.5081, allocations: 390.5 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001442/0.5095, allocations: 0.8705 MB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002558/0.5121, allocations: 2.007 MB / 1.215 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.5121, allocations: 4 kB / 1.215 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5121, allocations: 0 / 1.215 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.52e-05/0.5122, allocations: 0 / 1.215 GB, free: 1.695 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.00573/0.518, allocations: 2.033 MB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.518, allocations: 11.97 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.5194, allocations: 266.5 kB / 1.217 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001878/0.5213, allocations: 0.9695 MB / 1.218 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/0.5215, allocations: 140.8 kB / 1.218 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002997/0.5218, allocations: 156 kB / 1.218 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003483/0.5253, allocations: 1.596 MB / 1.22 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.039e-05/0.5254, allocations: 3.984 kB / 1.22 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001827/0.5256, allocations: 68 kB / 1.22 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.5256, allocations: 40 kB / 1.22 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002938/0.5286, allocations: 1.585 MB / 1.222 GB, free: 10.67 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.008798/0.5374, allocations: 4.728 MB / 1.226 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.5395, allocations: 1.096 MB / 1.227 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007833/0.5403, allocations: 439.7 kB / 1.228 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001028/0.5404, allocations: 41.2 kB / 1.228 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001357/0.5418, allocations: 0.6995 MB / 1.228 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=111): time 3.347e-06/0.5418, allocations: 0 / 1.228 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of matching and sorting (n=111): time 0.004256/0.546, allocations: 1.657 MB / 1.23 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.5462, allocations: 200.9 kB / 1.23 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.5476, allocations: 0.8375 MB / 1.231 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.5478, allocations: 57.64 kB / 1.231 GB, free: 0.6133 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006235/0.5484, allocations: 0.6129 MB / 1.232 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003577/0.5488, allocations: 354.9 kB / 1.232 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003941/0.5492, allocations: 226.7 kB / 1.232 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.5493, allocations: 345.9 kB / 1.233 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007997/0.5501, allocations: 406.4 kB / 1.233 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009145/0.551, allocations: 0.5111 MB / 1.233 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.5527, allocations: 0.8876 MB / 1.234 GB, free: 13.24 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.5527, allocations: 4 kB / 1.234 GB, free: 13.24 MB / 0.9981 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002811/0.5555, allocations: 1.207 MB / 1.235 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.5556, allocations: 4 kB / 1.235 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.5556, allocations: 4 kB / 1.235 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006239/0.5562, allocations: 84.83 kB / 1.236 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009916/0.5572, allocations: 227.7 kB / 1.236 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/0.5594, allocations: 1.548 MB / 1.237 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.5608, allocations: 146.9 kB / 1.237 GB, free: 9.875 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/0.5609, allocations: 51.95 kB / 1.237 GB, free: 9.824 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 26 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,HDirWal.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirRoo.incAng.decAng.tNext,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,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * 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.0008456/0.5618, allocations: 352.2 kB / 1.238 GB, free: 9.473 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.5622, allocations: 114.6 kB / 1.238 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003655/0.5659, allocations: 1.532 MB / 1.239 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.5659, allocations: 12 kB / 1.239 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5659, allocations: 0 / 1.239 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.5659, allocations: 3.984 kB / 1.239 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.568, allocations: 1.368 MB / 1.241 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.568, allocations: 0 / 1.241 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008761/0.5689, allocations: 211.6 kB / 1.241 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005476/0.5695, allocations: 80.77 kB / 1.241 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.5696, allocations: 39.97 kB / 1.241 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.5715, allocations: 1.555 MB / 1.243 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.5715, allocations: 0 / 1.243 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002943/0.5744, allocations: 1.281 MB / 1.244 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000716/0.5752, allocations: 363.2 kB / 1.244 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003106/0.5755, allocations: 39.84 kB / 1.244 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.5766, allocations: 89.06 kB / 1.244 GB, free: 2.547 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/0.5768, allocations: 109.1 kB / 1.244 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.577, allocations: 51.97 kB / 1.244 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001099/0.5781, allocations: 0.6174 MB / 1.245 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5781, allocations: 0 / 1.245 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001543/0.5796, allocations: 478.5 kB / 1.246 GB, free: 1.293 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: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001729/0.5814, allocations: 0.6193 MB / 1.246 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.5287/1.11, allocations: 1.146 MB / 1.247 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/1.11, allocations: 1.062 kB / 1.247 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00144/1.112, allocations: 0.6748 MB / 1.248 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/1.113, allocations: 309.5 kB / 1.248 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00474/1.118, allocations: 3.237 MB / 1.251 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/1.119, allocations: 1.222 MB / 1.253 GB, free: 189 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005172/1.119, allocations: 155.5 kB / 1.253 GB, free: 189 MB / 0.9981 GB Notification: Performance of SimCode: time 1.072e-06/1.119, allocations: 3.5 kB / 1.253 GB, free: 189 MB / 0.9981 GB Notification: Performance of Templates: time 0.04304/1.162, allocations: 27.29 MB / 1.279 GB, free: 180.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches