Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.000899/0.000899, allocations: 97.78 kB / 16.02 MB, free: 76 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.0009743/0.0009744, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.213/1.213, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.337/2.337, allocations: 443.2 MB / 0.7181 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002984, allocations: 12.7 kB / 0.8801 GB, free: 42.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2219, allocations: 155.2 MB / 1.032 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.001518/0.2235, allocations: 1.323 MB / 1.033 GB, free: 3.453 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009318/0.2244, allocations: 0.6586 MB / 1.034 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.438e-05/0.2245, allocations: 0 / 1.034 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.2246, allocations: 71.89 kB / 1.034 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.2248, allocations: 107.7 kB / 1.034 GB, free: 2.613 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.2251, allocations: 79.84 kB / 1.034 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.2252, allocations: 115.6 kB / 1.034 GB, free: 2.422 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.896e-05/0.2253, allocations: 11.97 kB / 1.034 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.2254, allocations: 59.89 kB / 1.034 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.2256, allocations: 107.7 kB / 1.034 GB, free: 2.246 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.2256, allocations: 4 kB / 1.034 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.2257, allocations: 71.94 kB / 1.034 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.166e-05/0.2258, allocations: 31.84 kB / 1.034 GB, free: 2.141 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.449e-05/0.2258, allocations: 81.36 kB / 1.034 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.226, allocations: 112 kB / 1.034 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.226, allocations: 0 / 1.034 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.423e-06/0.226, allocations: 0 / 1.034 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.346e-06/0.226, allocations: 4 kB / 1.034 GB, free: 1.941 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.0005532/0.2266, allocations: 460.6 kB / 1.035 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.2266, allocations: 8.031 kB / 1.035 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/0.2266, allocations: 16.75 kB / 1.035 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.2268, allocations: 215.9 kB / 1.035 GB, free: 1.164 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.2268, allocations: 4.375 kB / 1.035 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.2269, allocations: 8.375 kB / 1.035 GB, free: 1.152 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.2271, allocations: 119.7 kB / 1.035 GB, free: 1.023 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2271, allocations: 4 kB / 1.035 GB, free: 1.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.2271, allocations: 4 kB / 1.035 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.2271, allocations: 0 / 1.035 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.2272, allocations: 71.89 kB / 1.035 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.2276, allocations: 408.8 kB / 1.036 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.2278, allocations: 121.1 kB / 1.036 GB, free: 364 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.24e-05/0.2279, allocations: 77.8 kB / 1.036 GB, free: 280 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.2279, allocations: 7.984 kB / 1.036 GB, free: 272 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.2281, allocations: 178.8 kB / 1.036 GB, free: 68 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/0.2281, allocations: 0 / 1.036 GB, free: 68 kB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.000468/0.2286, allocations: 335.1 kB / 1.036 GB, free: 15.72 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.2287, allocations: 106.8 kB / 1.036 GB, free: 15.59 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.2289, allocations: 218.5 kB / 1.037 GB, free: 15.37 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.2289, allocations: 29.7 kB / 1.037 GB, free: 15.33 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.243e-05/0.2289, allocations: 108.1 kB / 1.037 GB, free: 15.22 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.229, allocations: 39.41 kB / 1.037 GB, free: 15.18 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.229, allocations: 25.7 kB / 1.037 GB, free: 15.15 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2291, allocations: 330.8 kB / 1.037 GB, free: 14.82 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.537e-05/0.2292, allocations: 59.97 kB / 1.037 GB, free: 14.76 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.538e-05/0.2293, allocations: 77.69 kB / 1.037 GB, free: 14.68 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.2295, allocations: 189 kB / 1.037 GB, free: 14.48 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2295, allocations: 0 / 1.037 GB, free: 14.48 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002954/0.2298, allocations: 267.1 kB / 1.038 GB, free: 14.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.2299, allocations: 43.25 kB / 1.038 GB, free: 14.16 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.2299, allocations: 4.094 kB / 1.038 GB, free: 14.15 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.2299, allocations: 3.984 kB / 1.038 GB, free: 14.15 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.235e-05/0.23, allocations: 12.31 kB / 1.038 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.23, allocations: 3.984 kB / 1.038 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.292e-05/0.2301, allocations: 11.91 kB / 1.038 GB, free: 14.12 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.2301, allocations: 12 kB / 1.038 GB, free: 14.11 MB / 0.795 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.0001293/0.2302, allocations: 183.4 kB / 1.038 GB, free: 13.92 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.2303, allocations: 23.75 kB / 1.038 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.2305, allocations: 95.16 kB / 1.038 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2305, allocations: 3.938 kB / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2305, allocations: 4 kB / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2305, allocations: 0 / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.2307, allocations: 233.5 kB / 1.038 GB, free: 13.51 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2307, allocations: 0 / 1.038 GB, free: 13.51 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.2307, allocations: 12 kB / 1.038 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2308, allocations: 4 kB / 1.038 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.2308, allocations: 4 kB / 1.038 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2308, allocations: 0 / 1.038 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2308, allocations: 7.922 kB / 1.038 GB, free: 13.48 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003794/0.2312, allocations: 329.9 kB / 1.039 GB, free: 13.14 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.197e-05/0.2313, allocations: 108.8 kB / 1.039 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.2313, allocations: 8 kB / 1.039 GB, free: 13 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.2314, allocations: 11.98 kB / 1.039 GB, free: 12.99 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.2314, allocations: 8 kB / 1.039 GB, free: 12.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.2315, allocations: 11.98 kB / 1.039 GB, free: 12.97 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001245/0.2316, allocations: 164 kB / 1.039 GB, free: 12.81 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2316, allocations: 0 / 1.039 GB, free: 12.81 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002288/0.2318, allocations: 51.91 kB / 1.039 GB, free: 12.76 MB / 0.795 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.0001655/0.232, allocations: 139.1 kB / 1.039 GB, free: 12.61 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002895/0.2323, allocations: 243.3 kB / 1.039 GB, free: 12.36 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2323, allocations: 0 / 1.039 GB, free: 12.36 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.2325, allocations: 167.4 kB / 1.04 GB, free: 12.19 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.2327, allocations: 10.25 kB / 1.04 GB, free: 12.18 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.2332, allocations: 418.6 kB / 1.04 GB, free: 11.74 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.2335, allocations: 0.7292 MB / 1.041 GB, free: 10.98 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.761e-05/0.2335, allocations: 11.44 kB / 1.041 GB, free: 10.97 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.2335, allocations: 0 / 1.041 GB, free: 10.97 MB / 0.795 GB Notification: Performance of Templates: time 0.003159/0.2367, allocations: 1.83 MB / 1.042 GB, free: 9.152 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches