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.001572/0.001573, allocations: 102.4 kB / 16.35 MB, free: 5.824 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.001621/0.001621, allocations: 195.1 kB / 17.3 MB, free: 5.48 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.53/1.53, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.08261/0.08261, allocations: 7.034 MB / 277.6 MB, free: 4.973 MB / 222.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.0024/0.0024, allocations: 76.38 kB / 337.3 MB, free: 9.121 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2498, allocations: 48.08 MB / 385.4 MB, free: 52.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006969/0.2568, allocations: 6.775 MB / 392.2 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005798/0.2626, allocations: 4.528 MB / 396.7 MB, free: 44.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001347/0.264, allocations: 35.38 kB / 396.8 MB, free: 44.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002951/0.267, allocations: 1.012 MB / 397.8 MB, free: 43.94 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001221/0.2682, allocations: 362.8 kB / 398.1 MB, free: 43.67 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.2694, allocations: 0.6904 MB / 398.8 MB, free: 43.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002644/0.272, allocations: 2.231 MB / 401 MB, free: 42.01 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001392/0.2734, allocations: 1.139 MB / 402.2 MB, free: 41.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008538/0.2743, allocations: 0.7248 MB / 402.9 MB, free: 40.99 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005693/0.2749, allocations: 0.7326 MB / 403.6 MB, free: 40.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002708/0.2752, allocations: 258.2 kB / 403.9 MB, free: 40.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003613/0.2755, allocations: 296.6 kB / 404.2 MB, free: 40.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000262/0.2758, allocations: 467.4 kB / 404.6 MB, free: 40 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006617/0.2765, allocations: 0.9322 MB / 405.6 MB, free: 39.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.2788, allocations: 3.045 MB / 408.6 MB, free: 36.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2788, allocations: 4 kB / 408.6 MB, free: 36.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2788, allocations: 0 / 408.6 MB, free: 36.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.314e-05/0.2789, allocations: 0 / 408.6 MB, free: 36.89 MB / 318.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.00323/0.2821, allocations: 1.944 MB / 410.6 MB, free: 35.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2822, allocations: 9.688 kB / 410.6 MB, free: 35.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002987/0.2825, allocations: 165.7 kB / 410.7 MB, free: 35.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001761/0.2842, allocations: 1.39 MB / 412.1 MB, free: 34.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-05/0.2843, allocations: 87.41 kB / 412.2 MB, free: 34.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.2845, allocations: 111.2 kB / 412.3 MB, free: 34.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.2864, allocations: 1.334 MB / 413.7 MB, free: 32.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.2864, allocations: 0 / 413.7 MB, free: 32.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.605e-05/0.2865, allocations: 44 kB / 413.7 MB, free: 32.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.2865, allocations: 24 kB / 413.7 MB, free: 32.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.288, allocations: 1.007 MB / 414.7 MB, free: 31.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005971/0.294, allocations: 5.618 MB / 420.3 MB, free: 26.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.2956, allocations: 2.159 MB / 422.5 MB, free: 23.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006144/0.2963, allocations: 407.2 kB / 422.9 MB, free: 23.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.19e-05/0.2963, allocations: 5.188 kB / 422.9 MB, free: 23.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006223/0.2969, allocations: 446.6 kB / 423.3 MB, free: 22.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.113e-06/0.297, allocations: 0 / 423.3 MB, free: 22.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001643/0.2986, allocations: 0.974 MB / 424.3 MB, free: 21.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.2987, allocations: 166.7 kB / 424.5 MB, free: 21.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001561/0.3002, allocations: 1.469 MB / 426 MB, free: 20.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.961e-05/0.3003, allocations: 41.64 kB / 426 MB, free: 19.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003776/0.3007, allocations: 0.6518 MB / 426.6 MB, free: 19.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.3008, allocations: 197.2 kB / 426.8 MB, free: 19.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.301, allocations: 142.6 kB / 427 MB, free: 18.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.395e-05/0.3011, allocations: 334 kB / 427.3 MB, free: 18.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.3016, allocations: 325.8 kB / 427.6 MB, free: 18.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006147/0.3022, allocations: 0.5126 MB / 428.1 MB, free: 17.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003434/0.3057, allocations: 1.666 MB / 429.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3057, allocations: 4 kB / 429.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001503/0.3072, allocations: 1.017 MB / 430.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.3073, allocations: 37.69 kB / 430.9 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.3073, allocations: 4 kB / 430.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.3073, allocations: 8 kB / 430.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005843/0.3079, allocations: 163.7 kB / 431 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.3079, allocations: 11.94 kB / 431 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.3085, allocations: 99.39 kB / 431.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.3086, allocations: 28 kB / 431.2 MB, free: 14.59 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.0007099/0.3093, allocations: 0.5369 MB / 431.7 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.3094, allocations: 114.6 kB / 431.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3107, allocations: 0.768 MB / 432.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-06/0.3107, allocations: 11.94 kB / 432.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3107, allocations: 0 / 432.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.3107, allocations: 3.984 kB / 432.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.3135, allocations: 2.42 MB / 435 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3135, allocations: 0 / 435 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000535/0.314, allocations: 119.9 kB / 435.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.314, allocations: 0 / 435.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.823e-05/0.3141, allocations: 23.98 kB / 435.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3141, allocations: 0 / 435.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3141, allocations: 7.875 kB / 435.2 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.3157, allocations: 1.214 MB / 436.4 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002977/0.316, allocations: 247.5 kB / 436.6 MB, free: 9.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.3161, allocations: 12 kB / 436.6 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.3165, allocations: 31.97 kB / 436.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3166, allocations: 44.5 kB / 436.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-05/0.3167, allocations: 19.94 kB / 436.7 MB, free: 8.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.3178, allocations: 1.036 MB / 437.8 MB, free: 7.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3178, allocations: 0 / 437.8 MB, free: 7.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007457/0.3186, allocations: 271 kB / 438 MB, free: 7.602 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.0007684/0.3193, allocations: 375 kB / 438.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.3205, allocations: 0.7817 MB / 439.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3205, allocations: 0 / 439.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004604/0.321, allocations: 343.1 kB / 439.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009873/0.322, allocations: 283.5 kB / 439.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.3259, allocations: 2.634 MB / 442.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000873/0.3268, allocations: 1.371 MB / 443.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006937/0.3275, allocations: 179.8 kB / 444 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.3278, allocations: 67.44 kB / 444 MB, free: 1.543 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3278, allocations: 7.938 kB / 444 MB, free: 1.535 MB / 318.1 MB Notification: Performance of Templates: time 0.02421/0.352, allocations: 14.4 MB / 458.4 MB, free: 3.117 MB / 334.1 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 -s cvode -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)