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.001121/0.001121, allocations: 111.8 kB / 16.42 MB, free: 5.918 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.001031/0.001031, allocations: 191.7 kB / 17.35 MB, free: 5.555 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.316/1.316, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0476/0.0476, allocations: 7.04 MB / 277.6 MB, free: 4.949 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.001479/0.001479, allocations: 70.16 kB / 386 MB, free: 48.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07587/0.07736, allocations: 48.11 MB / 434.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006733/0.08413, allocations: 6.795 MB / 440.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005871/0.09003, allocations: 4.514 MB / 445.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.09117, allocations: 31.88 kB / 445.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002572/0.09376, allocations: 1.018 MB / 446.4 MB, free: 13 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.001463/0.09525, allocations: 393 kB / 446.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.09672, allocations: 0.6907 MB / 447.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002857/0.09959, allocations: 2.23 MB / 449.7 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001725/0.1013, allocations: 1.143 MB / 450.9 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009348/0.1023, allocations: 0.7202 MB / 451.6 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001039/0.1033, allocations: 0.7389 MB / 452.3 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004694/0.1038, allocations: 260 kB / 452.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000591/0.1044, allocations: 288 kB / 452.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004046/0.1048, allocations: 474.7 kB / 453.3 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008605/0.1057, allocations: 0.9257 MB / 454.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002926/0.1086, allocations: 3.068 MB / 457.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1086, allocations: 0 / 457.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1087, allocations: 0 / 457.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.425e-05/0.1087, allocations: 3.938 kB / 457.3 MB, free: 2.039 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.003317/0.112, allocations: 1.993 MB / 459.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1121, allocations: 8.031 kB / 459.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.1123, allocations: 179.9 kB / 459.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.1141, allocations: 1.389 MB / 460.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.004e-05/0.1142, allocations: 94.45 kB / 461 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.1144, allocations: 112.1 kB / 461.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/0.1166, allocations: 1.327 MB / 462.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.1166, allocations: 0 / 462.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.634e-05/0.1167, allocations: 44 kB / 462.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.1168, allocations: 28 kB / 462.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.1186, allocations: 1.011 MB / 463.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006813/0.1254, allocations: 5.601 MB / 469.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/0.1275, allocations: 2.148 MB / 471.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007755/0.1283, allocations: 426.2 kB / 471.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.544e-05/0.1284, allocations: 12.55 kB / 471.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007501/0.1291, allocations: 434.7 kB / 472.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.296e-06/0.1292, allocations: 4 kB / 472.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001884/0.1311, allocations: 0.9824 MB / 473.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.865e-05/0.1312, allocations: 162.8 kB / 473.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/0.1331, allocations: 1.481 MB / 474.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.728e-05/0.1331, allocations: 37.7 kB / 474.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005567/0.1337, allocations: 0.657 MB / 475.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.1339, allocations: 218.1 kB / 475.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.1341, allocations: 138.6 kB / 475.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1343, allocations: 334 kB / 476.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006082/0.1349, allocations: 325.8 kB / 476.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008275/0.1357, allocations: 0.5193 MB / 476.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004055/0.1398, allocations: 1.666 MB / 478.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1398, allocations: 0 / 478.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001765/0.1416, allocations: 1.029 MB / 479.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.1416, allocations: 33.7 kB / 479.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1417, allocations: 4 kB / 479.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.1417, allocations: 8 kB / 479.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006846/0.1424, allocations: 167.8 kB / 479.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.1424, allocations: 23.8 kB / 479.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005561/0.143, allocations: 91.52 kB / 480 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.563e-05/0.143, allocations: 28 kB / 480 MB, free: 10.45 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.0007496/0.1438, allocations: 0.5275 MB / 480.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.1439, allocations: 119.2 kB / 480.6 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/0.1454, allocations: 0.7719 MB / 481.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.1454, allocations: 15.95 kB / 481.4 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1454, allocations: 0 / 481.4 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000279/0.1457, allocations: 248.2 kB / 481.7 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.1459, allocations: 19.98 kB / 481.7 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004168/0.1463, allocations: 27.97 kB / 481.7 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.1464, allocations: 40.52 kB / 481.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001814/0.1482, allocations: 0.8736 MB / 482.6 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002053/0.1503, allocations: 1.397 MB / 484 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005636/0.1509, allocations: 356.3 kB / 484.4 MB, free: 6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001387/0.1523, allocations: 1.036 MB / 485.4 MB, free: 4.957 MB / 366.1 MB Notification: Performance of Backend: time 4.3e-07/0.1523, allocations: 0 / 485.4 MB, free: 4.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.1546, allocations: 0.9515 MB / 486.4 MB, free: 3.988 MB / 366.1 MB Notification: Performance of SimCode: time 0.004137/0.1587, allocations: 3.12 MB / 489.5 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of Templates: time 0.02783/0.1866, allocations: 16.91 MB / 0.4945 GB, free: 15.88 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)