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.0008796/0.0008796, allocations: 99.59 kB / 15.71 MB, free: 452 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.001113/0.001114, allocations: 176.4 kB / 16.58 MB, free: 6.422 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.653/1.653, allocations: 205.4 MB / 222.7 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05964/0.05964, allocations: 7.019 MB / 278 MB, free: 14.27 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.0005707/0.0005707, allocations: 16 kB / 337.6 MB, free: 27.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 49.06 MB / 386.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007217/0.1153, allocations: 5.866 MB / 392.5 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006254/0.1216, allocations: 3.671 MB / 396.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.1228, allocations: 35.88 kB / 396.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.1247, allocations: 0.7308 MB / 397 MB, free: 80 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001051/0.1258, allocations: 262.1 kB / 397.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.1269, allocations: 331.5 kB / 397.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002401/0.1293, allocations: 1.772 MB / 399.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.1304, allocations: 0.7715 MB / 400.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005659/0.131, allocations: 453.8 kB / 400.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005222/0.1316, allocations: 0.5012 MB / 401 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1317, allocations: 68 kB / 401.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.1319, allocations: 95.98 kB / 401.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/0.1321, allocations: 254.9 kB / 401.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003389/0.1325, allocations: 348.9 kB / 401.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002015/0.1345, allocations: 2.478 MB / 404.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.1345, allocations: 4 kB / 404.3 MB, free: 8.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1345, allocations: 4 kB / 404.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.399e-05/0.1346, allocations: 0 / 404.3 MB, free: 8.738 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.003/0.1376, allocations: 1.655 MB / 405.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.1376, allocations: 8.031 kB / 405.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003359/0.138, allocations: 170 kB / 406.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002356/0.1403, allocations: 1.317 MB / 407.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.1405, allocations: 94.03 kB / 407.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002129/0.1407, allocations: 104 kB / 407.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002857/0.1436, allocations: 1.335 MB / 409 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.1436, allocations: 0 / 409 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.1437, allocations: 44 kB / 409 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.1438, allocations: 24 kB / 409 MB, free: 3.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002032/0.1458, allocations: 1.019 MB / 410 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007921/0.1537, allocations: 5.693 MB / 415.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002421/0.1562, allocations: 2.163 MB / 417.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007044/0.1569, allocations: 411.9 kB / 418.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.056e-05/0.157, allocations: 4.562 kB / 418.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007599/0.1577, allocations: 454.6 kB / 418.7 MB, free: 9.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.1578, allocations: 0 / 418.7 MB, free: 9.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002034/0.1598, allocations: 0.99 MB / 419.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001739/0.16, allocations: 162.8 kB / 419.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/0.1622, allocations: 1.473 MB / 421.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.332e-05/0.1623, allocations: 37.7 kB / 421.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007704/0.1631, allocations: 0.6485 MB / 422.1 MB, free: 6.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/0.1633, allocations: 197.1 kB / 422.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.1633, allocations: 16 kB / 422.3 MB, free: 6.016 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1635, allocations: 341.9 kB / 422.6 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006137/0.1641, allocations: 329.9 kB / 422.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007706/0.1649, allocations: 0.5232 MB / 423.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000827/0.1658, allocations: 433.3 kB / 423.9 MB, free: 4.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.1658, allocations: 4 kB / 423.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001816/0.1676, allocations: 1.025 MB / 424.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.141e-05/0.1677, allocations: 41.66 kB / 424.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.1677, allocations: 4 kB / 424.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.1677, allocations: 15.98 kB / 425 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006912/0.1684, allocations: 163.7 kB / 425.1 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.1684, allocations: 8.312 kB / 425.1 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006267/0.1691, allocations: 95.25 kB / 425.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.813e-05/0.1691, allocations: 32 kB / 425.2 MB, free: 2.922 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 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009789/0.1701, allocations: 0.5312 MB / 425.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.1703, allocations: 110.6 kB / 425.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.1718, allocations: 0.7957 MB / 426.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.1718, allocations: 4 kB / 426.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1718, allocations: 8 kB / 426.7 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1719, allocations: 3.984 kB / 426.7 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1925/0.3644, allocations: 2.44 MB / 429.1 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3645, allocations: 1.078 kB / 429.1 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006039/0.3651, allocations: 121.2 kB / 429.3 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/0.3651, allocations: 2.125 kB / 429.3 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.859e-05/0.3652, allocations: 20.27 kB / 429.3 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.3652, allocations: 1.531 kB / 429.3 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3652, allocations: 3.656 kB / 429.3 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.3674, allocations: 1.229 MB / 430.5 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003683/0.3678, allocations: 247.3 kB / 430.7 MB, free: 44.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.3679, allocations: 21.75 kB / 430.8 MB, free: 44.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003984/0.3683, allocations: 37.55 kB / 430.8 MB, free: 44.06 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.3684, allocations: 43.22 kB / 430.9 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.3685, allocations: 20.97 kB / 430.9 MB, free: 44.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001549/0.3701, allocations: 1.03 MB / 431.9 MB, free: 43.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3701, allocations: 0 / 431.9 MB, free: 43.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008279/0.3709, allocations: 264.5 kB / 432.2 MB, free: 43.74 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 (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.0008018/0.3717, allocations: 379.4 kB / 432.5 MB, free: 43.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3731, allocations: 0.7945 MB / 433.3 MB, free: 43.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3731, allocations: 1.281 kB / 433.3 MB, free: 43.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005447/0.3736, allocations: 337.5 kB / 433.7 MB, free: 43.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.3747, allocations: 260.3 kB / 433.9 MB, free: 42.92 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004346/0.3791, allocations: 3.003 MB / 436.9 MB, free: 41.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009535/0.38, allocations: 1.328 MB / 438.2 MB, free: 40.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003844/0.3804, allocations: 76.64 kB / 438.3 MB, free: 40.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3804, allocations: 3.828 kB / 438.3 MB, free: 40.34 MB / 318.1 MB Notification: Performance of Templates: time 0.02661/0.4071, allocations: 18.16 MB / 456.5 MB, free: 27.95 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.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 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