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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001137/0.001138, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001401/0.001401, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.918/1.918, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.577/2.577, allocations: 390.9 MB / 0.666 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004419/0.0004419, allocations: 12 kB / 0.8153 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.768/0.7684, allocations: 142.4 MB / 0.9544 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.001772/0.7703, allocations: 1.298 MB / 0.9557 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009273/0.7712, allocations: 0.5874 MB / 0.9563 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.236e-05/0.7713, allocations: 5.312 kB / 0.9563 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.7714, allocations: 72.22 kB / 0.9564 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.7717, allocations: 103.1 kB / 0.9565 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.772, allocations: 70.5 kB / 0.9565 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.7721, allocations: 104.8 kB / 0.9566 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.223e-05/0.7722, allocations: 13.28 kB / 0.9566 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.7723, allocations: 65.44 kB / 0.9567 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.7725, allocations: 85.42 kB / 0.9568 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.7725, allocations: 7.172 kB / 0.9568 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.7726, allocations: 72.06 kB / 0.9569 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.586e-05/0.7727, allocations: 42.16 kB / 0.9569 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.555e-05/0.7728, allocations: 47.42 kB / 0.9569 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.7729, allocations: 111 kB / 0.957 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.7729, allocations: 0 / 0.957 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.694e-06/0.773, allocations: 0 / 0.957 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.773, allocations: 0 / 0.957 GB, free: 5.852 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.0005494/0.7735, allocations: 463 kB / 0.9575 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.7736, allocations: 12.75 kB / 0.9575 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.7736, allocations: 19.83 kB / 0.9575 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.7738, allocations: 199.1 kB / 0.9577 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.7738, allocations: 2.531 kB / 0.9577 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.7739, allocations: 7.875 kB / 0.9577 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.7741, allocations: 118 kB / 0.9578 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.7741, allocations: 0 / 0.9578 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.7741, allocations: 2.25 kB / 0.9578 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.7741, allocations: 1.062 kB / 0.9578 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.7743, allocations: 84.03 kB / 0.9579 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.7746, allocations: 401.6 kB / 0.9583 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.7748, allocations: 125.1 kB / 0.9584 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.293e-05/0.7749, allocations: 81.7 kB / 0.9585 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.7749, allocations: 3.984 kB / 0.9585 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.7752, allocations: 163.7 kB / 0.9586 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.232e-06/0.7752, allocations: 0 / 0.9586 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.000498/0.7757, allocations: 340.7 kB / 0.959 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.7758, allocations: 117.5 kB / 0.9591 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.776, allocations: 213.3 kB / 0.9593 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.776, allocations: 31.08 kB / 0.9593 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.392e-05/0.776, allocations: 118.9 kB / 0.9594 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.7761, allocations: 36.98 kB / 0.9595 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.7761, allocations: 1.375 kB / 0.9595 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.987e-05/0.7762, allocations: 328.3 kB / 0.9598 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-05/0.7763, allocations: 62.47 kB / 0.9598 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.7764, allocations: 82.88 kB / 0.9599 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.7765, allocations: 86.34 kB / 0.96 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7765, allocations: 0 / 0.96 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003255/0.7769, allocations: 265.9 kB / 0.9603 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/0.7769, allocations: 36.83 kB / 0.9603 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.7769, allocations: 0.9375 kB / 0.9603 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.7769, allocations: 5.047 kB / 0.9603 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.777, allocations: 15.3 kB / 0.9603 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.7771, allocations: 4.969 kB / 0.9603 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.7772, allocations: 18.56 kB / 0.9603 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.7772, allocations: 16 kB / 0.9604 GB, free: 3.059 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 ($whenCondition2,$PRE.decAng.tNext,decAng.tNext,$whenCondition1,solDecNOAA.a,solDecNOAA.b,solDecNOAA.last,$PRE.solDecNOAA.nextEvent,solDecNOAA.nextEvent,solDecNOAA.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001629/0.7774, allocations: 172.9 kB / 0.9605 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.7774, allocations: 22.05 kB / 0.9605 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.7777, allocations: 90.83 kB / 0.9606 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.7777, allocations: 5.016 kB / 0.9606 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.7777, allocations: 5.219 kB / 0.9606 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.7777, allocations: 0.9375 kB / 0.9606 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.7779, allocations: 231.1 kB / 0.9609 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.7779, allocations: 0.75 kB / 0.9609 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.409e-05/0.7779, allocations: 11.94 kB / 0.9609 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.7779, allocations: 1.156 kB / 0.9609 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.778, allocations: 7.891 kB / 0.9609 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.778, allocations: 1 kB / 0.9609 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.778, allocations: 3.953 kB / 0.9609 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000381/0.7784, allocations: 345.2 kB / 0.9612 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.439e-05/0.7784, allocations: 106.5 kB / 0.9613 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.7785, allocations: 7.953 kB / 0.9613 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.099e-05/0.7786, allocations: 10.06 kB / 0.9613 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.35e-05/0.7786, allocations: 12.31 kB / 0.9613 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.7787, allocations: 5.25 kB / 0.9613 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001391/0.7788, allocations: 171.7 kB / 0.9615 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.81e-07/0.7788, allocations: 0 / 0.9615 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002673/0.7791, allocations: 46.27 kB / 0.9616 GB, free: 2.102 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001907/0.7793, allocations: 129.9 kB / 0.9617 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000327/0.7796, allocations: 241.6 kB / 0.9619 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.7796, allocations: 0.9062 kB / 0.9619 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.7798, allocations: 162.5 kB / 0.9621 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.78, allocations: 27.58 kB / 0.9621 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005527/0.7806, allocations: 366.8 kB / 0.9624 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/0.7807, allocations: 0.7225 MB / 0.9631 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.417e-05/0.7808, allocations: 8.109 kB / 0.9632 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/0.7808, allocations: 15.12 kB / 0.9632 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7808, allocations: 0 / 0.9632 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of Templates: time 0.004364/0.7852, allocations: 1.505 MB / 0.9646 GB, free: 15.99 MB / 0.7325 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