Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|incAngHor.y|incAngNor.y|incAngWes.y|incAngSou.y|incAngEas.y",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|incAngHor.y|incAngNor.y|incAngWes.y|incAngSou.y|incAngEas.y",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007241/0.007241, allocations: 100.8 kB / 15.87 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.001567/0.001567, allocations: 195.8 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.384/1.384, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.765/2.765, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002175, allocations: 63.33 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.334, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.009331/0.3434, allocations: 6.883 MB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1682/0.5116, allocations: 149 MB / 1.205 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.5133, allocations: 15.94 kB / 1.205 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.5145, allocations: 202.4 kB / 1.205 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002985/0.5175, allocations: 0.6792 MB / 1.206 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002606/0.5201, allocations: 0.8682 MB / 1.207 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002889/0.523, allocations: 2.008 MB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.5248, allocations: 0.9868 MB / 1.21 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.5263, allocations: 0.7315 MB / 1.21 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001482/0.5278, allocations: 0.8478 MB / 1.211 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0005348/0.5283, allocations: 116 kB / 1.211 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.5298, allocations: 455.6 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0006594/0.5305, allocations: 398.4 kB / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001395/0.5319, allocations: 0.8626 MB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002461/0.5343, allocations: 1.914 MB / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.5344, allocations: 0 / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5344, allocations: 0 / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001113/0.5345, allocations: 0 / 1.215 GB, free: 1.707 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005731/0.5402, allocations: 2.054 MB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.5403, allocations: 15.97 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/0.5417, allocations: 254.6 kB / 1.217 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.5436, allocations: 0.9732 MB / 1.218 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.5437, allocations: 111.1 kB / 1.218 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.544, allocations: 152 kB / 1.218 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003312/0.5473, allocations: 1.58 MB / 1.22 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/0.5474, allocations: 0 / 1.22 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001698/0.5475, allocations: 68 kB / 1.22 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/0.5476, allocations: 36 kB / 1.22 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002922/0.5505, allocations: 1.639 MB / 1.221 GB, free: 10.66 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.008296/0.5588, allocations: 4.57 MB / 1.226 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002292/0.5611, allocations: 1.193 MB / 1.227 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000902/0.5621, allocations: 479.7 kB / 1.228 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.5622, allocations: 44.92 kB / 1.228 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001652/0.5639, allocations: 0.7822 MB / 1.228 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=128): time 4.529e-06/0.5639, allocations: 0 / 1.228 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of matching and sorting (n=128): time 0.004598/0.5685, allocations: 1.842 MB / 1.23 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.5686, allocations: 201.2 kB / 1.23 GB, free: 1.297 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.5701, allocations: 0.8692 MB / 1.231 GB, free: 412 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.5703, allocations: 49.7 kB / 1.231 GB, free: 356 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006029/0.5709, allocations: 0.6117 MB / 1.232 GB, free: 15.72 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.5713, allocations: 402.2 kB / 1.232 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004369/0.5717, allocations: 258.7 kB / 1.232 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.5719, allocations: 357.9 kB / 1.233 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008834/0.5728, allocations: 450.4 kB / 1.233 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.5738, allocations: 0.561 MB / 1.234 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001855/0.5756, allocations: 0.9896 MB / 1.235 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.5757, allocations: 0 / 1.235 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=159) (initialization): time 0.003038/0.5787, allocations: 1.344 MB / 1.236 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.5788, allocations: 4 kB / 1.236 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.5788, allocations: 4 kB / 1.236 GB, free: 11.33 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006306/0.5794, allocations: 80.84 kB / 1.236 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.5806, allocations: 271.6 kB / 1.236 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002344/0.583, allocations: 1.549 MB / 1.238 GB, free: 9.297 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.5844, allocations: 164 kB / 1.238 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.5846, allocations: 59.95 kB / 1.238 GB, free: 9.078 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: 32 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,incAngEas.decAng.tNext,$PRE.incAngEas.decAng.tNext,incAngSou.decAng.tNext,$PRE.incAngSou.decAng.tNext,incAngWes.decAng.tNext,$PRE.incAngWes.decAng.tNext,incAngNor.decAng.tNext,$PRE.incAngNor.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,incAngHor.decAng.tNext,$PRE.incAngHor.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 156 * 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.0008521/0.5854, allocations: 353.5 kB / 1.238 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004019/0.5858, allocations: 118.6 kB / 1.239 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/0.5899, allocations: 1.709 MB / 1.24 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.5899, allocations: 16 kB / 1.24 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.5899, allocations: 0 / 1.24 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.5899, allocations: 7.969 kB / 1.24 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.5922, allocations: 1.397 MB / 1.242 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.5923, allocations: 0 / 1.242 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/0.5932, allocations: 219.6 kB / 1.242 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005484/0.5938, allocations: 88.7 kB / 1.242 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.5939, allocations: 39.97 kB / 1.242 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/0.5958, allocations: 1.563 MB / 1.244 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5958, allocations: 0 / 1.244 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003036/0.5989, allocations: 1.41 MB / 1.245 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007094/0.5996, allocations: 371.1 kB / 1.245 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003266/0.6, allocations: 31.91 kB / 1.245 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.601, allocations: 101.7 kB / 1.245 GB, free: 1.422 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002479/0.6013, allocations: 113.1 kB / 1.245 GB, free: 1.309 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.6014, allocations: 59.89 kB / 1.246 GB, free: 1.25 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001031/0.6025, allocations: 0.6425 MB / 1.246 GB, free: 0.5977 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6025, allocations: 0 / 1.246 GB, free: 0.5977 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001472/0.604, allocations: 494.6 kB / 1.247 GB, free: 116 kB / 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: 20 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of discrete states: 10 (incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.525/1.129, allocations: 0.6182 MB / 1.247 GB, free: 191.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003128/1.132, allocations: 1.272 MB / 1.248 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/1.132, allocations: 1 kB / 1.248 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00141/1.134, allocations: 0.7375 MB / 1.249 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/1.135, allocations: 321.6 kB / 1.25 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004451/1.14, allocations: 3.316 MB / 1.253 GB, free: 190 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/1.14, allocations: 1.24 MB / 1.254 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005414/1.141, allocations: 177.2 kB / 1.254 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of SimCode: time 8.71e-07/1.141, allocations: 3.969 kB / 1.254 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.04609/1.187, allocations: 27.82 MB / 1.281 GB, free: 180 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches