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.001653/0.001653, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002069/0.002069, allocations: 191 kB / 16.25 MB, free: 6.637 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.398/1.398, allocations: 222.9 MB / 239.9 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.942/2.942, allocations: 472.7 MB / 0.7449 GB, free: 4.844 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 63.3 kB / 0.9116 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.4321, allocations: 159.9 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.01013/0.4424, allocations: 6.994 MB / 1.075 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1968/0.6392, allocations: 148.9 MB / 1.22 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002057/0.6413, allocations: 27.81 kB / 1.22 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.6427, allocations: 190.5 kB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003877/0.6467, allocations: 0.6756 MB / 1.221 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003428/0.6501, allocations: 0.9164 MB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003871/0.654, allocations: 2.085 MB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0024/0.6565, allocations: 1.114 MB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001681/0.6582, allocations: 0.8215 MB / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.6598, allocations: 0.8753 MB / 1.227 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004308/0.6602, allocations: 220 kB / 1.227 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.6619, allocations: 0.5543 MB / 1.227 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0005892/0.6625, allocations: 494.5 kB / 1.228 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001658/0.6642, allocations: 0.9721 MB / 1.229 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003984/0.6682, allocations: 2.613 MB / 1.231 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.6682, allocations: 4 kB / 1.231 GB, free: 2.566 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.024e-06/0.6683, allocations: 0 / 1.231 GB, free: 2.566 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.937e-05/0.6683, allocations: 0 / 1.231 GB, free: 2.566 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: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.005204/0.6735, allocations: 2.048 MB / 1.233 GB, free: 464 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 9.261e-05/0.6737, allocations: 12.03 kB / 1.233 GB, free: 452 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001253/0.6749, allocations: 254.6 kB / 1.234 GB, free: 196 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.6768, allocations: 0.9695 MB / 1.234 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.677, allocations: 148.8 kB / 1.235 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.6772, allocations: 152 kB / 1.235 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003046/0.6802, allocations: 1.593 MB / 1.236 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.6803, allocations: 0 / 1.236 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.6804, allocations: 64 kB / 1.236 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/0.6805, allocations: 36 kB / 1.236 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002763/0.6833, allocations: 1.596 MB / 1.238 GB, free: 11.53 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.008612/0.6919, allocations: 4.724 MB / 1.243 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002161/0.6941, allocations: 1.098 MB / 1.244 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007393/0.6949, allocations: 431.7 kB / 1.244 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.891e-05/0.695, allocations: 37.02 kB / 1.244 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001311/0.6963, allocations: 0.7035 MB / 1.245 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=111): time 3.557e-06/0.6963, allocations: 0 / 1.245 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of matching and sorting (n=111): time 0.004433/0.7007, allocations: 1.661 MB / 1.246 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.7009, allocations: 192.9 kB / 1.247 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.7022, allocations: 0.8376 MB / 1.247 GB, free: 1.566 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.7024, allocations: 49.7 kB / 1.247 GB, free: 1.512 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005437/0.7029, allocations: 0.6167 MB / 1.248 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.7033, allocations: 358.8 kB / 1.248 GB, free: 0.5312 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003573/0.7037, allocations: 234.7 kB / 1.249 GB, free: 304 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.5815/1.285, allocations: 341.9 kB / 1.249 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/1.286, allocations: 398.8 kB / 1.249 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/1.288, allocations: 0.5126 MB / 1.25 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/1.289, allocations: 0.8893 MB / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/1.289, allocations: 0 / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003138/1.293, allocations: 1.211 MB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/1.293, allocations: 7.469 kB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/1.293, allocations: 1.375 kB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006512/1.293, allocations: 87.03 kB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/1.294, allocations: 234.1 kB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/1.297, allocations: 1.658 MB / 1.254 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/1.298, allocations: 140.3 kB / 1.254 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/1.298, allocations: 57.41 kB / 1.254 GB, free: 180.9 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.0007837/1.299, allocations: 352.4 kB / 1.254 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/1.299, allocations: 113.3 kB / 1.254 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003618/1.303, allocations: 1.53 MB / 1.256 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/1.303, allocations: 16.06 kB / 1.256 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/1.303, allocations: 0 / 1.256 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/1.303, allocations: 10.62 kB / 1.256 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/1.304, allocations: 1.371 MB / 1.257 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/1.304, allocations: 5.062 kB / 1.257 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007643/1.305, allocations: 193.8 kB / 1.258 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004217/1.305, allocations: 78.47 kB / 1.258 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-05/1.305, allocations: 41.88 kB / 1.258 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/1.307, allocations: 1.675 MB / 1.259 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/1.307, allocations: 2.625 kB / 1.259 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002378/1.309, allocations: 1.28 MB / 1.261 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005118/1.31, allocations: 358.2 kB / 1.261 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/1.31, allocations: 34.94 kB / 1.261 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008452/1.311, allocations: 98.27 kB / 1.261 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/1.311, allocations: 95.14 kB / 1.261 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/1.311, allocations: 52.58 kB / 1.261 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008052/1.312, allocations: 0.6176 MB / 1.262 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.7e-07/1.312, allocations: 0.75 kB / 1.262 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00134/1.314, allocations: 476.7 kB / 1.262 GB, free: 177.8 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.001416/1.315, allocations: 0.6237 MB / 1.263 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00358/1.319, allocations: 1.436 MB / 1.264 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/1.319, allocations: 1.594 kB / 1.264 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001154/1.32, allocations: 0.6814 MB / 1.265 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/1.321, allocations: 341.1 kB / 1.265 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004953/1.326, allocations: 3.185 MB / 1.268 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008698/1.327, allocations: 1.224 MB / 1.269 GB, free: 174 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001316/1.328, allocations: 319.5 kB / 1.27 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/1.329, allocations: 145.6 kB / 1.27 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of SimCode: time 6.62e-07/1.329, allocations: 4 kB / 1.27 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.05006/1.379, allocations: 20.48 MB / 1.29 GB, free: 167.5 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