Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009519/0.0009519, allocations: 98.88 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.001158/0.001158, allocations: 182.1 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.367/1.367, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001761/0.001761, allocations: 279.1 kB / 292.3 MB, free: 1.812 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.009/1.009, allocations: 169.5 MB / 0.501 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004333, allocations: 16.3 kB / 0.5993 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1659, allocations: 88.55 MB / 0.6858 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.00203/0.168, allocations: 1.649 MB / 0.6874 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.1692, allocations: 0.84 MB / 0.6882 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.515e-05/0.1693, allocations: 4 kB / 0.6882 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.1695, allocations: 49.16 kB / 0.6882 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.37e-05/0.1696, allocations: 46.88 kB / 0.6883 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.1698, allocations: 71.86 kB / 0.6884 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.17, allocations: 179.3 kB / 0.6885 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.652e-05/0.1701, allocations: 29.47 kB / 0.6886 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1702, allocations: 76.64 kB / 0.6886 GB, free: 12.15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.1704, allocations: 84.09 kB / 0.6887 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.1704, allocations: 8 kB / 0.6887 GB, free: 12.06 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.1705, allocations: 53.12 kB / 0.6888 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/0.1705, allocations: 23.89 kB / 0.6888 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.457e-05/0.1706, allocations: 93.3 kB / 0.6889 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.1708, allocations: 129.1 kB / 0.689 GB, free: 11.76 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1708, allocations: 0 / 0.689 GB, free: 11.76 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1708, allocations: 0 / 0.689 GB, free: 11.76 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1708, allocations: 0 / 0.689 GB, free: 11.76 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007622/0.1716, allocations: 487.7 kB / 0.6895 GB, free: 11.23 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.1716, allocations: 14.12 kB / 0.6895 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.1717, allocations: 20.69 kB / 0.6895 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.1719, allocations: 239.8 kB / 0.6897 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.1719, allocations: 4.375 kB / 0.6897 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.172, allocations: 8.375 kB / 0.6897 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.1723, allocations: 142.3 kB / 0.6899 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1723, allocations: 4 kB / 0.6899 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.1723, allocations: 4 kB / 0.6899 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.1723, allocations: 4 kB / 0.6899 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.1726, allocations: 110.1 kB / 0.69 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.1732, allocations: 422.9 kB / 0.6904 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.1736, allocations: 144.5 kB / 0.6905 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.1737, allocations: 78.88 kB / 0.6906 GB, free: 9.973 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005651/0.1743, allocations: 453.4 kB / 0.691 GB, free: 9.438 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.1746, allocations: 131.5 kB / 0.6912 GB, free: 9.297 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.813e-06/0.1747, allocations: 3.938 kB / 0.6912 GB, free: 9.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006084/0.1753, allocations: 247.5 kB / 0.6914 GB, free: 9.047 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.1753, allocations: 55.41 kB / 0.6915 GB, free: 8.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.1755, allocations: 184.1 kB / 0.6916 GB, free: 8.793 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.1755, allocations: 33.7 kB / 0.6917 GB, free: 8.754 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.206e-05/0.1756, allocations: 108.1 kB / 0.6918 GB, free: 8.645 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.602e-05/0.1756, allocations: 51.27 kB / 0.6918 GB, free: 8.594 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.1757, allocations: 25.7 kB / 0.6918 GB, free: 8.562 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1758, allocations: 330.8 kB / 0.6922 GB, free: 8.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.176, allocations: 84.72 kB / 0.6922 GB, free: 8.145 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.1762, allocations: 98.47 kB / 0.6923 GB, free: 8.039 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.847/3.024, allocations: 445.4 MB / 1.127 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/3.024, allocations: 0 / 1.127 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006156/3.024, allocations: 268.3 kB / 1.128 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.786e-05/3.024, allocations: 33.7 kB / 1.128 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/3.024, allocations: 0 / 1.128 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/3.024, allocations: 4 kB / 1.128 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/3.025, allocations: 39.97 kB / 1.128 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/3.025, allocations: 0 / 1.128 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/3.025, allocations: 29.67 kB / 1.128 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/3.025, allocations: 15.3 kB / 1.128 GB, free: 180.6 MB / 0.7169 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: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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.0002233/3.025, allocations: 153.7 kB / 1.128 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/3.025, allocations: 15.19 kB / 1.128 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005938/3.026, allocations: 260.1 kB / 1.128 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/3.026, allocations: 4 kB / 1.128 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/3.026, allocations: 0 / 1.128 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/3.026, allocations: 0 / 1.128 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/3.026, allocations: 256.5 kB / 1.128 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/3.026, allocations: 4 kB / 1.128 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/3.026, allocations: 44.03 kB / 1.128 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/3.026, allocations: 4 kB / 1.128 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/3.026, allocations: 4.297 kB / 1.128 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/3.026, allocations: 0 / 1.128 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/3.026, allocations: 8.672 kB / 1.128 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006121/3.027, allocations: 326.9 kB / 1.129 GB, free: 179.7 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.334e-05/3.027, allocations: 113 kB / 1.129 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.41e-05/3.027, allocations: 7.312 kB / 1.129 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/3.027, allocations: 15.98 kB / 1.129 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/3.027, allocations: 19.28 kB / 1.129 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/3.027, allocations: 8.062 kB / 1.129 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.51e-05/3.027, allocations: 132.6 kB / 1.129 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/3.027, allocations: 0 / 1.129 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002753/3.028, allocations: 54.69 kB / 1.129 GB, free: 179.4 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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.0001856/3.028, allocations: 120.3 kB / 1.129 GB, free: 179.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004522/3.028, allocations: 230.9 kB / 1.129 GB, free: 179.1 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/3.028, allocations: 0 / 1.129 GB, free: 179.1 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001879/3.029, allocations: 97.38 kB / 1.13 GB, free: 179 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/3.029, allocations: 31.98 kB / 1.13 GB, free: 179 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009601/3.03, allocations: 0.6837 MB / 1.13 GB, free: 178.3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001579/3.03, allocations: 0.7245 MB / 1.131 GB, free: 177.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.448e-05/3.03, allocations: 25.12 kB / 1.131 GB, free: 177.6 MB / 0.7169 GB Notification: Performance of SimCode: time 7.31e-07/3.03, allocations: 0 / 1.131 GB, free: 177.6 MB / 0.7169 GB Notification: Performance of Templates: time 0.004678/3.035, allocations: 2.637 MB / 1.134 GB, free: 175 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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 OMCppBuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimpleCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimpleCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimpleCalcHelperMain.o] Error 1