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.0008404/0.0008405, allocations: 92.08 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.0011/0.0011, allocations: 178.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 1.319/1.319, allocations: 223.2 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001709/0.001709, allocations: 281.9 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 0.9117/0.9117, allocations: 169.5 MB / 0.501 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004195/0.0004195, allocations: 15.84 kB / 0.5993 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1931, allocations: 88.55 MB / 0.6858 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.002874/0.1961, allocations: 2.311 MB / 0.688 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.1979, allocations: 1.067 MB / 0.6891 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1981, allocations: 14.53 kB / 0.6891 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000241/0.1983, allocations: 75.69 kB / 0.6892 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.1986, allocations: 99.23 kB / 0.6892 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000423/0.199, allocations: 152.9 kB / 0.6894 GB, free: 11.3 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004438/0.1995, allocations: 486.2 kB / 0.6899 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.1996, allocations: 47.38 kB / 0.6899 GB, free: 10.78 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002782/0.1999, allocations: 210.4 kB / 0.6901 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002974/0.2002, allocations: 211.1 kB / 0.6903 GB, free: 10.37 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.397e-05/0.2002, allocations: 16 kB / 0.6903 GB, free: 10.35 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.2004, allocations: 63.95 kB / 0.6904 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.764e-05/0.2005, allocations: 63.66 kB / 0.6904 GB, free: 10.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.2007, allocations: 198.6 kB / 0.6906 GB, free: 10.03 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.201, allocations: 287.3 kB / 0.6909 GB, free: 9.746 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.201, allocations: 0 / 0.6909 GB, free: 9.746 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.201, allocations: 0 / 0.6909 GB, free: 9.746 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.2011, allocations: 0 / 0.6909 GB, free: 9.746 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.001717/0.2028, allocations: 0.7613 MB / 0.6916 GB, free: 8.926 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2028, allocations: 8.031 kB / 0.6917 GB, free: 8.918 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.53e-05/0.2029, allocations: 41.12 kB / 0.6917 GB, free: 8.879 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.2033, allocations: 339.8 kB / 0.692 GB, free: 8.512 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2034, allocations: 20.81 kB / 0.692 GB, free: 8.492 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.2034, allocations: 24.38 kB / 0.6921 GB, free: 8.469 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000745/0.2042, allocations: 345 kB / 0.6924 GB, free: 8.121 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.2042, allocations: 4 kB / 0.6924 GB, free: 8.117 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.2042, allocations: 8 kB / 0.6924 GB, free: 8.109 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2043, allocations: 4 kB / 0.6924 GB, free: 8.105 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008716/0.2051, allocations: 328.3 kB / 0.6927 GB, free: 7.785 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.2063, allocations: 0.7773 MB / 0.6935 GB, free: 6.953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2074, allocations: 422.2 kB / 0.6939 GB, free: 6.523 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005704/0.208, allocations: 225.6 kB / 0.6941 GB, free: 6.297 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006602/0.2086, allocations: 457.4 kB / 0.6945 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007741/0.2094, allocations: 356.5 kB / 0.6949 GB, free: 5.391 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.713e-06/0.2094, allocations: 0 / 0.6949 GB, free: 5.391 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.001739/0.2112, allocations: 0.6573 MB / 0.6955 GB, free: 4.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.2113, allocations: 85.11 kB / 0.6956 GB, free: 4.629 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/0.2116, allocations: 312.5 kB / 0.6959 GB, free: 4.305 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.149e-05/0.2117, allocations: 37.7 kB / 0.6959 GB, free: 4.262 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.2118, allocations: 156.9 kB / 0.6961 GB, free: 4.105 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.2119, allocations: 138 kB / 0.6962 GB, free: 3.969 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.25e-05/0.212, allocations: 53.69 kB / 0.6963 GB, free: 3.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.2121, allocations: 350.8 kB / 0.6966 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005259/0.2127, allocations: 221.6 kB / 0.6968 GB, free: 3.34 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/0.2132, allocations: 266.4 kB / 0.6971 GB, free: 3.066 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.993/7.206, allocations: 1 GB / 1.697 GB, free: 163.9 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/7.206, allocations: 0 / 1.697 GB, free: 163.9 MB / 0.7169 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001407/7.208, allocations: 0.672 MB / 1.698 GB, free: 163.4 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.484e-05/7.208, allocations: 92.36 kB / 1.698 GB, free: 163.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/7.208, allocations: 0 / 1.698 GB, free: 163.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/7.208, allocations: 4 kB / 1.698 GB, free: 163.3 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005274/7.208, allocations: 125.9 kB / 1.698 GB, free: 163.2 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/7.208, allocations: 4 kB / 1.698 GB, free: 163.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000525/7.209, allocations: 76.09 kB / 1.698 GB, free: 163.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-05/7.209, allocations: 23.42 kB / 1.698 GB, free: 163.1 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.0003054/7.209, allocations: 198.3 kB / 1.699 GB, free: 162.9 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/7.209, allocations: 36.78 kB / 1.699 GB, free: 162.9 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/7.211, allocations: 0.6614 MB / 1.699 GB, free: 162.4 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/7.211, allocations: 8.938 kB / 1.699 GB, free: 162.4 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/7.211, allocations: 3.938 kB / 1.699 GB, free: 162.4 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/7.211, allocations: 3.984 kB / 1.699 GB, free: 162.4 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004677/7.211, allocations: 447.3 kB / 1.7 GB, free: 162 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/7.211, allocations: 0 / 1.7 GB, free: 162 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005266/7.212, allocations: 115.3 kB / 1.7 GB, free: 161.9 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/7.212, allocations: 0 / 1.7 GB, free: 161.9 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/7.212, allocations: 19.42 kB / 1.7 GB, free: 161.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/7.212, allocations: 0 / 1.7 GB, free: 161.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/7.212, allocations: 3.938 kB / 1.7 GB, free: 161.9 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/7.214, allocations: 0.8417 MB / 1.701 GB, free: 161.3 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/7.214, allocations: 158.3 kB / 1.701 GB, free: 161.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.983e-05/7.214, allocations: 17.3 kB / 1.701 GB, free: 161.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/7.214, allocations: 51.66 kB / 1.701 GB, free: 161.1 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/7.215, allocations: 55.88 kB / 1.701 GB, free: 161.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/7.215, allocations: 21.92 kB / 1.701 GB, free: 161 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000161/7.215, allocations: 212.2 kB / 1.701 GB, free: 160.9 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.31e-07/7.215, allocations: 0 / 1.701 GB, free: 160.9 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003785/7.215, allocations: 121.7 kB / 1.701 GB, free: 160.8 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.0001854/7.215, allocations: 135.1 kB / 1.701 GB, free: 160.6 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001117/7.216, allocations: 0.6685 MB / 1.702 GB, free: 160 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/7.216, allocations: 0 / 1.702 GB, free: 160 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005099/7.217, allocations: 272.8 kB / 1.702 GB, free: 159.8 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/7.217, allocations: 69.33 kB / 1.702 GB, free: 159.7 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/7.219, allocations: 1.384 MB / 1.704 GB, free: 158.3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/7.219, allocations: 0.8015 MB / 1.704 GB, free: 157.5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/7.22, allocations: 51.42 kB / 1.705 GB, free: 157.4 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/7.22, allocations: 3.828 kB / 1.705 GB, free: 157.4 MB / 0.7169 GB Notification: Performance of Templates: time 0.008503/7.228, allocations: 5.915 MB / 1.71 GB, free: 151.6 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