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: translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|decAng.decAng|solDecNOAA.y",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination") translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|decAng.decAng|solDecNOAA.y",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001196/0.001197, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.413/2.413, allocations: 390.2 MB / 0.6642 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6609/0.6621, allocations: 140.4 MB / 0.9489 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002593/0.6647, allocations: 1.66 MB / 0.9505 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.6659, allocations: 0.6509 MB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.213e-05/0.666, allocations: 1.375 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.6661, allocations: 82.72 kB / 0.9513 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.6664, allocations: 100.5 kB / 0.9514 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.6667, allocations: 71.53 kB / 0.9514 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.6668, allocations: 123.2 kB / 0.9515 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.548e-05/0.6669, allocations: 17.31 kB / 0.9516 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.6671, allocations: 65.98 kB / 0.9516 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.6672, allocations: 98.02 kB / 0.9517 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.184e-05/0.6673, allocations: 3.031 kB / 0.9517 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.6674, allocations: 75.67 kB / 0.9518 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.219e-05/0.6674, allocations: 33.66 kB / 0.9518 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.493e-05/0.6675, allocations: 58.64 kB / 0.9519 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.6677, allocations: 158.7 kB / 0.952 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.6677, allocations: 5.031 kB / 0.952 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.21e-07/0.6677, allocations: 0 / 0.952 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.6677, allocations: 0 / 0.952 GB, free: 6.906 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.000594/0.6683, allocations: 483.9 kB / 0.9525 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.6684, allocations: 9.938 kB / 0.9525 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.288e-05/0.6684, allocations: 16.72 kB / 0.9525 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.6686, allocations: 220.2 kB / 0.9527 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.6686, allocations: 3.219 kB / 0.9527 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.6687, allocations: 3.25 kB / 0.9527 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.6689, allocations: 126.8 kB / 0.9529 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.6689, allocations: 1.031 kB / 0.9529 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.6689, allocations: 0.9375 kB / 0.9529 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.6689, allocations: 1.156 kB / 0.9529 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.669, allocations: 73.23 kB / 0.9529 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.6694, allocations: 409.9 kB / 0.9533 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.6696, allocations: 120.2 kB / 0.9534 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.6697, allocations: 82.53 kB / 0.9535 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.6697, allocations: 11.92 kB / 0.9535 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.67, allocations: 172 kB / 0.9537 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.67, allocations: 0 / 0.9537 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0005134/0.6705, allocations: 332.7 kB / 0.954 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.6705, allocations: 106.6 kB / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.6707, allocations: 221.9 kB / 0.9543 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.6707, allocations: 28.45 kB / 0.9543 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.6708, allocations: 118.9 kB / 0.9545 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/0.6708, allocations: 33.02 kB / 0.9545 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.6709, allocations: 27.83 kB / 0.9545 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.176e-05/0.671, allocations: 332.2 kB / 0.9548 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.363e-05/0.6711, allocations: 63.47 kB / 0.9549 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.018e-05/0.6712, allocations: 80.41 kB / 0.955 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.6713, allocations: 202.3 kB / 0.9552 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.6714, allocations: 0 / 0.9552 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002906/0.6717, allocations: 267.4 kB / 0.9554 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.6717, allocations: 32.89 kB / 0.9555 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.6717, allocations: 1.094 kB / 0.9555 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.6717, allocations: 3.969 kB / 0.9555 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.6718, allocations: 15.98 kB / 0.9555 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.443e-06/0.6718, allocations: 1.75 kB / 0.9555 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.6719, allocations: 17.31 kB / 0.9555 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.672, allocations: 11.83 kB / 0.9555 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 0.0001138/0.6721, allocations: 172.6 kB / 0.9557 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.6721, allocations: 20.73 kB / 0.9557 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.6723, allocations: 100.9 kB / 0.9558 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.6723, allocations: 1.219 kB / 0.9558 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.6724, allocations: 0 / 0.9558 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.6724, allocations: 9.359 kB / 0.9558 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.6725, allocations: 234.8 kB / 0.956 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.6725, allocations: 1.25 kB / 0.956 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.537e-05/0.6726, allocations: 7.5 kB / 0.956 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.6726, allocations: 5.203 kB / 0.956 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.6726, allocations: 7.5 kB / 0.956 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.6726, allocations: 0.5 kB / 0.956 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.6726, allocations: 1.344 kB / 0.956 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003951/0.673, allocations: 333.5 kB / 0.9564 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.354e-05/0.6731, allocations: 106.4 kB / 0.9565 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.6732, allocations: 11.86 kB / 0.9565 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.861e-05/0.6733, allocations: 9.031 kB / 0.9565 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.6733, allocations: 11.58 kB / 0.9565 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.6734, allocations: 9.516 kB / 0.9565 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001095/0.6735, allocations: 168.6 kB / 0.9567 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6735, allocations: 0 / 0.9567 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002518/0.6737, allocations: 46.81 kB / 0.9567 GB, free: 3.043 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.0001738/0.6739, allocations: 130 kB / 0.9568 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003275/0.6742, allocations: 247 kB / 0.9571 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6743, allocations: 3.938 kB / 0.9571 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.6744, allocations: 166.7 kB / 0.9572 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002341/0.6747, allocations: 15.78 kB / 0.9572 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000528/0.6752, allocations: 387.7 kB / 0.9576 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.6753, allocations: 0.7212 MB / 0.9583 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.182e-05/0.6754, allocations: 4.156 kB / 0.9583 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.6754, allocations: 15.72 kB / 0.9583 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6754, allocations: 0 / 0.9583 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of Templates: time 0.004275/0.6797, allocations: 1.557 MB / 0.9599 GB, free: 0.8945 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.makefile (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 & ./Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches