Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_WeatherData_BaseClasses_Examples_SolarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_WeatherData_BaseClasses_Examples_SolarTime",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.005089/0.005089, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001492/0.001492, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.896/2.896, allocations: 482.4 MB / 0.7548 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 67.88 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2763, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime): time 0.002877/0.2792, allocations: 1.61 MB / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009317/0.2801, allocations: 0.5337 MB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.2802, allocations: 4 kB / 1.244 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.842e-05/0.2802, allocations: 3.938 kB / 1.244 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002433/0.2805, allocations: 55.69 kB / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00012/0.2806, allocations: 35.88 kB / 1.244 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.2808, allocations: 107.6 kB / 1.244 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.714e-05/0.2809, allocations: 19.98 kB / 1.244 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.281, allocations: 55.78 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.2811, allocations: 51.81 kB / 1.244 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.2811, allocations: 8 kB / 1.244 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.295e-05/0.2812, allocations: 8 kB / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.521e-05/0.2812, allocations: 23.91 kB / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.441e-05/0.2813, allocations: 39.86 kB / 1.244 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.2814, allocations: 99.48 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2814, allocations: 0 / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.176e-06/0.2814, allocations: 4 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.2814, allocations: 0 / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007147/0.2822, allocations: 407.1 kB / 1.244 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2822, allocations: 8.031 kB / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.658e-05/0.2823, allocations: 38.75 kB / 1.244 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.2823, allocations: 8.891 kB / 1.244 GB, free: 7.035 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.2825, allocations: 180.3 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.2825, allocations: 4.375 kB / 1.245 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.2825, allocations: 12.38 kB / 1.245 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.2827, allocations: 92.38 kB / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2827, allocations: 0 / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.2827, allocations: 4 kB / 1.245 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.2827, allocations: 0 / 1.245 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.2829, allocations: 47.97 kB / 1.245 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005069/0.2834, allocations: 344.6 kB / 1.245 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002799/0.2837, allocations: 106.7 kB / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.755e-05/0.2838, allocations: 44.84 kB / 1.245 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.2838, allocations: 7.938 kB / 1.245 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.284, allocations: 99.22 kB / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.284, allocations: 0 / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0003346/0.2844, allocations: 149.6 kB / 1.246 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.2844, allocations: 55.41 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.2845, allocations: 125.7 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.2846, allocations: 29.7 kB / 1.246 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.278e-05/0.2846, allocations: 96.31 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.275e-05/0.2847, allocations: 39.81 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-05/0.2847, allocations: 25.72 kB / 1.246 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2849, allocations: 322.8 kB / 1.246 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.887e-05/0.285, allocations: 35.92 kB / 1.246 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.113e-05/0.285, allocations: 31.98 kB / 1.246 GB, free: 5.047 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.2851, allocations: 63.09 kB / 1.246 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2852, allocations: 0 / 1.246 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001993/0.2854, allocations: 113.6 kB / 1.246 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2854, allocations: 4 kB / 1.246 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2854, allocations: 4 kB / 1.246 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.2854, allocations: 0 / 1.246 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.2855, allocations: 23.92 kB / 1.246 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.2855, allocations: 7.984 kB / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.2857, allocations: 15.92 kB / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.2857, allocations: 0 / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (eqnTim.tNext,$PRE.eqnTim.tNext,locTim.tNext,$PRE.locTim.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0001011/0.2858, allocations: 125.8 kB / 1.247 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.997e-05/0.2858, allocations: 7.953 kB / 1.247 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002922/0.2861, allocations: 148.3 kB / 1.247 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2861, allocations: 0 / 1.247 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2861, allocations: 0 / 1.247 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2861, allocations: 7.938 kB / 1.247 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.2863, allocations: 213.6 kB / 1.247 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2864, allocations: 0 / 1.247 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.411e-05/0.2864, allocations: 16 kB / 1.247 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2864, allocations: 0 / 1.247 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.2865, allocations: 7.984 kB / 1.247 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2865, allocations: 3.938 kB / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2865, allocations: 0 / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.2868, allocations: 168.9 kB / 1.247 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.2868, allocations: 85.06 kB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.2869, allocations: 7.984 kB / 1.247 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.287, allocations: 8 kB / 1.247 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.287, allocations: 11.92 kB / 1.247 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.287, allocations: 15.92 kB / 1.247 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.078e-05/0.2871, allocations: 96.14 kB / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2871, allocations: 0 / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002161/0.2873, allocations: 27.94 kB / 1.247 GB, free: 3.777 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,locTim.tNext,eqnTim.tNext) * Number of discrete states: 2 (locTim.tNext,eqnTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005797/0.2879, allocations: 0.7054 MB / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001997/0.2881, allocations: 79.97 kB / 1.248 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2882, allocations: 4 kB / 1.248 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.2883, allocations: 51.91 kB / 1.248 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.2884, allocations: 16.64 kB / 1.248 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.2901, allocations: 1.457 MB / 1.25 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.2904, allocations: 0.6962 MB / 1.25 GB, free: 0.6406 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.713e-05/0.2904, allocations: 12.55 kB / 1.25 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.374e-05/0.2905, allocations: 33.42 kB / 1.25 GB, free: 0.5938 MB / 0.9981 GB Notification: Performance of SimCode: time 3.61e-07/0.2905, allocations: 8 kB / 1.25 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4811/0.7716, allocations: 2.278 MB / 1.253 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/8.368, allocations: 7.734 kB / 1.253 GB, free: 14.4 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime_res.csv --start-time 0 --stop-time 864000 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 345.6 Buildings_latest_Buildings_BoundaryConditions_WeatherData_BaseClasses_Examples_SolarTime.fmu > Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_WeatherData_BaseClasses_Examples_SolarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.SolarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches