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.01398/0.01398, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.003227/0.003227, allocations: 193 kB / 16.79 MB, free: 6.254 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.607/2.607, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003408/0.003408, allocations: 282.8 kB / 290.9 MB, free: 2.074 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.747/1.747, allocations: 169.3 MB / 0.4984 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002753/0.002753, allocations: 86.77 kB / 0.5951 GB, free: 28.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2683, allocations: 86.99 MB / 0.6801 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.00604/0.2744, allocations: 1.986 MB / 0.682 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.2771, allocations: 0.8598 MB / 0.6829 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.2773, allocations: 4 kB / 0.6829 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004049/0.2778, allocations: 50.97 kB / 0.6829 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.278, allocations: 39.69 kB / 0.6829 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.2785, allocations: 75.86 kB / 0.683 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.2789, allocations: 183.3 kB / 0.6832 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.2791, allocations: 27.91 kB / 0.6832 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.2793, allocations: 75.66 kB / 0.6833 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.2795, allocations: 79.66 kB / 0.6834 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.2796, allocations: 8.812 kB / 0.6834 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.2798, allocations: 59.95 kB / 0.6834 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.147e-05/0.2799, allocations: 32.39 kB / 0.6835 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.28, allocations: 63.66 kB / 0.6835 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.2804, allocations: 120.8 kB / 0.6836 GB, free: 13.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.2804, allocations: 0 / 0.6836 GB, free: 13.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.2804, allocations: 0 / 0.6836 GB, free: 13.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2805, allocations: 4.969 kB / 0.6836 GB, free: 13.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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.00149/0.2819, allocations: 0.5087 MB / 0.6841 GB, free: 12.96 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.781e-05/0.282, allocations: 8.031 kB / 0.6842 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.2822, allocations: 16.75 kB / 0.6842 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005098/0.2827, allocations: 231.9 kB / 0.6844 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.2827, allocations: 8.375 kB / 0.6844 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-05/0.2828, allocations: 8.375 kB / 0.6844 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.2833, allocations: 127.8 kB / 0.6845 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.2834, allocations: 7.906 kB / 0.6845 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.2834, allocations: 4 kB / 0.6845 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.2834, allocations: 4 kB / 0.6845 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/0.284, allocations: 103.9 kB / 0.6846 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.2855, allocations: 412.5 kB / 0.685 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005816/0.2861, allocations: 134.5 kB / 0.6852 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000348/0.2865, allocations: 72.81 kB / 0.6852 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000853/0.2873, allocations: 449.4 kB / 0.6857 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004867/0.2878, allocations: 133.4 kB / 0.6858 GB, free: 11.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 2.104e-06/0.2879, allocations: 0 / 0.6858 GB, free: 11.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.001043/0.2889, allocations: 229.3 kB / 0.686 GB, free: 10.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.237e-05/0.289, allocations: 55.41 kB / 0.6861 GB, free: 10.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.2893, allocations: 184.1 kB / 0.6862 GB, free: 10.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.341e-05/0.2894, allocations: 33.7 kB / 0.6863 GB, free: 10.55 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.2896, allocations: 112 kB / 0.6864 GB, free: 10.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.958e-05/0.2897, allocations: 59.19 kB / 0.6864 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.2898, allocations: 37.7 kB / 0.6865 GB, free: 10.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002494/0.2901, allocations: 334.8 kB / 0.6868 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003138/0.2904, allocations: 72.8 kB / 0.6869 GB, free: 9.922 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.2908, allocations: 90.47 kB / 0.6869 GB, free: 9.824 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.379/4.67, allocations: 378.8 MB / 1.057 GB, free: 258.2 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/4.67, allocations: 0 / 1.057 GB, free: 258.2 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001013/4.671, allocations: 249 kB / 1.057 GB, free: 258.2 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/4.671, allocations: 34.2 kB / 1.057 GB, free: 258.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/4.671, allocations: 4.062 kB / 1.057 GB, free: 258.1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.477e-05/4.671, allocations: 3.047 kB / 1.057 GB, free: 258.1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000346/4.671, allocations: 43.25 kB / 1.057 GB, free: 258.1 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/4.671, allocations: 3.891 kB / 1.057 GB, free: 258.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/4.672, allocations: 23.72 kB / 1.057 GB, free: 258.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.41e-05/4.672, allocations: 6.531 kB / 1.057 GB, free: 258.1 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.0003566/4.672, allocations: 155 kB / 1.057 GB, free: 258 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/4.672, allocations: 20.88 kB / 1.057 GB, free: 258 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009288/4.673, allocations: 236.2 kB / 1.058 GB, free: 258 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/4.673, allocations: 6.438 kB / 1.058 GB, free: 258 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/4.673, allocations: 0 / 1.058 GB, free: 258 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/4.673, allocations: 4.516 kB / 1.058 GB, free: 258 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003484/4.674, allocations: 252.6 kB / 1.058 GB, free: 257.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/4.674, allocations: 0.6562 kB / 1.058 GB, free: 257.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/4.674, allocations: 43.16 kB / 1.058 GB, free: 257.7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/4.674, allocations: 0 / 1.058 GB, free: 257.7 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/4.674, allocations: 3.188 kB / 1.058 GB, free: 257.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.084e-06/4.674, allocations: 2.781 kB / 1.058 GB, free: 257.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/4.674, allocations: 0 / 1.058 GB, free: 257.7 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/4.675, allocations: 317 kB / 1.058 GB, free: 257.6 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/4.675, allocations: 115.5 kB / 1.058 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.191e-05/4.675, allocations: 0.5156 kB / 1.058 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/4.675, allocations: 13.91 kB / 1.058 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/4.676, allocations: 27.33 kB / 1.058 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/4.676, allocations: 7.953 kB / 1.058 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001812/4.676, allocations: 133.8 kB / 1.058 GB, free: 257.4 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.1e-07/4.676, allocations: 0 / 1.058 GB, free: 257.4 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004716/4.676, allocations: 56.02 kB / 1.059 GB, free: 257.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.0002518/4.677, allocations: 123.8 kB / 1.059 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007886/4.677, allocations: 219.8 kB / 1.059 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/4.677, allocations: 4.125 kB / 1.059 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000337/4.678, allocations: 85.59 kB / 1.059 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/4.678, allocations: 30.39 kB / 1.059 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/4.68, allocations: 0.614 MB / 1.06 GB, free: 256.7 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/4.68, allocations: 0.7301 MB / 1.06 GB, free: 256 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/4.68, allocations: 19.06 kB / 1.06 GB, free: 256 MB / 0.7169 GB Notification: Performance of SimCode: time 3.51e-07/4.68, allocations: 0 / 1.06 GB, free: 256 MB / 0.7169 GB Notification: Performance of Templates: time 0.00891/4.689, allocations: 2.661 MB / 1.063 GB, free: 255.8 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