Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.SolarGeometry.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|altAng.alt",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|altAng.alt",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001669, allocations: 108 kB / 15.61 MB, free: 152 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.001989/0.001989, allocations: 197 kB / 16.53 MB, free: 6.664 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.352/1.352, 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.789/2.789, allocations: 472.6 MB / 0.7451 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 62.77 kB / 0.912 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3161, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006897/0.3231, allocations: 4.943 MB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1628/0.486, allocations: 150.7 MB / 1.22 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.4872, allocations: 15.94 kB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000762/0.488, allocations: 190.1 kB / 1.22 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002415/0.4904, allocations: 0.5578 MB / 1.221 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002727/0.4932, allocations: 0.844 MB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002124/0.4953, allocations: 1.425 MB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.4965, allocations: 0.5833 MB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009189/0.4975, allocations: 0.4983 MB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008119/0.4983, allocations: 0.5173 MB / 1.225 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.00024/0.4985, allocations: 120 kB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001255/0.4998, allocations: 463.6 kB / 1.225 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003822/0.5002, allocations: 303 kB / 1.226 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007557/0.501, allocations: 0.5791 MB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002431/0.5034, allocations: 1.616 MB / 1.228 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.5034, allocations: 4 kB / 1.228 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.565e-06/0.5034, allocations: 4 kB / 1.228 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.81e-05/0.5035, allocations: 0 / 1.228 GB, free: 6.527 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.002945/0.5064, allocations: 1.464 MB / 1.229 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.5065, allocations: 11.97 kB / 1.229 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009415/0.5074, allocations: 191.4 kB / 1.229 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.5085, allocations: 0.7507 MB / 1.23 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.577e-05/0.5085, allocations: 62 kB / 1.23 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.5087, allocations: 84 kB / 1.23 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.5102, allocations: 0.9573 MB / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.5102, allocations: 0 / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.389e-05/0.5103, allocations: 36 kB / 1.231 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.5103, allocations: 20 kB / 1.231 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.5121, allocations: 1.136 MB / 1.232 GB, free: 1.684 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.004011/0.5162, allocations: 2.759 MB / 1.235 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.5178, allocations: 0.9121 MB / 1.236 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005419/0.5183, allocations: 318.7 kB / 1.236 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.488e-05/0.5184, allocations: 24.69 kB / 1.236 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009441/0.5193, allocations: 0.5314 MB / 1.237 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=85): time 2.795e-06/0.5194, allocations: 0 / 1.237 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of matching and sorting (n=85): time 0.003293/0.5227, allocations: 1.259 MB / 1.238 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.5228, allocations: 188.9 kB / 1.238 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000841/0.5236, allocations: 0.641 MB / 1.239 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.943e-05/0.5237, allocations: 41.7 kB / 1.239 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003315/0.5241, allocations: 404.4 kB / 1.239 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.5243, allocations: 280 kB / 1.239 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000262/0.5246, allocations: 174.5 kB / 1.24 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001873/0.5247, allocations: 386.8 kB / 1.24 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005466/0.5253, allocations: 281.8 kB / 1.24 GB, free: 9.25 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006593/0.526, allocations: 384 kB / 1.241 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.5272, allocations: 0.629 MB / 1.241 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.5272, allocations: 8 kB / 1.241 GB, free: 8.207 MB / 0.9981 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001988/0.5292, allocations: 0.88 MB / 1.242 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.5292, allocations: 13.48 kB / 1.242 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.5292, allocations: 4 kB / 1.242 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006102/0.5298, allocations: 84.84 kB / 1.242 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006903/0.5305, allocations: 167.8 kB / 1.242 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002022/0.5326, allocations: 1.63 MB / 1.244 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008093/0.5334, allocations: 100.9 kB / 1.244 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.92e-05/0.5335, allocations: 39.97 kB / 1.244 GB, free: 5.137 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: 20 (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,decAng.tNext,$PRE.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * 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.0004828/0.534, allocations: 271.7 kB / 1.244 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.5342, allocations: 83.03 kB / 1.244 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002525/0.5367, allocations: 1.152 MB / 1.246 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.5367, allocations: 8 kB / 1.246 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-06/0.5367, allocations: 0 / 1.246 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.5367, allocations: 15.97 kB / 1.246 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003264/0.54, allocations: 2.009 MB / 1.247 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.54, allocations: 3.984 kB / 1.248 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006005/0.5406, allocations: 151.8 kB / 1.248 GB, free: 1.371 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004535/0.5411, allocations: 76.72 kB / 1.248 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.806e-05/0.5412, allocations: 27.98 kB / 1.248 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4933/1.034, allocations: 1.654 MB / 1.249 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.034, allocations: 0.75 kB / 1.249 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/1.037, allocations: 1.051 MB / 1.25 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004644/1.038, allocations: 278.7 kB / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/1.038, allocations: 22.2 kB / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007139/1.039, allocations: 67.16 kB / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/1.039, allocations: 82.19 kB / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.069e-05/1.039, allocations: 41.31 kB / 1.251 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007001/1.04, allocations: 466.2 kB / 1.251 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.6e-07/1.04, allocations: 1.188 kB / 1.251 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001043/1.041, allocations: 333.3 kB / 1.252 GB, free: 182.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: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (decAng.tNext,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 (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.00164/1.042, allocations: 0.6088 MB / 1.252 GB, free: 182.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00337/1.046, allocations: 1.092 MB / 1.253 GB, free: 182 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/1.046, allocations: 0.8438 kB / 1.253 GB, free: 182 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001032/1.047, allocations: 0.5397 MB / 1.254 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/1.048, allocations: 312.7 kB / 1.254 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/1.051, allocations: 1.718 MB / 1.256 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/1.052, allocations: 1.041 MB / 1.257 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0008343/1.053, allocations: 270.8 kB / 1.257 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/1.053, allocations: 112.9 kB / 1.257 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of SimCode: time 7.31e-07/1.053, allocations: 0 / 1.257 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.03047/1.083, allocations: 15.6 MB / 1.272 GB, free: 178.1 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches