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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001513/0.001513, 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.001807/0.001807, allocations: 192.9 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.346/1.346, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.709/2.709, allocations: 461.8 MB / 0.7342 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 62.95 kB / 0.8984 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2799, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002813/0.2828, allocations: 1.673 MB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.284, allocations: 0.6738 MB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.043e-05/0.2841, allocations: 0 / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001898/0.2843, allocations: 71.83 kB / 1.054 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002786/0.2846, allocations: 95.73 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.2849, allocations: 83.78 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001343/0.285, allocations: 115.7 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.099e-05/0.2851, allocations: 15.98 kB / 1.055 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.2852, allocations: 59.77 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.2854, allocations: 107.8 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.2854, allocations: 4 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.2856, allocations: 71.92 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.207e-05/0.2856, allocations: 35.91 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.013e-05/0.2857, allocations: 55.55 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.2859, allocations: 159.8 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2859, allocations: 0 / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.51e-07/0.2859, allocations: 4 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.286, allocations: 0 / 1.055 GB, free: 5.629 MB / 0.8106 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.0007498/0.2867, allocations: 476.4 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2868, allocations: 8.031 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.2868, allocations: 20.73 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.287, allocations: 211.9 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.287, allocations: 4.375 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.2871, allocations: 8.359 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.2873, allocations: 127.6 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.2873, allocations: 0 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.2873, allocations: 4 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.2873, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.2875, allocations: 71.95 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004309/0.2879, allocations: 416.8 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.2881, allocations: 109.2 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.2882, allocations: 85.72 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2882, allocations: 4 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/0.2886, allocations: 181.8 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.2886, allocations: 0 / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13): time 0.0005202/0.2891, allocations: 331 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.2892, allocations: 110.8 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.2894, allocations: 216.1 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.2894, allocations: 29.7 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.122e-05/0.2895, allocations: 116.1 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.2895, allocations: 39.69 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.692e-05/0.2896, allocations: 29.7 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2897, allocations: 330.8 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.884e-05/0.2898, allocations: 63.91 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.2899, allocations: 77.69 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002096/0.2902, allocations: 185.1 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2902, allocations: 8 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003521/0.2905, allocations: 271.3 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.84e-05/0.2906, allocations: 35.56 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.2906, allocations: 7.938 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2906, allocations: 0 / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.2908, allocations: 19.94 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.2908, allocations: 3.984 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.2909, allocations: 8 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.2909, allocations: 4 kB / 1.059 GB, free: 1.773 MB / 0.8106 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.0001707/0.2911, allocations: 185 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.2912, allocations: 19.81 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.2914, allocations: 99 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2914, allocations: 4 kB / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2914, allocations: 0 / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2914, allocations: 0 / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.2917, allocations: 237.4 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.2917, allocations: 11.94 kB / 1.059 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.622e-05/0.2917, allocations: 8 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2917, allocations: 0 / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.2918, allocations: 8 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2918, allocations: 3.984 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2918, allocations: 0 / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004315/0.2922, allocations: 339.3 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-05/0.2923, allocations: 104.9 kB / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.882e-05/0.2924, allocations: 4.094 kB / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.2925, allocations: 7.984 kB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.2926, allocations: 15.97 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.2926, allocations: 8 kB / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001412/0.2927, allocations: 163 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2927, allocations: 0 / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002591/0.293, allocations: 40 kB / 1.06 GB, free: 436 kB / 0.8106 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.0002125/0.2932, allocations: 135.2 kB / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003465/0.2936, allocations: 247.2 kB / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2936, allocations: 0 / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.2938, allocations: 167.4 kB / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.294, allocations: 8 kB / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.2946, allocations: 386 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.2949, allocations: 0.7239 MB / 1.061 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.491e-05/0.295, allocations: 7.984 kB / 1.061 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.123e-05/0.295, allocations: 11.44 kB / 1.061 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.295, allocations: 0 / 1.061 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.004351/0.2994, allocations: 1.56 MB / 1.063 GB, free: 13.13 MB / 0.8262 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/jenkins/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