Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 180.9 kB / 15.43 MB, free: 6.211 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07725/0.07725, allocations: 7.047 MB / 23.23 MB, free: 4.289 MB / 18.57 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 225.7 MB / 251.2 MB, free: 5.133 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007825/0.0007825, allocations: 85.06 kB / 303.8 MB, free: 3.785 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 4 kB / 366.5 MB, free: 7.652 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.101, allocations: 51.89 MB / 418.4 MB, free: 3.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.1868/0.2879, allocations: 5.916 MB / 424.3 MB, free: 41.17 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00527/0.2932, allocations: 4.016 MB / 428.3 MB, free: 40.48 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009773/0.2942, allocations: 34.59 kB / 428.3 MB, free: 40.47 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.296, allocations: 0.8654 MB / 429.2 MB, free: 40.29 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001083/0.2971, allocations: 288.2 kB / 429.5 MB, free: 40.19 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.2984, allocations: 0.641 MB / 430.1 MB, free: 40.18 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002207/0.3006, allocations: 2 MB / 432.1 MB, free: 39.88 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.3018, allocations: 1.055 MB / 433.2 MB, free: 39.79 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005909/0.3024, allocations: 477.9 kB / 433.6 MB, free: 39.65 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004495/0.3029, allocations: 0.5327 MB / 434.2 MB, free: 39.47 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.303, allocations: 68.94 kB / 434.2 MB, free: 39.47 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002332/0.3033, allocations: 105.3 kB / 434.3 MB, free: 39.47 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.3035, allocations: 258.6 kB / 434.6 MB, free: 39.4 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004872/0.304, allocations: 0.7188 MB / 435.3 MB, free: 39.13 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002125/0.3061, allocations: 2.795 MB / 438.1 MB, free: 38.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3061, allocations: 3.219 kB / 438.1 MB, free: 38.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3061, allocations: 0 / 438.1 MB, free: 38.63 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.3062, allocations: 0 / 438.1 MB, free: 38.63 MB / 346.7 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.00263/0.3088, allocations: 1.636 MB / 439.7 MB, free: 37.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.3089, allocations: 9.375 kB / 439.7 MB, free: 37.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002598/0.3091, allocations: 167.5 kB / 439.9 MB, free: 37.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/0.3107, allocations: 1.368 MB / 441.3 MB, free: 36.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.966e-05/0.3107, allocations: 84.06 kB / 441.4 MB, free: 36.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.3109, allocations: 114.4 kB / 441.5 MB, free: 36.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002183/0.3131, allocations: 1.326 MB / 442.8 MB, free: 35.76 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/0.3131, allocations: 3.938 kB / 442.8 MB, free: 35.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.453e-05/0.3132, allocations: 58.12 kB / 442.9 MB, free: 35.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.3133, allocations: 24.38 kB / 442.9 MB, free: 35.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.3149, allocations: 1.012 MB / 443.9 MB, free: 35.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005751/0.3206, allocations: 5.702 MB / 449.6 MB, free: 31.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.3223, allocations: 2.158 MB / 451.8 MB, free: 29.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006218/0.3229, allocations: 414.1 kB / 452.2 MB, free: 29.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.3229, allocations: 14.47 kB / 452.2 MB, free: 29.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006666/0.3236, allocations: 442.2 kB / 452.6 MB, free: 29.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 2.625e-06/0.3236, allocations: 0 / 452.6 MB, free: 29.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.00176/0.3254, allocations: 0.993 MB / 453.6 MB, free: 28.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.3255, allocations: 169.5 kB / 453.8 MB, free: 28.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/0.3273, allocations: 1.467 MB / 455.2 MB, free: 28.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.3274, allocations: 37.39 kB / 455.3 MB, free: 28.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004399/0.3279, allocations: 0.647 MB / 455.9 MB, free: 27.51 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.328, allocations: 195.8 kB / 456.1 MB, free: 27.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.328, allocations: 15 kB / 456.1 MB, free: 27.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.488e-05/0.3281, allocations: 336.7 kB / 456.5 MB, free: 27.03 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005772/0.3287, allocations: 330.3 kB / 456.8 MB, free: 26.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006612/0.3294, allocations: 0.5162 MB / 457.3 MB, free: 26.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003767/0.3332, allocations: 1.698 MB / 459 MB, free: 25.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3332, allocations: 5.156 kB / 459 MB, free: 25.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001581/0.3348, allocations: 1.028 MB / 460 MB, free: 25.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.3348, allocations: 32.98 kB / 460.1 MB, free: 25.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.3348, allocations: 5.25 kB / 460.1 MB, free: 25.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.3348, allocations: 9.406 kB / 460.1 MB, free: 25.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.3355, allocations: 173.6 kB / 460.2 MB, free: 25.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.3355, allocations: 12.31 kB / 460.2 MB, free: 25.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/0.3361, allocations: 97.45 kB / 460.3 MB, free: 25.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.156e-05/0.3362, allocations: 29.89 kB / 460.4 MB, free: 25.05 MB / 346.7 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.T_start,$PRE.pulseCurrent.signalSource.count,$whenCondition1,pulseCurrent.signalSource.T_start,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007306/0.3369, allocations: 0.5368 MB / 460.9 MB, free: 24.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.337, allocations: 110.5 kB / 461 MB, free: 24.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.3384, allocations: 0.7859 MB / 461.8 MB, free: 24.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3384, allocations: 9.438 kB / 461.8 MB, free: 24.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3384, allocations: 1.938 kB / 461.8 MB, free: 24.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3384, allocations: 3.422 kB / 461.8 MB, free: 24.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.3413, allocations: 2.455 MB / 464.3 MB, free: 22.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3414, allocations: 0 / 464.3 MB, free: 22.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005804/0.3419, allocations: 120.2 kB / 464.4 MB, free: 22.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.342, allocations: 2.75 kB / 464.4 MB, free: 22.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/0.342, allocations: 18.38 kB / 464.4 MB, free: 22.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.342, allocations: 6 kB / 464.4 MB, free: 22.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.342, allocations: 0.6562 kB / 464.4 MB, free: 22.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001838/0.3439, allocations: 1.23 MB / 465.6 MB, free: 22.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002519/0.3441, allocations: 253.3 kB / 465.9 MB, free: 22.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.3443, allocations: 19.34 kB / 465.9 MB, free: 22.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/0.3448, allocations: 33.78 kB / 465.9 MB, free: 22.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.3449, allocations: 41.3 kB / 466 MB, free: 22.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.46e-05/0.3449, allocations: 20.59 kB / 466 MB, free: 22.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001463/0.3464, allocations: 1.031 MB / 467 MB, free: 21.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3464, allocations: 4 kB / 467 MB, free: 21.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007498/0.3472, allocations: 262.3 kB / 467.3 MB, free: 21.54 MB / 346.7 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.0008065/0.348, allocations: 434.1 kB / 467.7 MB, free: 21.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3494, allocations: 0.7993 MB / 468.5 MB, free: 20.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3494, allocations: 1.031 kB / 468.5 MB, free: 20.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005773/0.35, allocations: 335.2 kB / 468.8 MB, free: 20.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.3511, allocations: 262.4 kB / 469.1 MB, free: 20.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00392/0.355, allocations: 3.222 MB / 472.3 MB, free: 18.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009487/0.356, allocations: 1.372 MB / 473.7 MB, free: 17.99 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000673/0.3567, allocations: 184.5 kB / 473.9 MB, free: 17.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002177/0.3569, allocations: 75.12 kB / 474 MB, free: 17.95 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3569, allocations: 1.125 kB / 474 MB, free: 17.95 MB / 346.7 MB Notification: Performance of Templates: time 0.0203/0.3772, allocations: 13.61 MB / 487.6 MB, free: 8.707 MB / 346.7 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.sim & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)