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 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.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.001668, allocations: 104.5 kB / 16.35 MB, free: 5.824 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.001941/0.001941, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.445/1.445, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.478/2.478, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 65.92 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2684, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006163/0.2746, allocations: 4.949 MB / 1.032 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.7495/1.024, allocations: 150.6 MB / 1.179 GB, free: 6.715 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008471/1.025, allocations: 17.03 kB / 1.179 GB, free: 6.711 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0005953/1.026, allocations: 196.4 kB / 1.179 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.001868/1.028, allocations: 0.5527 MB / 1.179 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001991/1.03, allocations: 0.8506 MB / 1.18 GB, free: 5.773 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.001892/1.032, allocations: 1.436 MB / 1.182 GB, free: 4.883 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001008/1.033, allocations: 0.5894 MB / 1.182 GB, free: 4.527 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008577/1.033, allocations: 0.4932 MB / 1.183 GB, free: 4.23 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007489/1.034, allocations: 0.5186 MB / 1.183 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001791/1.034, allocations: 118.3 kB / 1.183 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009947/1.035, allocations: 495.4 kB / 1.184 GB, free: 3.684 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002884/1.036, allocations: 303.1 kB / 1.184 GB, free: 3.445 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0005493/1.036, allocations: 0.5816 MB / 1.185 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001907/1.038, allocations: 1.67 MB / 1.186 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/1.038, allocations: 0 / 1.186 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.413e-06/1.038, allocations: 0 / 1.186 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.023e-05/1.038, allocations: 0 / 1.186 GB, free: 1.82 MB / 0.8887 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.002836/1.041, allocations: 1.462 MB / 1.188 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/1.041, allocations: 8.531 kB / 1.188 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/1.042, allocations: 190 kB / 1.188 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/1.044, allocations: 0.7803 MB / 1.189 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.421e-05/1.044, allocations: 61.31 kB / 1.189 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/1.044, allocations: 87.31 kB / 1.189 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/1.045, allocations: 0.9508 MB / 1.19 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/1.045, allocations: 0 / 1.19 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.522e-05/1.046, allocations: 41.55 kB / 1.19 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/1.046, allocations: 20.09 kB / 1.19 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/1.047, allocations: 1.126 MB / 1.191 GB, free: 14.7 MB / 0.9044 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.004415/1.052, allocations: 2.714 MB / 1.194 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/1.053, allocations: 0.9306 MB / 1.194 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005169/1.054, allocations: 318.9 kB / 1.195 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/1.054, allocations: 33.64 kB / 1.195 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008648/1.055, allocations: 0.5111 MB / 1.195 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=85): time 2.314e-06/1.055, allocations: 0 / 1.195 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=85): time 0.003311/1.058, allocations: 1.26 MB / 1.196 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/1.058, allocations: 197.2 kB / 1.197 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008459/1.059, allocations: 0.6408 MB / 1.197 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.03e-05/1.059, allocations: 43.23 kB / 1.197 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003123/1.06, allocations: 399.4 kB / 1.198 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/1.06, allocations: 272.2 kB / 1.198 GB, free: 9.582 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/1.06, allocations: 178.4 kB / 1.198 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001601/1.06, allocations: 389.3 kB / 1.199 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005603/1.061, allocations: 282.8 kB / 1.199 GB, free: 8.961 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006278/1.062, allocations: 386.9 kB / 1.199 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/1.063, allocations: 0.6402 MB / 1.2 GB, free: 8.387 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/1.063, allocations: 0 / 1.2 GB, free: 8.387 MB / 0.9044 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002046/1.065, allocations: 0.8814 MB / 1.201 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/1.065, allocations: 4.594 kB / 1.201 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/1.065, allocations: 2.906 kB / 1.201 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005916/1.065, allocations: 87.14 kB / 1.201 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007028/1.066, allocations: 176 kB / 1.201 GB, free: 7.844 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/1.068, allocations: 1.632 MB / 1.203 GB, free: 6.246 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008944/1.069, allocations: 102.4 kB / 1.203 GB, free: 6.184 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.899e-05/1.069, allocations: 39.88 kB / 1.203 GB, free: 6.168 MB / 0.9044 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.0004761/1.07, allocations: 274.5 kB / 1.203 GB, free: 5.953 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/1.07, allocations: 85.12 kB / 1.203 GB, free: 5.91 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/1.072, allocations: 1.131 MB / 1.204 GB, free: 5.277 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/1.072, allocations: 22.62 kB / 1.204 GB, free: 5.266 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/1.072, allocations: 0 / 1.204 GB, free: 5.266 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/1.072, allocations: 3.984 kB / 1.204 GB, free: 5.262 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003315/1.076, allocations: 2.027 MB / 1.206 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/1.076, allocations: 0 / 1.206 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006051/1.076, allocations: 154.3 kB / 1.206 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/1.077, allocations: 70.02 kB / 1.206 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.541e-05/1.077, allocations: 34.19 kB / 1.206 GB, free: 3.836 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/1.079, allocations: 1.657 MB / 1.208 GB, free: 2.223 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.079, allocations: 0 / 1.208 GB, free: 2.223 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/1.081, allocations: 1.052 MB / 1.209 GB, free: 1.633 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004955/1.081, allocations: 278 kB / 1.209 GB, free: 1.391 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/1.082, allocations: 27.36 kB / 1.209 GB, free: 1.371 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006973/1.082, allocations: 64.38 kB / 1.209 GB, free: 1.34 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/1.082, allocations: 84.16 kB / 1.209 GB, free: 1.293 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-05/1.083, allocations: 37.08 kB / 1.209 GB, free: 1.281 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.000602/1.083, allocations: 458.8 kB / 1.21 GB, free: 1.004 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.6e-07/1.083, allocations: 7.875 kB / 1.21 GB, free: 0.9961 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0009991/1.084, allocations: 335.2 kB / 1.21 GB, free: 0.6641 MB / 0.9044 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.001439/1.086, allocations: 0.6029 MB / 1.211 GB, free: 244 kB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001824/1.087, allocations: 0.8713 MB / 1.212 GB, free: 15.35 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.087, allocations: 0 / 1.212 GB, free: 15.35 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0009657/1.088, allocations: 0.5434 MB / 1.212 GB, free: 14.79 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/1.09, allocations: 307.2 kB / 1.212 GB, free: 14.52 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002969/1.093, allocations: 1.696 MB / 1.214 GB, free: 12.8 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007071/1.093, allocations: 1.043 MB / 1.215 GB, free: 11.72 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0008466/1.094, allocations: 262.9 kB / 1.215 GB, free: 11.46 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002794/1.095, allocations: 111.4 kB / 1.216 GB, free: 11.35 MB / 0.92 GB Notification: Performance of SimCode: time 6.72e-07/1.095, allocations: 4 kB / 1.216 GB, free: 11.35 MB / 0.92 GB Notification: Performance of Templates: time 0.02688/1.121, allocations: 15.6 MB / 1.231 GB, free: 11.92 MB / 0.9356 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 -s cvode -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/jenkins1/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