Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 96.14 kB / 15.87 MB, free: 12 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.001849/0.00185, allocations: 196.8 kB / 16.79 MB, free: 6.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.355/2.355, allocations: 205.1 MB / 222.6 MB, free: 4.816 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.09262/0.09262, allocations: 7.034 MB / 277 MB, free: 14.48 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 68.11 kB / 335.9 MB, free: 27.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1824, allocations: 48.09 MB / 383.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.01318/0.1957, allocations: 6.759 MB / 390.7 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008442/0.2042, allocations: 4.385 MB / 395.1 MB, free: 184 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006764/0.2049, allocations: 35.88 kB / 395.1 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002614/0.2076, allocations: 0.8674 MB / 396 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008946/0.2085, allocations: 286.1 kB / 396.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.2099, allocations: 0.6363 MB / 396.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002661/0.2126, allocations: 1.994 MB / 398.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001741/0.2143, allocations: 1.068 MB / 400 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007185/0.2151, allocations: 0.5444 MB / 400.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000768/0.2158, allocations: 0.6335 MB / 401.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001964/0.216, allocations: 100 kB / 401.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002965/0.2163, allocations: 135.9 kB / 401.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003819/0.2167, allocations: 314.7 kB / 401.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008997/0.2176, allocations: 0.7694 MB / 402.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002746/0.2204, allocations: 2.573 MB / 405 MB, free: 6.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.2204, allocations: 0 / 405 MB, free: 6.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2204, allocations: 0 / 405 MB, free: 6.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.335e-05/0.2205, allocations: 0 / 405 MB, free: 6.184 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.004239/0.2247, allocations: 1.947 MB / 407 MB, free: 4.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.405e-05/0.2248, allocations: 12.03 kB / 407 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003362/0.2251, allocations: 170.9 kB / 407.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/0.2273, allocations: 1.353 MB / 408.5 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.2275, allocations: 86.47 kB / 408.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.2277, allocations: 120 kB / 408.7 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003082/0.2308, allocations: 1.327 MB / 410 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.2308, allocations: 7.938 kB / 410 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.231, allocations: 44 kB / 410.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-05/0.231, allocations: 28 kB / 410.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002282/0.2333, allocations: 1.007 MB / 411.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009825/0.2431, allocations: 5.674 MB / 416.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003161/0.2464, allocations: 2.153 MB / 418.9 MB, free: 7.613 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009353/0.2473, allocations: 411.2 kB / 419.3 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.077e-05/0.2474, allocations: 9.172 kB / 419.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.2484, allocations: 438.7 kB / 419.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 8.807e-06/0.2484, allocations: 3.984 kB / 419.8 MB, free: 6.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002446/0.2509, allocations: 0.9778 MB / 420.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002137/0.2511, allocations: 166.7 kB / 420.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002768/0.2539, allocations: 1.473 MB / 422.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.83e-05/0.254, allocations: 37.7 kB / 422.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000872/0.2549, allocations: 0.644 MB / 423.1 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003041/0.2552, allocations: 201.2 kB / 423.3 MB, free: 3.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/0.2555, allocations: 142.6 kB / 423.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002747/0.2558, allocations: 334 kB / 423.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007337/0.2565, allocations: 325.8 kB / 424.1 MB, free: 2.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009505/0.2575, allocations: 0.5154 MB / 424.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004863/0.2624, allocations: 1.654 MB / 426.2 MB, free: 52 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/0.2624, allocations: 0 / 426.2 MB, free: 52 kB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.413/0.6754, allocations: 1.015 MB / 427.2 MB, free: 45.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.6757, allocations: 34.66 kB / 427.3 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.179e-05/0.6757, allocations: 4.5 kB / 427.3 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.011e-05/0.6758, allocations: 11.06 kB / 427.3 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009145/0.6767, allocations: 170.3 kB / 427.5 MB, free: 45.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.231e-05/0.6767, allocations: 14.06 kB / 427.5 MB, free: 45.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008569/0.6776, allocations: 87.72 kB / 427.6 MB, free: 45.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.279e-05/0.6777, allocations: 29.02 kB / 427.6 MB, free: 45.36 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1,batteryCell.selfDischarge.qabs.absInt.local_reset,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryCell.calculator.EquivalentCycles.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.sOC.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.001671/0.6794, allocations: 0.5329 MB / 428.1 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.6796, allocations: 112 kB / 428.2 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/0.6817, allocations: 0.7709 MB / 429 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.6818, allocations: 10.22 kB / 429 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.6818, allocations: 0 / 429 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/0.6818, allocations: 8.188 kB / 429 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005007/0.6868, allocations: 2.44 MB / 431.5 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.6869, allocations: 1.719 kB / 431.5 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000658/0.6875, allocations: 112.8 kB / 431.6 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.6875, allocations: 2.75 kB / 431.6 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.6876, allocations: 23.55 kB / 431.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.6876, allocations: 1.375 kB / 431.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.6876, allocations: 1.375 kB / 431.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.69, allocations: 1.212 MB / 432.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003298/0.6904, allocations: 244.4 kB / 433.1 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.6905, allocations: 15.8 kB / 433.1 MB, free: 43.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004486/0.691, allocations: 35.58 kB / 433.1 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.6912, allocations: 37.48 kB / 433.1 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.6912, allocations: 16.38 kB / 433.2 MB, free: 43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002038/0.6933, allocations: 1.04 MB / 434.2 MB, free: 42.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6933, allocations: 3.625 kB / 434.2 MB, free: 42.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001268/0.6946, allocations: 266.7 kB / 434.5 MB, free: 42.51 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (batteryCell.calculator.sOC.integrator.y,batteryCell.calculator.q.absInt.y,batteryCell.calculator.EquivalentCycles.integrator.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryCell.selfDischarge.qabs.absInt.y) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 55 * 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.001131/0.6957, allocations: 375.8 kB / 434.8 MB, free: 42.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001837/0.6976, allocations: 0.7828 MB / 435.6 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6976, allocations: 1.719 kB / 435.6 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008516/0.6984, allocations: 336.1 kB / 435.9 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.6999, allocations: 258.4 kB / 436.2 MB, free: 41.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005661/0.7056, allocations: 3.09 MB / 439.3 MB, free: 39.81 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.7074, allocations: 1.332 MB / 440.6 MB, free: 38.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/0.7077, allocations: 73.86 kB / 440.7 MB, free: 38.95 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.7077, allocations: 0 / 440.7 MB, free: 38.95 MB / 318.1 MB Notification: Performance of Templates: time 0.03831/0.746, allocations: 18.36 MB / 459 MB, free: 24.33 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.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 OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrentCalcHelperMain.o OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrentCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrentCalcHelperMain.o] Error 1