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 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.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.00159/0.00159, 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.00184/0.00184, allocations: 192.4 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001183, allocations: 62.14 kB / 0.912 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3211, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.008128/0.3293, allocations: 7.046 MB / 1.075 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1587/0.4881, allocations: 151.2 MB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.4891, allocations: 19.94 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007049/0.4899, allocations: 269.4 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002114/0.492, allocations: 0.7642 MB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002248/0.4943, allocations: 1.016 MB / 1.225 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001998/0.4963, allocations: 2.077 MB / 1.227 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00141/0.4977, allocations: 1.111 MB / 1.228 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.4991, allocations: 0.8176 MB / 1.229 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.5001, allocations: 0.8792 MB / 1.229 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002903/0.5004, allocations: 220 kB / 1.23 GB, free: 4.406 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001288/0.5017, allocations: 0.5465 MB / 1.23 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004484/0.5022, allocations: 490.5 kB / 1.231 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0009427/0.5032, allocations: 0.9798 MB / 1.232 GB, free: 2.395 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002853/0.506, allocations: 2.613 MB / 1.234 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.506, allocations: 0 / 1.234 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.935e-06/0.506, allocations: 0 / 1.234 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.085e-05/0.5061, allocations: 0 / 1.234 GB, free: 15.77 MB / 0.9981 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.00355/0.5096, allocations: 2.048 MB / 1.236 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.5097, allocations: 8.031 kB / 1.236 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.5107, allocations: 258.6 kB / 1.236 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.5121, allocations: 0.9733 MB / 1.237 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.5122, allocations: 148.8 kB / 1.238 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/0.5124, allocations: 148 kB / 1.238 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002592/0.515, allocations: 1.589 MB / 1.239 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.5151, allocations: 3.938 kB / 1.239 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.5152, allocations: 68 kB / 1.239 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.335e-05/0.5152, allocations: 40 kB / 1.239 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/0.5178, allocations: 1.588 MB / 1.241 GB, free: 8.738 MB / 0.9981 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.006632/0.5244, allocations: 4.736 MB / 1.245 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.5264, allocations: 1.096 MB / 1.247 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007238/0.5271, allocations: 431.6 kB / 1.247 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.553e-05/0.5272, allocations: 49.06 kB / 1.247 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.5284, allocations: 0.6996 MB / 1.248 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=111): time 3.026e-06/0.5285, allocations: 0 / 1.248 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of matching and sorting (n=111): time 0.5874/1.116, allocations: 1.651 MB / 1.249 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/1.116, allocations: 196 kB / 1.249 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/1.118, allocations: 0.84 MB / 1.25 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000303/1.118, allocations: 50.19 kB / 1.25 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006036/1.119, allocations: 0.6201 MB / 1.251 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003785/1.119, allocations: 357.7 kB / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004423/1.119, allocations: 222.6 kB / 1.252 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.547e-05/1.12, allocations: 349.1 kB / 1.252 GB, free: 182 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008413/1.12, allocations: 400.5 kB / 1.252 GB, free: 182 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009415/1.121, allocations: 0.5101 MB / 1.253 GB, free: 182 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/1.123, allocations: 0.8885 MB / 1.254 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/1.123, allocations: 1.438 kB / 1.254 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002826/1.126, allocations: 1.21 MB / 1.255 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/1.126, allocations: 6.188 kB / 1.255 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/1.126, allocations: 1.938 kB / 1.255 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006141/1.127, allocations: 89.03 kB / 1.255 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009517/1.128, allocations: 227.5 kB / 1.255 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/1.13, allocations: 1.652 MB / 1.257 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/1.131, allocations: 130.2 kB / 1.257 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/1.131, allocations: 48.27 kB / 1.257 GB, free: 180.4 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.0006732/1.131, allocations: 357.2 kB / 1.257 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002393/1.132, allocations: 116.3 kB / 1.257 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002928/1.135, allocations: 1.536 MB / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/1.135, allocations: 13.12 kB / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/1.135, allocations: 0 / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/1.135, allocations: 9.422 kB / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/1.136, allocations: 1.372 MB / 1.26 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/1.136, allocations: 0 / 1.26 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007225/1.137, allocations: 197.9 kB / 1.26 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/1.137, allocations: 78.03 kB / 1.26 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.148e-05/1.137, allocations: 36.98 kB / 1.26 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/1.139, allocations: 1.68 MB / 1.262 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.139, allocations: 2.719 kB / 1.262 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/1.141, allocations: 1.279 MB / 1.263 GB, free: 177 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005894/1.142, allocations: 361.4 kB / 1.264 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/1.142, allocations: 27.84 kB / 1.264 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008507/1.143, allocations: 86.16 kB / 1.264 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000243/1.143, allocations: 95.42 kB / 1.264 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.143, allocations: 49.5 kB / 1.264 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008319/1.144, allocations: 0.6174 MB / 1.265 GB, free: 176.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.144, allocations: 0 / 1.265 GB, free: 176.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001312/1.146, allocations: 479 kB / 1.265 GB, free: 176.3 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.001431/1.147, allocations: 0.6236 MB / 1.266 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003952/1.151, allocations: 1.435 MB / 1.267 GB, free: 175.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.151, allocations: 1.094 kB / 1.267 GB, free: 175.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/1.153, allocations: 0.6791 MB / 1.268 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/1.155, allocations: 358.4 kB / 1.268 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005037/1.16, allocations: 2.512 MB / 1.27 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/1.161, allocations: 1.221 MB / 1.272 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001426/1.162, allocations: 318.6 kB / 1.272 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004174/1.163, allocations: 145.3 kB / 1.272 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of SimCode: time 1.243e-06/1.163, allocations: 0 / 1.272 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of Templates: time 0.04328/1.206, allocations: 20.63 MB / 1.292 GB, free: 166.3 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches