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.00118/0.00118, allocations: 104.2 kB / 16.4 MB, free: 6.465 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.001145/0.001145, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.27/1.27, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04732/0.04732, allocations: 7.042 MB / 277.6 MB, free: 4.957 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.001358/0.001359, allocations: 74 kB / 385.9 MB, free: 47.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06415/0.06552, allocations: 48.12 MB / 434.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.005761/0.07132, allocations: 6.79 MB / 440.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005107/0.07645, allocations: 4.525 MB / 445.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007391/0.07722, allocations: 31.88 kB / 445.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00203/0.07929, allocations: 1.007 MB / 446.4 MB, free: 12.91 MB / 334.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.0008765/0.08018, allocations: 372.9 kB / 446.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.08122, allocations: 0.679 MB / 447.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002059/0.08329, allocations: 2.221 MB / 449.7 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001291/0.08459, allocations: 1.151 MB / 450.8 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000717/0.08531, allocations: 0.7202 MB / 451.5 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006343/0.08596, allocations: 0.7389 MB / 452.3 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002489/0.08621, allocations: 256 kB / 452.5 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003332/0.08656, allocations: 296 kB / 452.8 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003333/0.0869, allocations: 474.7 kB / 453.3 MB, free: 5.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007055/0.08761, allocations: 0.9218 MB / 454.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002422/0.09004, allocations: 3.054 MB / 457.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.09005, allocations: 0 / 457.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09006, allocations: 0 / 457.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.595e-05/0.09008, allocations: 0 / 457.3 MB, free: 1.996 MB / 334.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.002989/0.09308, allocations: 1.943 MB / 459.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.09312, allocations: 8.031 kB / 459.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.09337, allocations: 170.9 kB / 459.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001737/0.09511, allocations: 1.388 MB / 460.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.509e-05/0.09519, allocations: 86.47 kB / 460.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.09535, allocations: 112.1 kB / 461 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.0973, allocations: 1.331 MB / 462.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.09734, allocations: 8 kB / 462.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-05/0.09744, allocations: 44 kB / 462.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.09747, allocations: 28 kB / 462.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.09922, allocations: 1.007 MB / 463.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006363/0.1056, allocations: 5.599 MB / 469 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.1075, allocations: 2.16 MB / 471.1 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006935/0.1082, allocations: 406.3 kB / 471.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.1083, allocations: 12.55 kB / 471.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006951/0.109, allocations: 442.7 kB / 472 MB, free: 2.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.174e-06/0.109, allocations: 0 / 472 MB, free: 2.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001728/0.1107, allocations: 0.97 MB / 473 MB, free: 1.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.1108, allocations: 170.7 kB / 473.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/0.1125, allocations: 1.477 MB / 474.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/0.1126, allocations: 37.7 kB / 474.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005008/0.1131, allocations: 0.6518 MB / 475.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.1133, allocations: 201.1 kB / 475.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002206/0.1135, allocations: 134.6 kB / 475.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1136, allocations: 334 kB / 475.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005615/0.1142, allocations: 329.8 kB / 476.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006808/0.1149, allocations: 0.5271 MB / 476.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003647/0.1185, allocations: 1.662 MB / 478.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1186, allocations: 7.984 kB / 478.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001599/0.1202, allocations: 1.009 MB / 479.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.1202, allocations: 37.7 kB / 479.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1202, allocations: 4 kB / 479.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.1202, allocations: 8 kB / 479.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/0.1209, allocations: 167.7 kB / 479.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.1209, allocations: 20.33 kB / 479.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/0.1214, allocations: 99.12 kB / 479.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.1215, allocations: 28 kB / 479.8 MB, free: 10.49 MB / 366.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.0006656/0.1222, allocations: 0.5197 MB / 480.3 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.1223, allocations: 110.6 kB / 480.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.1237, allocations: 0.7758 MB / 481.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.1237, allocations: 7.938 kB / 481.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1237, allocations: 0 / 481.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1237, allocations: 0 / 481.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/0.1268, allocations: 2.44 MB / 483.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1268, allocations: 4 kB / 483.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005541/0.1274, allocations: 115.8 kB / 483.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.1274, allocations: 4 kB / 483.8 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.1274, allocations: 12 kB / 483.8 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1275, allocations: 0 / 483.8 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1275, allocations: 4 kB / 483.8 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.1292, allocations: 1.214 MB / 485 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.1295, allocations: 243.5 kB / 485.3 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.1296, allocations: 20 kB / 485.3 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.1301, allocations: 35.95 kB / 485.3 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.175e-05/0.1302, allocations: 32.52 kB / 485.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.1302, allocations: 27.92 kB / 485.4 MB, free: 4.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001228/0.1315, allocations: 1.036 MB / 486.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1315, allocations: 3.938 kB / 486.4 MB, free: 3.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006971/0.1322, allocations: 267 kB / 486.7 MB, free: 3.508 MB / 366.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.0007937/0.133, allocations: 395.1 kB / 487.1 MB, free: 3.109 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.1342, allocations: 0.7816 MB / 487.8 MB, free: 2.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1342, allocations: 4 kB / 487.8 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005213/0.1348, allocations: 335 kB / 488.2 MB, free: 1.992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009951/0.1358, allocations: 256 kB / 488.4 MB, free: 1.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003471/0.1393, allocations: 2.569 MB / 491 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008268/0.1401, allocations: 1.326 MB / 492.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/0.1404, allocations: 79.42 kB / 492.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1404, allocations: 0 / 492.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of Templates: time 0.02104/0.1614, allocations: 18.54 MB / 0.499 GB, free: 11.13 MB / 398.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 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)