Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,fileNamePrefix="Buildings_10_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.001208/0.001208, allocations: 108 kB / 15.6 MB, free: 132 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.001156/0.001156, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.205/1.205, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.301/2.301, allocations: 437.1 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 67.89 kB / 0.8694 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4794/0.4806, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002607/0.4832, allocations: 1.592 MB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00096/0.4842, allocations: 0.6465 MB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.73e-05/0.4843, allocations: 0 / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.4845, allocations: 91.69 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.4847, allocations: 103.7 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.485, allocations: 91.66 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.4852, allocations: 135.6 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.363e-05/0.4853, allocations: 15.98 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.4854, allocations: 71.84 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.4855, allocations: 103.7 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.4856, allocations: 8 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.4857, allocations: 75.94 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.909e-05/0.4858, allocations: 35.84 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.379e-05/0.4858, allocations: 55.59 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.486, allocations: 165.8 kB / 1.021 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.486, allocations: 0 / 1.021 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4861, allocations: 0 / 1.021 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.4861, allocations: 0 / 1.021 GB, free: 15.29 MB / 0.7794 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.0005914/0.4867, allocations: 480.4 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.4867, allocations: 12.03 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.408e-05/0.4867, allocations: 34.75 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.932e-05/0.4868, allocations: 16.75 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.487, allocations: 215.8 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.487, allocations: 8.375 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.487, allocations: 4.375 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.4872, allocations: 131.5 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.4872, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.4872, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.4872, allocations: 3.938 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.4874, allocations: 75.91 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003707/0.4877, allocations: 409 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.4879, allocations: 117.1 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.347e-05/0.488, allocations: 81.78 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.488, allocations: 4 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/0.4883, allocations: 170.7 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.4883, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0004605/0.4887, allocations: 343.1 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.4888, allocations: 114.8 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.489, allocations: 210.6 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.489, allocations: 33.7 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.4891, allocations: 112.1 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.4891, allocations: 31.55 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.4892, allocations: 33.66 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.568e-05/0.4893, allocations: 330.8 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.791e-05/0.4893, allocations: 59.98 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.779e-05/0.4894, allocations: 77.67 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001817/0.4896, allocations: 197 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.4896, allocations: 0 / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002919/0.4899, allocations: 271 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.49, allocations: 37.7 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.49, allocations: 3.984 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.957e-06/0.49, allocations: 0 / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.632e-05/0.4901, allocations: 12 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.4901, allocations: 0 / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.68e-05/0.4902, allocations: 15.92 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.4902, allocations: 4 kB / 1.024 GB, free: 11.38 MB / 0.7794 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.0001348/0.4904, allocations: 187.4 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.4904, allocations: 19.75 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.4906, allocations: 103.1 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.4906, allocations: 0 / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.4906, allocations: 384 / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.4906, allocations: 0 / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.4908, allocations: 241.4 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4908, allocations: 0 / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.405e-05/0.4909, allocations: 15.98 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.4909, allocations: 0 / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.4909, allocations: 7.938 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4909, allocations: 96 / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4909, allocations: 7.938 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003595/0.4913, allocations: 327.4 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.386e-05/0.4913, allocations: 116.8 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/0.4914, allocations: 0 / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.17e-05/0.4915, allocations: 12 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.4915, allocations: 7.984 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.4915, allocations: 4 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001199/0.4917, allocations: 168.2 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4917, allocations: 0 / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002306/0.4919, allocations: 51.94 kB / 1.025 GB, free: 10.02 MB / 0.7794 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.0006427/0.4926, allocations: 0.8903 MB / 1.026 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002867/0.4929, allocations: 243.3 kB / 1.026 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.4929, allocations: 3.938 kB / 1.026 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.493, allocations: 167.4 kB / 1.026 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/0.4932, allocations: 20.42 kB / 1.026 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.4952, allocations: 2.224 MB / 1.029 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.4955, allocations: 0.7247 MB / 1.029 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.849e-05/0.4955, allocations: 11.98 kB / 1.029 GB, free: 5.559 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.4956, allocations: 43.42 kB / 1.029 GB, free: 5.516 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.4956, allocations: 0 / 1.029 GB, free: 5.516 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.5133, allocations: 3.471 MB / 1.033 GB, free: 2.18 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.483/6.996, allocations: 7.453 kB / 1.033 GB, free: 2.176 MB / 0.7794 GB (rm -f Buildings_10_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; mkfifo Buildings_10_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; head -c 1048576 < Buildings_10_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe >> ../files/Buildings_10_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.fmu > Buildings_10_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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