Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,fileNamePrefix="Buildings_11_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,fileNamePrefix="Buildings_11_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008072/0.008072, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002077/0.002077, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.862/1.862, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.763/2.763, allocations: 469.8 MB / 0.7425 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002828/0.002828, allocations: 56.12 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9666/0.9694, allocations: 159.1 MB / 1.22 GB, free: 2.055 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002743/0.9722, allocations: 1.593 MB / 1.222 GB, free: 464 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.9734, allocations: 0.6591 MB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.439e-05/0.9735, allocations: 0 / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.9736, allocations: 67.83 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002728/0.9739, allocations: 111.7 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.9743, allocations: 102.4 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.9745, allocations: 131.7 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 7.901e-05/0.9746, allocations: 4 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.9747, allocations: 75.8 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.9749, allocations: 107.8 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.9749, allocations: 4 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.9751, allocations: 79.92 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.402e-05/0.9752, allocations: 31.86 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.073e-05/0.9752, allocations: 59.61 kB / 1.223 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.9755, allocations: 159.1 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.9755, allocations: 0 / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9755, allocations: 0 / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.9755, allocations: 0 / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000741/0.9763, allocations: 496.1 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.9763, allocations: 12.03 kB / 1.224 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.635e-05/0.9764, allocations: 34.75 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.405e-05/0.9764, allocations: 16.84 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.9767, allocations: 212.1 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.9768, allocations: 8.359 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.991e-05/0.9768, allocations: 8.375 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.977, allocations: 131.4 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.977, allocations: 0 / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.977, allocations: 7.938 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.9771, allocations: 4 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.9772, allocations: 67.95 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004603/0.9777, allocations: 412.9 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.9778, allocations: 117.2 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.978, allocations: 81.78 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.978, allocations: 0 / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.9783, allocations: 174.7 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.9783, allocations: 4 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13): time 0.0005406/0.9788, allocations: 339.1 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.544e-05/0.9789, allocations: 114.8 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.9791, allocations: 216.1 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.9792, allocations: 25.7 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.9792, allocations: 116.1 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.9793, allocations: 35.88 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.185e-05/0.9794, allocations: 37.66 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.9795, allocations: 334.8 kB / 1.226 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.373e-05/0.9796, allocations: 59.97 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.9797, allocations: 77.62 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.9799, allocations: 201.2 kB / 1.226 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.9799, allocations: 0 / 1.226 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003417/0.9803, allocations: 263.2 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.9803, allocations: 41.69 kB / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.9804, allocations: 0 / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.9804, allocations: 4 kB / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.9805, allocations: 19.92 kB / 1.227 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.9805, allocations: 0 / 1.227 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.98e-05/0.9806, allocations: 11.94 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.9806, allocations: 4 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (decAng.tNext,$PRE.decAng.tNext,$whenCondition2,solDecNOAA.nextEventScaled,solDecNOAA.nextEvent,$PRE.solDecNOAA.nextEvent,solDecNOAA.last,solDecNOAA.b,solDecNOAA.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001592/0.9808, allocations: 183.9 kB / 1.227 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.9808, allocations: 19.86 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.9811, allocations: 103.1 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.9811, allocations: 0 / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.9811, allocations: 0 / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.9811, allocations: 3.938 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.9813, allocations: 237.6 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.9813, allocations: 3.938 kB / 1.227 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.178e-05/0.9814, allocations: 8 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.9814, allocations: 0 / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.9814, allocations: 4 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.9814, allocations: 7.984 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.9814, allocations: 4 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004336/0.9819, allocations: 331.4 kB / 1.228 GB, free: 9.938 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.48e-05/0.982, allocations: 112.9 kB / 1.228 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.982, allocations: 4.094 kB / 1.228 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.856e-05/0.9821, allocations: 16.11 kB / 1.228 GB, free: 9.789 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/0.9822, allocations: 15.97 kB / 1.228 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.9822, allocations: 8 kB / 1.228 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000142/0.9824, allocations: 155.2 kB / 1.228 GB, free: 9.613 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9824, allocations: 0 / 1.228 GB, free: 9.613 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002565/0.9826, allocations: 47.94 kB / 1.228 GB, free: 9.566 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,decAng.tNext,$whenCondition1,solDecNOAA.a,solDecNOAA.b,solDecNOAA.last,solDecNOAA.nextEvent,solDecNOAA.nextEventScaled) * Number of discrete states: 7 (solDecNOAA.nextEvent,solDecNOAA.last,solDecNOAA.nextEventScaled,solDecNOAA.b,solDecNOAA.a,$whenCondition1,decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000813/0.9834, allocations: 0.8937 MB / 1.229 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003546/0.9838, allocations: 243.3 kB / 1.229 GB, free: 8.391 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.9838, allocations: 0 / 1.229 GB, free: 8.391 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.984, allocations: 167.4 kB / 1.229 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.9842, allocations: 12 kB / 1.229 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.9867, allocations: 2.254 MB / 1.231 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.9871, allocations: 0.7236 MB / 1.232 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.437e-05/0.9871, allocations: 7.984 kB / 1.232 GB, free: 5.094 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.158e-05/0.9872, allocations: 43.42 kB / 1.232 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of SimCode: time 4.71e-07/0.9872, allocations: 4 kB / 1.232 GB, free: 5.047 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/1.014, allocations: 3.532 MB / 1.236 GB, free: 1.672 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.56/17.57, allocations: 5.578 kB / 1.236 GB, free: 1.668 MB / 0.9512 GB (rm -f Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; mkfifo Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; head -c 1048576 < Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe >> ../files/Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 Buildings_11_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.fmu > Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[525]=31536000.000000 File[7]=75686.400000 " Variables in the reference:time,decAng.decAng,solDecNOAA.y Variables in the result:time,decAng.calTimAux,decAng.decAng,decAng.modTimAux,solDecNOAA.y,decAng.weaDatEndTim