Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008169/0.000817, allocations: 99.5 kB / 16.38 MB, free: 5.961 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.0009295/0.0009296, allocations: 186.1 kB / 17.27 MB, free: 5.84 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.57/1.57, allocations: 223.2 MB / 241.3 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.23/0.23, allocations: 8.094 MB / 300.5 MB, free: 2.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003847, allocations: 12 kB / 363.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1461, allocations: 52.51 MB / 416 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003483/0.1496, allocations: 1.987 MB / 418 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1509, allocations: 490.5 kB / 418.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.1512, allocations: 7.938 kB / 418.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005238/0.1518, allocations: 83.62 kB / 418.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003789/0.1522, allocations: 67.58 kB / 418.6 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.1525, allocations: 67.88 kB / 418.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004652/0.153, allocations: 259.1 kB / 418.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002457/0.1533, allocations: 81.33 kB / 419 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.1535, allocations: 91.64 kB / 419.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.1537, allocations: 115.5 kB / 419.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.1538, allocations: 12 kB / 419.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.1539, allocations: 55.98 kB / 419.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1541, allocations: 91.69 kB / 419.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.408e-05/0.1542, allocations: 69.58 kB / 419.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.1546, allocations: 307.5 kB / 419.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1546, allocations: 7.938 kB / 419.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1546, allocations: 0 / 419.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1546, allocations: 0 / 419.8 MB, free: 4.934 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001706/0.1563, allocations: 0.8145 MB / 420.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.1564, allocations: 8.031 kB / 420.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.686e-05/0.1564, allocations: 35.58 kB / 420.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.1569, allocations: 338.4 kB / 420.9 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.157, allocations: 16.27 kB / 421 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.157, allocations: 16 kB / 421 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.1575, allocations: 286.5 kB / 421.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1575, allocations: 0 / 421.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.1576, allocations: 15.98 kB / 421.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.1576, allocations: 4 kB / 421.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003879/0.158, allocations: 204 kB / 421.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1594, allocations: 0.8533 MB / 422.3 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006183/0.16, allocations: 307.7 kB / 422.6 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.1603, allocations: 156.4 kB / 422.8 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.794e-05/0.1604, allocations: 3.984 kB / 422.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.1604, allocations: 46.52 kB / 422.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.1604, allocations: 3.938 kB / 422.8 MB, free: 1.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007063/0.1612, allocations: 289.5 kB / 423.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.1613, allocations: 205.6 kB / 423.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/0.1617, allocations: 370.7 kB / 423.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.1618, allocations: 33.7 kB / 423.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.1619, allocations: 172 kB / 423.9 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.385e-05/0.162, allocations: 43.38 kB / 423.9 MB, free: 488 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/0.162, allocations: 4 kB / 423.9 MB, free: 484 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1621, allocations: 330.8 kB / 424.3 MB, free: 144 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.1623, allocations: 87.94 kB / 424.3 MB, free: 56 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2937/0.456, allocations: 156 kB / 424.5 MB, free: 41.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.4563, allocations: 54.83 kB / 424.5 MB, free: 41.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4563, allocations: 1.562 kB / 424.5 MB, free: 41.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006276/0.457, allocations: 217.6 kB / 424.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.457, allocations: 6.719 kB / 424.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.457, allocations: 1.891 kB / 424.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.457, allocations: 3.406 kB / 424.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.4572, allocations: 40.39 kB / 424.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.4572, allocations: 1.562 kB / 424.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.4577, allocations: 124 kB / 424.9 MB, free: 41.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.4578, allocations: 6.312 kB / 424.9 MB, free: 41.39 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = battery.SOC_start fixed = true ) "Charge as current integration" 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: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003177/0.4581, allocations: 160 kB / 425.1 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.516e-05/0.4582, allocations: 28.27 kB / 425.1 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006492/0.4588, allocations: 248.5 kB / 425.4 MB, free: 41.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.4588, allocations: 0 / 425.4 MB, free: 41.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4588, allocations: 0 / 425.4 MB, free: 41.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.4589, allocations: 4.516 kB / 425.4 MB, free: 41.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009742/0.4598, allocations: 0.6599 MB / 426 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4598, allocations: 0 / 426 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.46, allocations: 27.53 kB / 426.1 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.46, allocations: 3.188 kB / 426.1 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.46, allocations: 9.25 kB / 426.1 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.4601, allocations: 3.125 kB / 426.1 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4601, allocations: 0 / 426.1 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006638/0.4607, allocations: 446.8 kB / 426.5 MB, free: 40.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.695e-05/0.4608, allocations: 111.6 kB / 426.6 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.4609, allocations: 11.14 kB / 426.6 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.4614, allocations: 118.2 kB / 426.7 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002817/0.4617, allocations: 125 kB / 426.9 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.4617, allocations: 11.59 kB / 426.9 MB, free: 40.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002895/0.462, allocations: 278.9 kB / 427.2 MB, free: 40.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.462, allocations: 3.781 kB / 427.2 MB, free: 40.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.4623, allocations: 72.44 kB / 427.2 MB, free: 40.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006763/0.463, allocations: 249.3 kB / 427.5 MB, free: 40.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00046/0.4635, allocations: 216.3 kB / 427.7 MB, free: 40.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4635, allocations: 0 / 427.7 MB, free: 40.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002713/0.4638, allocations: 147.9 kB / 427.8 MB, free: 40.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.4642, allocations: 26.34 kB / 427.8 MB, free: 40.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.4658, allocations: 0.8088 MB / 428.7 MB, free: 40.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.4661, allocations: 0.7581 MB / 429.4 MB, free: 39.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.4663, allocations: 30.38 kB / 429.4 MB, free: 39.42 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4663, allocations: 0 / 429.4 MB, free: 39.42 MB / 350.1 MB Notification: Performance of Templates: time 0.007146/0.4734, allocations: 4.261 MB / 433.7 MB, free: 39.11 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.o OMCppPowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.o] Error 1