Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem") translateModel(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 92.16 kB / 16.02 MB, free: 80 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.002613/0.002612, allocations: 173.2 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.76/2.76, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002963/0.002963, allocations: 267.1 kB / 292.3 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.903/1.903, allocations: 169.5 MB / 0.501 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0007827/0.0007827, allocations: 20.73 kB / 0.5993 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3884, allocations: 88.54 MB / 0.6858 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.01023/0.3987, allocations: 4.19 MB / 0.6898 GB, free: 10.9 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01216/0.411, allocations: 4.393 MB / 0.6941 GB, free: 6.516 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.4132, allocations: 19.88 kB / 0.6942 GB, free: 6.496 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0296/0.4428, allocations: 14.39 MB / 0.7082 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.02891/0.4718, allocations: 14.65 MB / 0.7225 GB, free: 9.406 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00321/0.4752, allocations: 435.2 kB / 0.7229 GB, free: 8.988 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0193/0.4945, allocations: 7.223 MB / 0.73 GB, free: 1.754 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008611/0.4955, allocations: 231 kB / 0.7302 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01739/0.5129, allocations: 5.057 MB / 0.7351 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02879/0.5418, allocations: 13.76 MB / 0.7486 GB, free: 14.67 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001664/0.5436, allocations: 32 kB / 0.7486 GB, free: 14.64 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003932/0.5475, allocations: 0.5267 MB / 0.7491 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.008261/0.5559, allocations: 4.285 MB / 0.7533 GB, free: 9.809 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.009858/0.5658, allocations: 4.193 MB / 0.7574 GB, free: 5.566 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 1.5/2.066, allocations: 7.321 MB / 0.7646 GB, free: 51.8 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.301e-05/2.066, allocations: 1.547 kB / 0.7646 GB, free: 51.8 MB / 0.545 GB Notification: Performance of FrontEnd: time 8.225e-06/2.066, allocations: 0 / 0.7646 GB, free: 51.8 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0009711/2.067, allocations: 1.375 kB / 0.7646 GB, free: 51.8 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.06271/2.13, allocations: 12.47 MB / 0.7767 GB, free: 44.33 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001171/2.13, allocations: 10.48 kB / 0.7767 GB, free: 44.33 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01631/2.147, allocations: 2.304 MB / 0.779 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01803/2.165, allocations: 5.97 MB / 0.7848 GB, free: 39.97 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002795/2.165, allocations: 127.7 kB / 0.7849 GB, free: 39.88 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005012/2.166, allocations: 63.19 kB / 0.785 GB, free: 39.88 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03019/2.196, allocations: 6.518 MB / 0.7914 GB, free: 39.75 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.615e-05/2.196, allocations: 7.922 kB / 0.7914 GB, free: 39.75 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002761/2.196, allocations: 23.66 kB / 0.7914 GB, free: 39.75 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.023e-05/2.196, allocations: 13.31 kB / 0.7914 GB, free: 39.75 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02527/2.222, allocations: 6.518 MB / 0.7978 GB, free: 39.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04514/2.267, allocations: 7.917 MB / 0.8055 GB, free: 35.96 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01676/2.284, allocations: 6.628 MB / 0.812 GB, free: 34.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005038/2.289, allocations: 6.084 MB / 0.8179 GB, free: 28.62 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002905/2.292, allocations: 2.196 MB / 0.8201 GB, free: 26.04 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007551/2.3, allocations: 6.202 MB / 0.8261 GB, free: 20.05 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 8.736e-06/2.3, allocations: 2 kB / 0.8261 GB, free: 20.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=79): time 0.04731/2.347, allocations: 26.16 MB / 0.8517 GB, free: 9.84 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002026/2.347, allocations: 145.2 kB / 0.8518 GB, free: 9.668 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1/2.447, allocations: 20.83 MB / 0.8722 GB, free: 5.004 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0004825/2.448, allocations: 41.7 kB / 0.8722 GB, free: 4.957 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.02729/2.475, allocations: 8.719 MB / 0.8807 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001079/2.477, allocations: 267.2 kB / 0.881 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/2.477, allocations: 73.69 kB / 0.881 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0003041/2.477, allocations: 341.9 kB / 0.8814 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/2.488, allocations: 6.051 MB / 0.8873 GB, free: 5.531 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01118/2.499, allocations: 6.231 MB / 0.8934 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.914/6.414, allocations: 494.8 MB / 1.377 GB, free: 241.4 MB / 0.7482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/6.414, allocations: 0 / 1.377 GB, free: 241.4 MB / 0.7482 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01497/6.429, allocations: 19.93 MB / 1.396 GB, free: 224.9 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 6.56e-05/6.429, allocations: 45.41 kB / 1.396 GB, free: 224.8 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/6.429, allocations: 8 kB / 1.396 GB, free: 224.8 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006872/6.43, allocations: 143 kB / 1.396 GB, free: 224.7 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009847/6.431, allocations: 215.4 kB / 1.396 GB, free: 224.5 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004111/6.435, allocations: 2.002 MB / 1.398 GB, free: 222.6 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004467/6.44, allocations: 135.9 kB / 1.398 GB, free: 222.5 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/6.44, allocations: 47.72 kB / 1.399 GB, free: 222.4 MB / 0.7482 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery.EBou:VARIABLE(start = 0.6850000000000001 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 14 (SLP_July.nextEventScaled,SLP_July.nextEvent,$PRE.SLP_July.nextEvent,SLP_July.last,SLP_July.b,SLP_July.a,weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,$whenCondition2,radiation.outsidePolarCircle,Eload.local_reset,EGrid.local_reset,EField.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.008522/6.448, allocations: 4.919 MB / 1.403 GB, free: 218.3 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003185/6.451, allocations: 1.723 MB / 1.405 GB, free: 216.6 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01715/6.468, allocations: 20.37 MB / 1.425 GB, free: 197.6 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/6.469, allocations: 8 kB / 1.425 GB, free: 197.5 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/6.469, allocations: 0 / 1.425 GB, free: 197.5 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/6.469, allocations: 3.984 kB / 1.425 GB, free: 197.5 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02516/6.494, allocations: 24.91 MB / 1.449 GB, free: 172.6 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/6.494, allocations: 3.938 kB / 1.449 GB, free: 172.6 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009535/6.495, allocations: 179.7 kB / 1.449 GB, free: 172.4 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007235/6.496, allocations: 132.7 kB / 1.45 GB, free: 172.3 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.638e-05/6.496, allocations: 27.98 kB / 1.45 GB, free: 172.3 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002824/6.498, allocations: 1.787 MB / 1.451 GB, free: 170.3 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/6.498, allocations: 0 / 1.451 GB, free: 170.3 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0214/6.52, allocations: 29.52 MB / 1.48 GB, free: 140.8 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005226/6.525, allocations: 1.522 MB / 1.482 GB, free: 139.2 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001433/6.527, allocations: 23.98 kB / 1.482 GB, free: 139.2 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/6.528, allocations: 73.19 kB / 1.482 GB, free: 139.1 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/6.528, allocations: 64.91 kB / 1.482 GB, free: 139 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.362e-05/6.529, allocations: 35.92 kB / 1.482 GB, free: 139 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.02596/6.555, allocations: 14.57 MB / 1.496 GB, free: 124.6 MB / 0.7482 GB Notification: Performance of sort global known variables: time 6.32e-07/6.555, allocations: 0 / 1.496 GB, free: 124.6 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.00349/6.558, allocations: 0.6649 MB / 1.497 GB, free: 123.9 MB / 0.7482 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged,EField.y,EGrid.y,Eload.y) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,SLP_July.nextEvent,SLP_July.nextEventScaled) * Number of discrete states: 7 (weatherData.weatherData.conTim.tNext,SLP_July.nextEvent,SLP_July.last,SLP_July.nextEventScaled,SLP_July.b,SLP_July.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001419/6.559, allocations: 0.5372 MB / 1.497 GB, free: 123.6 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.007616/6.567, allocations: 12.45 MB / 1.509 GB, free: 111.1 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/6.567, allocations: 0 / 1.509 GB, free: 111.1 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.003684/6.571, allocations: 6.35 MB / 1.516 GB, free: 104.7 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005549/6.576, allocations: 0.5492 MB / 1.516 GB, free: 104.2 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05017/6.627, allocations: 40.62 MB / 1.556 GB, free: 63.5 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009456/6.636, allocations: 7.599 MB / 1.563 GB, free: 55.86 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006156/6.637, allocations: 95.38 kB / 1.563 GB, free: 55.77 MB / 0.7482 GB Notification: Performance of SimCode: time 1.303e-06/6.637, allocations: 4 kB / 1.563 GB, free: 55.77 MB / 0.7482 GB Notification: Performance of Templates: time 7.577/14.21, allocations: 2.23 GB / 3.793 GB, free: 81.76 MB / 0.7638 GB make -j1 -f BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.makefile make -j1 -f BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystemCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystemCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystemCalcHelperMain.o] Error 1