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.001186/0.001186, allocations: 116.2 kB / 16.42 MB, free: 6.5 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.001168/0.001168, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04794/0.04794, allocations: 7.038 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.001436/0.001436, allocations: 77.05 kB / 386 MB, free: 48.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07524/0.07668, allocations: 48.11 MB / 434.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006082/0.08279, allocations: 6.799 MB / 440.9 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004955/0.08777, allocations: 4.521 MB / 445.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005953/0.0884, allocations: 35.88 kB / 445.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.09047, allocations: 1.011 MB / 446.4 MB, free: 13.02 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.000883/0.09136, allocations: 365 kB / 446.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.09244, allocations: 0.6791 MB / 447.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.09454, allocations: 2.23 MB / 449.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.09586, allocations: 1.135 MB / 450.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008006/0.09667, allocations: 0.7202 MB / 451.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007422/0.09742, allocations: 0.7428 MB / 452.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000278/0.09771, allocations: 256 kB / 452.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003811/0.0981, allocations: 292 kB / 452.8 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00038/0.09849, allocations: 474.8 kB / 453.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000839/0.09934, allocations: 0.9295 MB / 454.2 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002743/0.1021, allocations: 3.05 MB / 457.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1021, allocations: 0 / 457.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1021, allocations: 0 / 457.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.1021, allocations: 3.938 kB / 457.3 MB, free: 2.113 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.003385/0.1055, allocations: 1.943 MB / 459.2 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1056, allocations: 8.031 kB / 459.2 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003365/0.1059, allocations: 170.9 kB / 459.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.1078, allocations: 1.388 MB / 460.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.882e-05/0.1079, allocations: 86.47 kB / 460.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.1081, allocations: 116.1 kB / 461 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/0.1102, allocations: 1.335 MB / 462.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.1103, allocations: 4 kB / 462.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.684e-05/0.1104, allocations: 44 kB / 462.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.1104, allocations: 24 kB / 462.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.1122, allocations: 1.003 MB / 463.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006874/0.1191, allocations: 5.607 MB / 469 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002141/0.1213, allocations: 2.151 MB / 471.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007223/0.122, allocations: 410.3 kB / 471.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.306e-05/0.1221, allocations: 8.562 kB / 471.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007233/0.1228, allocations: 442.6 kB / 472 MB, free: 2.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.034e-06/0.1228, allocations: 0 / 472 MB, free: 2.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001873/0.1247, allocations: 0.974 MB / 473 MB, free: 1.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.1248, allocations: 158.8 kB / 473.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/0.1268, allocations: 1.488 MB / 474.6 MB, free: 56 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.1269, allocations: 41.7 kB / 474.6 MB, free: 8 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005643/0.1274, allocations: 0.6485 MB / 475.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.1276, allocations: 201.1 kB / 475.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.1279, allocations: 142.6 kB / 475.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.128, allocations: 330 kB / 476 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005802/0.1286, allocations: 325.8 kB / 476.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007118/0.1293, allocations: 0.5193 MB / 476.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0039/0.1332, allocations: 1.674 MB / 478.5 MB, free: 12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1333, allocations: 0 / 478.5 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00168/0.1349, allocations: 1.013 MB / 479.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.135, allocations: 33.7 kB / 479.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.135, allocations: 8 kB / 479.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.135, allocations: 8 kB / 479.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.1357, allocations: 167.8 kB / 479.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.1357, allocations: 16.31 kB / 479.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005467/0.1363, allocations: 95.19 kB / 479.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-05/0.1364, allocations: 32 kB / 479.8 MB, free: 10.61 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.0007123/0.1371, allocations: 0.5197 MB / 480.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.1372, allocations: 110.6 kB / 480.5 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/0.1387, allocations: 0.7797 MB / 481.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.1387, allocations: 3.938 kB / 481.2 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.1387, allocations: 0 / 481.2 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.139, allocations: 247.5 kB / 481.5 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.1392, allocations: 12 kB / 481.5 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.1396, allocations: 35.97 kB / 481.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.1397, allocations: 40.5 kB / 481.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001757/0.1415, allocations: 0.8696 MB / 482.4 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002028/0.1435, allocations: 1.401 MB / 483.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000583/0.1441, allocations: 356.3 kB / 484.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001337/0.1454, allocations: 1.032 MB / 485.2 MB, free: 5.148 MB / 366.1 MB Notification: Performance of Backend: time 6.91e-07/0.1455, allocations: 4 kB / 485.2 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.1477, allocations: 0.9566 MB / 486.2 MB, free: 4.172 MB / 366.1 MB Notification: Performance of SimCode: time 0.004087/0.1518, allocations: 3.055 MB / 489.2 MB, free: 1.062 MB / 366.1 MB Notification: Performance of Templates: time 0.02633/0.1781, allocations: 16.91 MB / 0.4943 GB, free: 128 kB / 382.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)