Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.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/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006655/0.006655, allocations: 100.1 kB / 15.87 MB, free: 5.867 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.001277/0.001278, allocations: 188.9 kB / 16.79 MB, free: 5.809 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1399/0.1399, allocations: 5.396 MB / 296 MB, free: 2.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 63.89 kB / 357.4 MB, free: 2.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1035, allocations: 50.61 MB / 408 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002821/0.1064, allocations: 1.704 MB / 409.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.1077, allocations: 0.7129 MB / 410.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.635e-05/0.1078, allocations: 4 kB / 410.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.1079, allocations: 7.922 kB / 410.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.1081, allocations: 47.75 kB / 410.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.1084, allocations: 107.8 kB / 410.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.1086, allocations: 171.5 kB / 410.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.901e-05/0.1087, allocations: 13.44 kB / 410.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.1088, allocations: 79.7 kB / 410.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.109, allocations: 107.7 kB / 410.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.902e-05/0.1091, allocations: 12 kB / 410.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.1092, allocations: 59.95 kB / 411 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.682e-05/0.1092, allocations: 27.89 kB / 411 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.15e-05/0.1093, allocations: 63.64 kB / 411.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.1095, allocations: 120 kB / 411.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1095, allocations: 0 / 411.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1095, allocations: 0 / 411.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1095, allocations: 0 / 411.2 MB, free: 12.12 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008894/0.1104, allocations: 468.8 kB / 411.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1105, allocations: 11.97 kB / 411.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.032e-05/0.1105, allocations: 20.73 kB / 411.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.1108, allocations: 208.1 kB / 411.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.1108, allocations: 12.31 kB / 411.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.526e-05/0.1108, allocations: 8.375 kB / 411.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.1112, allocations: 187 kB / 412.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1113, allocations: 0 / 412.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.1113, allocations: 8 kB / 412.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1113, allocations: 0 / 412.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003749/0.1117, allocations: 135.8 kB / 412.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007302/0.1124, allocations: 0.5984 MB / 412.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006527/0.1131, allocations: 198.7 kB / 413 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.1133, allocations: 84.77 kB / 413.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.1134, allocations: 89.09 kB / 413.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004198/0.1139, allocations: 206.7 kB / 413.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.1139, allocations: 0 / 413.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008103/0.1147, allocations: 336 kB / 413.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.1148, allocations: 136.5 kB / 413.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.1149, allocations: 130.1 kB / 414 MB, free: 9.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.1149, allocations: 37.7 kB / 414 MB, free: 9.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.618e-05/0.115, allocations: 92.42 kB / 414.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.534e-05/0.1151, allocations: 82.92 kB / 414.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1152, allocations: 57.67 kB / 414.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1153, allocations: 326.8 kB / 414.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.1155, allocations: 75.94 kB / 414.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.1158, allocations: 120.2 kB / 414.8 MB, free: 8.242 MB / 350.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.005177/0.1209, allocations: 0.8284 MB / 415.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.121, allocations: 4 kB / 415.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006602/0.1216, allocations: 287 kB / 415.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.1217, allocations: 37.64 kB / 415.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1217, allocations: 0 / 415.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.1217, allocations: 4.125 kB / 415.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003927/0.1221, allocations: 71.86 kB / 416 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.1221, allocations: 4 kB / 416 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.1224, allocations: 15.89 kB / 416 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.1224, allocations: 15.98 kB / 416 MB, free: 6.902 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 (irradiance.year,$PRE.irradiance.year,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,$whenCondition2,$whenCondition1,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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.0002371/0.1227, allocations: 175.9 kB / 416.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.1227, allocations: 19.75 kB / 416.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.1237, allocations: 448.8 kB / 416.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1237, allocations: 7.938 kB / 416.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.1238, allocations: 0 / 416.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1238, allocations: 0 / 416.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003375/0.1241, allocations: 313.1 kB / 417 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1241, allocations: 0 / 417 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002945/0.1244, allocations: 59.91 kB / 417 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.1244, allocations: 11.94 kB / 417 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.1245, allocations: 11.98 kB / 417.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1245, allocations: 0 / 417.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1245, allocations: 0 / 417.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000914/0.1254, allocations: 0.4886 MB / 417.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.1255, allocations: 100.7 kB / 417.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.1255, allocations: 12 kB / 417.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.1257, allocations: 12.06 kB / 417.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.96e-05/0.1258, allocations: 35.89 kB / 417.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.1259, allocations: 15.98 kB / 417.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.744e-05/0.126, allocations: 109.6 kB / 417.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.126, allocations: 0 / 417.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.1263, allocations: 64 kB / 417.9 MB, free: 4.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 6 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition2,irradiance.dayOfYear,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.0001896/0.1265, allocations: 124 kB / 418 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005925/0.1271, allocations: 291.2 kB / 418.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1271, allocations: 0 / 418.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003204/0.1274, allocations: 231.2 kB / 418.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.1278, allocations: 39.92 kB / 418.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009153/0.1287, allocations: 0.5329 MB / 419.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.129, allocations: 0.7329 MB / 419.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.1292, allocations: 39.41 kB / 419.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1292, allocations: 0 / 419.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Templates: time 0.2001/0.3293, allocations: 2.946 MB / 422.8 MB, free: 47.25 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradianceCalcHelperMain.o OMCppPhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradianceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradianceCalcHelperMain.o] Error 1