Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01557/0.01557, allocations: 100.8 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.004003/0.004003, allocations: 192.1 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 2.322/2.322, allocations: 222.9 MB / 240.4 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002406/0.002405, allocations: 274.2 kB / 290.9 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.138/1.138, allocations: 169.2 MB / 0.4984 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002562, allocations: 88.25 kB / 0.5951 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2966, allocations: 86.98 MB / 0.6801 GB, free: 1.176 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.006419/0.3031, allocations: 2.664 MB / 0.6827 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003245/0.3065, allocations: 1.092 MB / 0.6837 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002972/0.3068, allocations: 7.938 kB / 0.6838 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004131/0.3073, allocations: 63.83 kB / 0.6838 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000426/0.3077, allocations: 115.2 kB / 0.6839 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007014/0.3084, allocations: 151.8 kB / 0.6841 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000733/0.3092, allocations: 486.1 kB / 0.6845 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.3094, allocations: 48.7 kB / 0.6846 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004916/0.3099, allocations: 219 kB / 0.6848 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004938/0.3104, allocations: 211.1 kB / 0.685 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.96e-05/0.3105, allocations: 16 kB / 0.685 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002729/0.3108, allocations: 63.95 kB / 0.6851 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.311, allocations: 63.66 kB / 0.6851 GB, free: 11.99 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003092/0.3113, allocations: 175 kB / 0.6853 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000534/0.3118, allocations: 299.3 kB / 0.6856 GB, free: 11.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/0.3119, allocations: 0 / 0.6856 GB, free: 11.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3119, allocations: 0 / 0.6856 GB, free: 11.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3119, allocations: 0 / 0.6856 GB, free: 11.52 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.002659/0.3146, allocations: 0.8016 MB / 0.6864 GB, free: 10.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.824e-05/0.3147, allocations: 12.03 kB / 0.6864 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.3148, allocations: 40.47 kB / 0.6864 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006666/0.3155, allocations: 339.9 kB / 0.6867 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.3156, allocations: 12.81 kB / 0.6867 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.724e-05/0.3157, allocations: 24.38 kB / 0.6868 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.3168, allocations: 333 kB / 0.6871 GB, free: 9.867 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/0.3168, allocations: 0 / 0.6871 GB, free: 9.867 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.399e-05/0.3169, allocations: 12 kB / 0.6871 GB, free: 9.855 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.3169, allocations: 4 kB / 0.6871 GB, free: 9.852 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3181, allocations: 300.4 kB / 0.6874 GB, free: 9.559 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.3199, allocations: 0.7811 MB / 0.6882 GB, free: 8.723 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.3214, allocations: 389.5 kB / 0.6885 GB, free: 8.324 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006885/0.3221, allocations: 209.5 kB / 0.6887 GB, free: 8.113 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009339/0.323, allocations: 453.5 kB / 0.6892 GB, free: 7.578 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.3242, allocations: 328.6 kB / 0.6895 GB, free: 7.238 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 4.238e-06/0.3242, allocations: 0 / 0.6895 GB, free: 7.238 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.002873/0.3271, allocations: 0.6082 MB / 0.6901 GB, free: 6.625 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.643e-05/0.3272, allocations: 85.11 kB / 0.6901 GB, free: 6.523 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005266/0.3278, allocations: 308.4 kB / 0.6904 GB, free: 6.203 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-05/0.3279, allocations: 41.7 kB / 0.6905 GB, free: 6.156 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.3281, allocations: 160.9 kB / 0.6906 GB, free: 5.996 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.3283, allocations: 142 kB / 0.6908 GB, free: 5.855 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002356/0.3285, allocations: 90.09 kB / 0.6909 GB, free: 5.762 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.3288, allocations: 350.8 kB / 0.6912 GB, free: 5.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006975/0.3295, allocations: 215.3 kB / 0.6914 GB, free: 5.195 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007472/0.3303, allocations: 254.3 kB / 0.6916 GB, free: 4.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 10.07/10.4, allocations: 0.866 GB / 1.558 GB, free: 32.88 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.311e-05/10.4, allocations: 4 kB / 1.558 GB, free: 32.88 MB / 0.7169 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002002/10.4, allocations: 0.6397 MB / 1.558 GB, free: 32.39 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/10.4, allocations: 89.09 kB / 1.558 GB, free: 32.29 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/10.4, allocations: 0 / 1.558 GB, free: 32.29 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.753e-05/10.4, allocations: 4.797 kB / 1.558 GB, free: 32.28 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008406/10.4, allocations: 114.1 kB / 1.558 GB, free: 32.18 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.634e-05/10.4, allocations: 4 kB / 1.558 GB, free: 32.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008421/10.4, allocations: 71.11 kB / 1.559 GB, free: 32.14 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.69e-05/10.4, allocations: 23.3 kB / 1.559 GB, free: 32.12 MB / 0.7169 GB Warning: Assuming fixed start value for the following 8 variables: battery_C20.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_1C.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.EAva:VARIABLE(start = 0.315 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_1C.EBou:VARIABLE(start = 0.6850000000000001 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery_C20.EAva:VARIABLE(start = 0.315 * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_C20.EBou:VARIABLE(start = 0.6850000000000001 * battery_C20.SOC_start * battery_C20.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: 6 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.load_1C.count,$PRE.load_1C.T_start,$PRE.gain.count,$PRE.gain.T_start,load_1C.count,load_1C.T_start,gain.count,gain.T_start,$whenCondition2,$whenCondition3,$PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * 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.0005679/10.4, allocations: 199.8 kB / 1.559 GB, free: 31.95 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/10.4, allocations: 40.94 kB / 1.559 GB, free: 31.93 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/10.41, allocations: 0.6284 MB / 1.559 GB, free: 31.47 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/10.41, allocations: 4 kB / 1.559 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/10.41, allocations: 3.938 kB / 1.559 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/10.41, allocations: 7.984 kB / 1.559 GB, free: 31.45 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006324/10.41, allocations: 435.2 kB / 1.56 GB, free: 31.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/10.41, allocations: 0 / 1.56 GB, free: 31.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007343/10.41, allocations: 105.9 kB / 1.56 GB, free: 30.99 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/10.41, allocations: 8 kB / 1.56 GB, free: 30.98 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-05/10.41, allocations: 16.48 kB / 1.56 GB, free: 30.97 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/10.41, allocations: 4 kB / 1.56 GB, free: 30.97 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/10.41, allocations: 3.938 kB / 1.56 GB, free: 30.96 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/10.41, allocations: 0.7818 MB / 1.561 GB, free: 30.25 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/10.41, allocations: 162.5 kB / 1.561 GB, free: 30.08 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.386e-05/10.41, allocations: 14.81 kB / 1.561 GB, free: 30.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/10.41, allocations: 44.72 kB / 1.561 GB, free: 30.02 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/10.41, allocations: 55.92 kB / 1.561 GB, free: 29.97 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.702e-05/10.41, allocations: 27.98 kB / 1.561 GB, free: 29.94 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002315/10.41, allocations: 211.1 kB / 1.561 GB, free: 29.74 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/10.41, allocations: 0 / 1.561 GB, free: 29.74 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005917/10.41, allocations: 112 kB / 1.561 GB, free: 29.63 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (battery_1C.EAva,battery_1C.EBou,battery_1C.E_charged,battery_1C.E_discharged,battery_C20.EAva,battery_C20.EBou,battery_C20.E_charged,battery_C20.E_discharged) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$whenCondition1,load_C20.T_start,load_C20.count) * Number of discrete states: 3 (load_C20.count,gain.count,load_1C.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0002556/10.41, allocations: 136 kB / 1.561 GB, free: 29.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00147/10.41, allocations: 0.6309 MB / 1.562 GB, free: 28.83 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/10.41, allocations: 0 / 1.562 GB, free: 28.83 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0006858/10.41, allocations: 260.7 kB / 1.562 GB, free: 28.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006322/10.41, allocations: 69.92 kB / 1.562 GB, free: 28.51 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/10.42, allocations: 1.259 MB / 1.564 GB, free: 27.28 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/10.42, allocations: 0.8015 MB / 1.564 GB, free: 26.45 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/10.42, allocations: 51.42 kB / 1.564 GB, free: 26.39 MB / 0.7169 GB Notification: Performance of SimCode: time 4.81e-07/10.42, allocations: 4 kB / 1.564 GB, free: 26.39 MB / 0.7169 GB Notification: Performance of Templates: time 0.01115/10.43, allocations: 5.958 MB / 1.57 GB, free: 20.52 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.makefile make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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.BatteryComplexCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplexCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplexCalcHelperMain.o] Error 1