Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,fileNamePrefix="Buildings_9_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.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.001127/0.001127, allocations: 194.3 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.169/1.169, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.017/2.017, allocations: 390.2 MB / 0.6647 GB, free: 488 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 63.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4752/0.4764, allocations: 140.4 MB / 0.9497 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002113/0.4785, allocations: 1.591 MB / 0.9513 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000749/0.4793, allocations: 0.6546 MB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-05/0.4793, allocations: 1.344 kB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.4794, allocations: 73.3 kB / 0.952 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.4796, allocations: 98.27 kB / 0.9521 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.4799, allocations: 98.59 kB / 0.9522 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.4801, allocations: 136.3 kB / 0.9523 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.642e-05/0.4801, allocations: 13.55 kB / 0.9523 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.4802, allocations: 70.83 kB / 0.9524 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.4804, allocations: 98.19 kB / 0.9525 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.4804, allocations: 7.25 kB / 0.9525 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.4805, allocations: 82.08 kB / 0.9526 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.798e-05/0.4806, allocations: 36.38 kB / 0.9526 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.621e-05/0.4806, allocations: 50.17 kB / 0.9526 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.4808, allocations: 169.5 kB / 0.9528 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.4808, allocations: 0.9688 kB / 0.9528 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.022e-06/0.4808, allocations: 0 / 0.9528 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.4808, allocations: 0 / 0.9528 GB, free: 6.945 MB / 0.7169 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.0004851/0.4813, allocations: 480.2 kB / 0.9533 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.836e-05/0.4813, allocations: 10.66 kB / 0.9533 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.378e-05/0.4814, allocations: 40.2 kB / 0.9533 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.4814, allocations: 20.94 kB / 0.9533 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.4815, allocations: 215.5 kB / 0.9535 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.4816, allocations: 7 kB / 0.9535 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.4816, allocations: 4.344 kB / 0.9535 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001625/0.4818, allocations: 127 kB / 0.9537 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.4818, allocations: 7.922 kB / 0.9537 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.4818, allocations: 1.906 kB / 0.9537 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.4818, allocations: 0 / 0.9537 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.4819, allocations: 72.83 kB / 0.9537 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002761/0.4822, allocations: 405.7 kB / 0.9541 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.4823, allocations: 120.4 kB / 0.9543 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.257e-05/0.4824, allocations: 74.08 kB / 0.9543 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.4824, allocations: 9.188 kB / 0.9543 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.4826, allocations: 175.8 kB / 0.9545 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.112e-06/0.4827, allocations: 0 / 0.9545 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004016/0.4831, allocations: 341.5 kB / 0.9548 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.673e-05/0.4831, allocations: 106.8 kB / 0.9549 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.4832, allocations: 216.5 kB / 0.9551 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.4833, allocations: 41.28 kB / 0.9552 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.4833, allocations: 111.7 kB / 0.9553 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.4833, allocations: 26.41 kB / 0.9553 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-05/0.4834, allocations: 32.89 kB / 0.9553 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.782e-05/0.4834, allocations: 328.7 kB / 0.9556 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.361e-05/0.4835, allocations: 62.5 kB / 0.9557 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.021e-05/0.4836, allocations: 77.06 kB / 0.9558 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.4837, allocations: 198.7 kB / 0.956 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4837, allocations: 4 kB / 0.956 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000259/0.484, allocations: 270.8 kB / 0.9562 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.484, allocations: 36.62 kB / 0.9563 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.484, allocations: 1.406 kB / 0.9563 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.828e-06/0.484, allocations: 1.438 kB / 0.9563 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.208e-05/0.4841, allocations: 17.8 kB / 0.9563 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.4841, allocations: 1.438 kB / 0.9563 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.225e-05/0.4842, allocations: 9.25 kB / 0.9563 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.4843, allocations: 7.781 kB / 0.9563 GB, free: 4 MB / 0.7169 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 9.371e-05/0.4843, allocations: 185.8 kB / 0.9565 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.707e-05/0.4844, allocations: 17.59 kB / 0.9565 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001606/0.4845, allocations: 94.91 kB / 0.9566 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4846, allocations: 1.625 kB / 0.9566 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4846, allocations: 1.656 kB / 0.9566 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.4846, allocations: 4 kB / 0.9566 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.4847, allocations: 235.2 kB / 0.9568 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4847, allocations: 0 / 0.9568 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-05/0.4848, allocations: 12.88 kB / 0.9568 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4848, allocations: 1.719 kB / 0.9568 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.4848, allocations: 10.58 kB / 0.9568 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4848, allocations: 4.938 kB / 0.9568 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4848, allocations: 5.078 kB / 0.9569 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.4851, allocations: 337.3 kB / 0.9572 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.4852, allocations: 106.4 kB / 0.9573 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.4852, allocations: 4.125 kB / 0.9573 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.216e-05/0.4853, allocations: 8.109 kB / 0.9573 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.4854, allocations: 17.42 kB / 0.9573 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.4854, allocations: 8.25 kB / 0.9573 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.155e-05/0.4855, allocations: 169.5 kB / 0.9575 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4855, allocations: 0 / 0.9575 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002242/0.4857, allocations: 46.44 kB / 0.9575 GB, free: 3.031 MB / 0.7169 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.0004851/0.4862, allocations: 0.8942 MB / 0.9584 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002622/0.4865, allocations: 251.1 kB / 0.9586 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.4865, allocations: 0 / 0.9586 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.4866, allocations: 163.3 kB / 0.9588 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.4868, allocations: 22.91 kB / 0.9588 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.4885, allocations: 2.22 MB / 0.961 GB, free: 376 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.4886, allocations: 0.7285 MB / 0.9617 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.512e-05/0.4887, allocations: 7.531 kB / 0.9617 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.514e-05/0.4888, allocations: 44.05 kB / 0.9617 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.4888, allocations: 0 / 0.9617 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.5066, allocations: 3.471 MB / 0.9651 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.533/7.04, allocations: 10.33 kB / 0.9651 GB, free: 13.86 MB / 0.7325 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.fmu > Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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