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.0007967/0.0007964, allocations: 92 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.00101/0.00101, allocations: 179.3 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.4 MB / 223.1 MB, free: 5.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05634/0.05634, allocations: 7.038 MB / 278.4 MB, free: 14.18 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.0005144/0.0005148, allocations: 12 kB / 338.2 MB, free: 27.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09073, allocations: 49.06 MB / 387.3 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006883/0.09764, allocations: 6.261 MB / 393.6 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006401/0.1041, allocations: 3.946 MB / 397.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001199/0.1053, allocations: 27.94 kB / 397.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.1074, allocations: 0.8634 MB / 398.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.1088, allocations: 290.1 kB / 398.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.11, allocations: 0.6324 MB / 399.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00248/0.1125, allocations: 2.006 MB / 401.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001435/0.114, allocations: 1.057 MB / 402.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007077/0.1147, allocations: 469.6 kB / 402.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005402/0.1152, allocations: 0.5359 MB / 403.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.1154, allocations: 68 kB / 403.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.1156, allocations: 99.97 kB / 403.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.1158, allocations: 254.8 kB / 403.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006428/0.1165, allocations: 0.7242 MB / 404.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002248/0.1187, allocations: 2.482 MB / 407 MB, free: 6.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1187, allocations: 0 / 407 MB, free: 6.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1187, allocations: 0 / 407 MB, free: 6.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.566e-05/0.1188, allocations: 0 / 407 MB, free: 6.281 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.003029/0.1218, allocations: 1.643 MB / 408.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1219, allocations: 12.03 kB / 408.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000255/0.1221, allocations: 163 kB / 408.8 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.1239, allocations: 1.368 MB / 410.2 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.661e-05/0.1239, allocations: 82.47 kB / 410.2 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.1241, allocations: 116.1 kB / 410.4 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.1265, allocations: 1.331 MB / 411.7 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.1265, allocations: 7.938 kB / 411.7 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.672e-05/0.1266, allocations: 44 kB / 411.7 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.303e-05/0.1267, allocations: 28 kB / 411.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001883/0.1286, allocations: 1.023 MB / 412.8 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007009/0.1356, allocations: 5.693 MB / 418.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/0.1377, allocations: 2.155 MB / 420.6 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007203/0.1384, allocations: 419.2 kB / 421.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.649e-05/0.1385, allocations: 4.562 kB / 421.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007598/0.1393, allocations: 458.6 kB / 421.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.094e-06/0.1393, allocations: 0 / 421.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001855/0.1411, allocations: 0.9935 MB / 422.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.776e-05/0.1413, allocations: 166.7 kB / 422.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.1432, allocations: 1.469 MB / 424.1 MB, free: 4.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.183e-05/0.1433, allocations: 41.69 kB / 424.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005588/0.1439, allocations: 0.6519 MB / 424.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.1441, allocations: 201.1 kB / 425 MB, free: 3.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.1442, allocations: 73.67 kB / 425.1 MB, free: 3.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1443, allocations: 337.9 kB / 425.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005955/0.1449, allocations: 329.8 kB / 425.7 MB, free: 2.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007521/0.1457, allocations: 0.5233 MB / 426.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003891/0.1496, allocations: 1.713 MB / 428 MB, free: 376 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1496, allocations: 0 / 428 MB, free: 376 kB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.1857/0.3354, allocations: 1.023 MB / 429 MB, free: 44.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.49e-05/0.3355, allocations: 35.41 kB / 429 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.3355, allocations: 4.469 kB / 429 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.576e-05/0.3355, allocations: 9.344 kB / 429 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006748/0.3362, allocations: 170.7 kB / 429.2 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.338e-05/0.3362, allocations: 17.61 kB / 429.2 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006838/0.3369, allocations: 93.53 kB / 429.3 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.983e-05/0.337, allocations: 30.64 kB / 429.4 MB, free: 44.17 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.0009436/0.3379, allocations: 0.5233 MB / 429.9 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.3381, allocations: 113.5 kB / 430 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/0.3399, allocations: 0.7896 MB / 430.8 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.3399, allocations: 9.375 kB / 430.8 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3399, allocations: 0 / 430.8 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.3399, allocations: 2.672 kB / 430.8 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00364/0.3436, allocations: 2.457 MB / 433.2 MB, free: 43.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3436, allocations: 2.062 kB / 433.2 MB, free: 43.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006087/0.3442, allocations: 120.6 kB / 433.4 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.3442, allocations: 2.375 kB / 433.4 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.398e-05/0.3443, allocations: 24.06 kB / 433.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.3443, allocations: 3.438 kB / 433.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3443, allocations: 1.031 kB / 433.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001984/0.3463, allocations: 1.233 MB / 434.6 MB, free: 42.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003009/0.3466, allocations: 245.6 kB / 434.9 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.3467, allocations: 19.48 kB / 434.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.3472, allocations: 42.16 kB / 434.9 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.3473, allocations: 37.47 kB / 435 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.346e-05/0.3474, allocations: 17.12 kB / 435 MB, free: 42.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001601/0.349, allocations: 1.039 MB / 436 MB, free: 41.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.349, allocations: 0 / 436 MB, free: 41.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009003/0.3499, allocations: 269.4 kB / 436.3 MB, free: 41.76 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.000861/0.3507, allocations: 375.5 kB / 436.7 MB, free: 41.49 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.3523, allocations: 0.8025 MB / 437.5 MB, free: 41.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.3523, allocations: 1.5 kB / 437.5 MB, free: 41.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006027/0.3529, allocations: 342.5 kB / 437.8 MB, free: 41.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/0.3542, allocations: 252.4 kB / 438 MB, free: 40.92 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004763/0.359, allocations: 3.165 MB / 441.2 MB, free: 39.03 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.36, allocations: 1.332 MB / 442.5 MB, free: 38.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/0.3603, allocations: 73.72 kB / 442.6 MB, free: 38.16 MB / 318.1 MB Notification: Performance of SimCode: time 2.274e-06/0.3603, allocations: 0 / 442.6 MB, free: 38.16 MB / 318.1 MB Notification: Performance of Templates: time 0.02828/0.3886, allocations: 18.12 MB / 460.7 MB, free: 23.92 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