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.0009/0.0009002, allocations: 92 kB / 15.06 MB, free: 1.098 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.0009265/0.0009265, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.08111/0.08111, allocations: 7.042 MB / 277.4 MB, free: 14.29 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.000528/0.0005283, allocations: 16 kB / 337 MB, free: 27.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09971/0.1002, allocations: 49.07 MB / 386.1 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007795/0.1081, allocations: 5.857 MB / 391.9 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007317/0.1155, allocations: 3.671 MB / 395.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.1171, allocations: 35.88 kB / 395.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.1193, allocations: 0.7385 MB / 396.4 MB, free: 68 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.1206, allocations: 258.2 kB / 396.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.1218, allocations: 339.5 kB / 396.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002356/0.1242, allocations: 1.752 MB / 398.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.1254, allocations: 0.7793 MB / 399.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006606/0.126, allocations: 445.8 kB / 399.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006696/0.1267, allocations: 0.5129 MB / 400.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.1269, allocations: 72 kB / 400.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002305/0.1271, allocations: 95.98 kB / 400.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002451/0.1274, allocations: 246.9 kB / 400.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002931/0.1277, allocations: 344.9 kB / 401.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002248/0.1299, allocations: 2.49 MB / 403.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1299, allocations: 0 / 403.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1299, allocations: 0 / 403.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.784e-05/0.13, allocations: 0 / 403.6 MB, free: 8.73 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.003289/0.1333, allocations: 1.651 MB / 405.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1333, allocations: 12.03 kB / 405.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003049/0.1337, allocations: 170 kB / 405.5 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/0.1358, allocations: 1.321 MB / 406.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.728e-05/0.1359, allocations: 82.09 kB / 406.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000183/0.1361, allocations: 108 kB / 407 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/0.1387, allocations: 1.331 MB / 408.3 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/0.1388, allocations: 7.938 kB / 408.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.1389, allocations: 44 kB / 408.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.045e-05/0.1389, allocations: 28 kB / 408.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.1409, allocations: 1.011 MB / 409.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008157/0.1491, allocations: 5.697 MB / 415.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/0.1513, allocations: 2.155 MB / 417.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000822/0.1522, allocations: 415.3 kB / 417.7 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.487e-05/0.1522, allocations: 16.5 kB / 417.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008471/0.1531, allocations: 454.5 kB / 418.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.134e-06/0.1531, allocations: 0 / 418.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002036/0.1551, allocations: 0.9823 MB / 419.1 MB, free: 8.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001792/0.1553, allocations: 170.8 kB / 419.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002041/0.1574, allocations: 1.461 MB / 420.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/0.1575, allocations: 45.69 kB / 420.8 MB, free: 6.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006528/0.1581, allocations: 0.644 MB / 421.4 MB, free: 6.223 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.1583, allocations: 201.1 kB / 421.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.51e-05/0.1584, allocations: 16 kB / 421.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1586, allocations: 337.9 kB / 422 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007207/0.1593, allocations: 325.9 kB / 422.3 MB, free: 5.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008932/0.1602, allocations: 0.5232 MB / 422.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008571/0.1611, allocations: 437.3 kB / 423.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1611, allocations: 0 / 423.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001782/0.1629, allocations: 1.028 MB / 424.3 MB, free: 3.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.233e-05/0.1629, allocations: 42.27 kB / 424.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1629, allocations: 4 kB / 424.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.163, allocations: 12 kB / 424.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007252/0.1637, allocations: 167.7 kB / 424.5 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.1637, allocations: 15.88 kB / 424.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00054/0.1643, allocations: 91.25 kB / 424.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-05/0.1644, allocations: 35.98 kB / 424.6 MB, free: 2.91 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.000828/0.1652, allocations: 0.5242 MB / 425.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.1653, allocations: 110.6 kB / 425.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.1667, allocations: 0.7918 MB / 426 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1668, allocations: 8 kB / 426.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1668, allocations: 0 / 426.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.1668, allocations: 3.984 kB / 426.1 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.23/0.3968, allocations: 2.438 MB / 428.5 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.3969, allocations: 10.95 kB / 428.5 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007597/0.3977, allocations: 118.5 kB / 428.6 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.197e-05/0.3977, allocations: 2.219 kB / 428.6 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.216e-05/0.3978, allocations: 17.94 kB / 428.6 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/0.3978, allocations: 6.25 kB / 428.6 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3978, allocations: 0 / 428.6 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002954/0.4007, allocations: 1.233 MB / 429.9 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004827/0.4012, allocations: 246.5 kB / 430.1 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.4014, allocations: 18.16 kB / 430.1 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.4018, allocations: 38 kB / 430.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.402, allocations: 47.47 kB / 430.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.402, allocations: 17.48 kB / 430.2 MB, free: 44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001975/0.404, allocations: 1.028 MB / 431.3 MB, free: 43.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.404, allocations: 1.062 kB / 431.3 MB, free: 43.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001205/0.4052, allocations: 270.5 kB / 431.5 MB, free: 43.7 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.00109/0.4064, allocations: 379.3 kB / 431.9 MB, free: 43.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.408, allocations: 0.7979 MB / 432.7 MB, free: 43.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.408, allocations: 1.219 kB / 432.7 MB, free: 43.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006077/0.4086, allocations: 336.5 kB / 433 MB, free: 43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.41, allocations: 256.1 kB / 433.3 MB, free: 42.92 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00507/0.4151, allocations: 3.068 MB / 436.3 MB, free: 41.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001319/0.4164, allocations: 1.374 MB / 437.7 MB, free: 40.31 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4176, allocations: 181.1 kB / 437.9 MB, free: 40.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/0.4179, allocations: 68.62 kB / 438 MB, free: 40.28 MB / 318.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4179, allocations: 3.938 kB / 438 MB, free: 40.27 MB / 318.1 MB Notification: Performance of Templates: time 0.02675/0.4447, allocations: 13.26 MB / 451.2 MB, free: 32.57 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: