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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001574/0.001574, allocations: 185.2 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07559/0.07559, allocations: 7.032 MB / 23.77 MB, free: 4.297 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.483/1.483, allocations: 194.2 MB / 220.2 MB, free: 2.492 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001841/0.001841, allocations: 124.1 kB / 266 MB, free: 4.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 75.91 kB / 321.9 MB, free: 35.8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09826, allocations: 45.06 MB / 366.9 MB, free: 6.723 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.01023/0.1085, allocations: 6.66 MB / 373.6 MB, free: 28 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007663/0.1162, allocations: 4.206 MB / 377.8 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.118, allocations: 27.94 kB / 377.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002926/0.121, allocations: 0.8284 MB / 378.6 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001788/0.1228, allocations: 278.1 kB / 378.9 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.1242, allocations: 0.5036 MB / 379.4 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003022/0.1273, allocations: 1.947 MB / 381.4 MB, free: 8.211 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.1291, allocations: 1.056 MB / 382.4 MB, free: 7.121 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009344/0.13, allocations: 0.5328 MB / 382.9 MB, free: 6.586 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.1312, allocations: 0.6141 MB / 383.6 MB, free: 5.969 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005293/0.1317, allocations: 100 kB / 383.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006751/0.1324, allocations: 128 kB / 383.8 MB, free: 5.746 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003989/0.1328, allocations: 302.8 kB / 384.1 MB, free: 5.449 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.1342, allocations: 0.7461 MB / 384.8 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00281/0.137, allocations: 2.777 MB / 387.6 MB, free: 1.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1371, allocations: 0 / 387.6 MB, free: 1.914 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1371, allocations: 0 / 387.6 MB, free: 1.914 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.156e-05/0.1371, allocations: 0 / 387.6 MB, free: 1.914 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.003764/0.1409, allocations: 1.878 MB / 389.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.141, allocations: 8.031 kB / 389.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002433/0.1412, allocations: 163 kB / 389.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.1429, allocations: 1.184 MB / 390.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.85e-05/0.143, allocations: 78.38 kB / 390.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.1432, allocations: 115.8 kB / 391 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/0.1452, allocations: 1.212 MB / 392.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.1452, allocations: 0 / 392.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.935e-05/0.1453, allocations: 43.98 kB / 392.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.1453, allocations: 24 kB / 392.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.147, allocations: 0.9644 MB / 393.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006597/0.1537, allocations: 4.384 MB / 397.6 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/0.1559, allocations: 2.156 MB / 399.8 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007116/0.1566, allocations: 407.9 kB / 400.2 MB, free: 4.785 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.1567, allocations: 5.188 kB / 400.2 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007409/0.1574, allocations: 450.6 kB / 400.6 MB, free: 4.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 2.475e-06/0.1574, allocations: 0 / 400.6 MB, free: 4.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.002005/0.1594, allocations: 0.9624 MB / 401.6 MB, free: 3.348 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.746e-05/0.1596, allocations: 166.8 kB / 401.8 MB, free: 3.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/0.1614, allocations: 1.369 MB / 403.1 MB, free: 1.758 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.739e-05/0.1615, allocations: 41.7 kB / 403.2 MB, free: 1.711 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005844/0.1621, allocations: 0.5972 MB / 403.8 MB, free: 1.105 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.1623, allocations: 193.2 kB / 404 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002197/0.1625, allocations: 114.3 kB / 404.1 MB, free: 0.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1626, allocations: 326.1 kB / 404.4 MB, free: 480 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005539/0.1632, allocations: 313.1 kB / 404.7 MB, free: 168 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006526/0.1639, allocations: 420.5 kB / 405.1 MB, free: 15.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003917/0.1678, allocations: 1.628 MB / 406.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1678, allocations: 0 / 406.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001777/0.1696, allocations: 0.9404 MB / 407.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.335e-05/0.1697, allocations: 63.31 kB / 407.7 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1697, allocations: 4 kB / 407.8 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.1697, allocations: 4 kB / 407.8 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006148/0.1703, allocations: 143.8 kB / 407.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.1704, allocations: 8.125 kB / 407.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/0.1709, allocations: 79.34 kB / 408 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-05/0.171, allocations: 27.98 kB / 408 MB, free: 12.74 MB / 314.7 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: 7 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 2 * 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.0007919/0.1718, allocations: 497.5 kB / 408.5 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.172, allocations: 102.7 kB / 408.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.1736, allocations: 0.7709 MB / 409.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1736, allocations: 8 kB / 409.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1736, allocations: 48 / 409.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.1736, allocations: 7.969 kB / 409.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.1772, allocations: 2.409 MB / 411.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1773, allocations: 4 kB / 411.8 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/0.1778, allocations: 115.8 kB / 411.9 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.1779, allocations: 0 / 411.9 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-05/0.1779, allocations: 27.92 kB / 411.9 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.1779, allocations: 0 / 411.9 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1779, allocations: 0 / 411.9 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009321/0.1873, allocations: 6.114 MB / 418 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003265/0.1876, allocations: 235.7 kB / 418.3 MB, free: 2.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.1878, allocations: 16 kB / 418.3 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.1882, allocations: 39.97 kB / 418.3 MB, free: 2.172 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.1883, allocations: 40.44 kB / 418.4 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/0.1884, allocations: 16 kB / 418.4 MB, free: 2.117 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001338/0.1897, allocations: 0.9744 MB / 419.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1897, allocations: 0 / 419.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009892/0.1907, allocations: 342.9 kB / 419.7 MB, free: 0.7969 MB / 314.7 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.0005694/0.1913, allocations: 260.1 kB / 420 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.1596/0.3509, allocations: 0.7862 MB / 420.7 MB, free: 55.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.351, allocations: 3.281 kB / 420.7 MB, free: 55.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007274/0.3517, allocations: 334.4 kB / 421.1 MB, free: 55.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.3532, allocations: 240.5 kB / 421.3 MB, free: 55.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004954/0.3581, allocations: 3.45 MB / 424.8 MB, free: 53.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.3592, allocations: 1.357 MB / 426.1 MB, free: 52.85 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007859/0.36, allocations: 170.1 kB / 426.3 MB, free: 52.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002487/0.3602, allocations: 73.19 kB / 426.3 MB, free: 52.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.343e-06/0.3603, allocations: 0 / 426.3 MB, free: 52.82 MB / 314.7 MB Notification: Performance of Templates: time 0.02369/0.384, allocations: 14.88 MB / 441.2 MB, free: 46.34 MB / 314.7 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)