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.001026/0.001026, allocations: 110.2 kB / 15.99 MB, free: 6.367 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.001078/0.001078, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.413/1.413, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05689/0.05689, allocations: 7.034 MB / 277.1 MB, free: 14.39 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.001351/0.001351, allocations: 67.91 kB / 336 MB, free: 27.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1028, allocations: 48.11 MB / 384.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008619/0.1114, allocations: 6.747 MB / 390.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006637/0.1181, allocations: 4.385 MB / 395.3 MB, free: 52 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.1193, allocations: 31.94 kB / 395.3 MB, free: 20 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002449/0.1218, allocations: 0.8752 MB / 396.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001152/0.1229, allocations: 286.1 kB / 396.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001232/0.1242, allocations: 0.6324 MB / 397.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002552/0.1268, allocations: 2.224 MB / 399.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.1282, allocations: 1.151 MB / 400.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008506/0.129, allocations: 0.7202 MB / 401.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006706/0.1297, allocations: 0.739 MB / 401.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002568/0.13, allocations: 260 kB / 402.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003419/0.1303, allocations: 291.9 kB / 402.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003517/0.1307, allocations: 474.7 kB / 402.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007634/0.1314, allocations: 0.9296 MB / 403.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002198/0.1336, allocations: 2.6 MB / 406.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1337, allocations: 0 / 406.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1337, allocations: 0 / 406.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.367e-05/0.1337, allocations: 4 kB / 406.5 MB, free: 4.801 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.003213/0.1369, allocations: 1.947 MB / 408.4 MB, free: 2.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.137, allocations: 8.031 kB / 408.4 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002681/0.1372, allocations: 170.9 kB / 408.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.139, allocations: 1.353 MB / 409.9 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.388e-05/0.1391, allocations: 90.45 kB / 410 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/0.1392, allocations: 116.1 kB / 410.1 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.1415, allocations: 1.323 MB / 411.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.093e-05/0.1415, allocations: 3.938 kB / 411.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.1416, allocations: 55.97 kB / 411.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.1417, allocations: 31.94 kB / 411.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001786/0.1435, allocations: 1.007 MB / 412.6 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008018/0.1515, allocations: 5.658 MB / 418.2 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/0.1536, allocations: 2.154 MB / 420.4 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007217/0.1544, allocations: 399.2 kB / 420.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.717e-05/0.1544, allocations: 13.17 kB / 420.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008491/0.1553, allocations: 446.6 kB / 421.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 4.338e-06/0.1553, allocations: 0 / 421.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002137/0.1575, allocations: 0.9701 MB / 422.2 MB, free: 4.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.1576, allocations: 174.7 kB / 422.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/0.1596, allocations: 1.469 MB / 423.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.961e-05/0.1597, allocations: 41.7 kB / 423.9 MB, free: 2.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006102/0.1603, allocations: 0.644 MB / 424.5 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.1605, allocations: 197.2 kB / 424.7 MB, free: 1.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000259/0.1608, allocations: 142.6 kB / 424.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.161, allocations: 333.9 kB / 425.2 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006062/0.1616, allocations: 329.8 kB / 425.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007492/0.1623, allocations: 0.5116 MB / 426 MB, free: 440 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2043/0.3666, allocations: 1.658 MB / 427.7 MB, free: 44.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.3666, allocations: 1.281 kB / 427.7 MB, free: 44.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002281/0.3689, allocations: 1.017 MB / 428.7 MB, free: 44.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.062e-05/0.369, allocations: 38.36 kB / 428.7 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.369, allocations: 6.344 kB / 428.7 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.895e-05/0.3691, allocations: 7.938 kB / 428.7 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007598/0.3699, allocations: 165.6 kB / 428.9 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.214e-05/0.3699, allocations: 12.73 kB / 428.9 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009216/0.3708, allocations: 90.12 kB / 429 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.201e-05/0.3709, allocations: 27.97 kB / 429 MB, free: 44.76 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 ($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.001174/0.3721, allocations: 0.5382 MB / 429.6 MB, free: 44.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003518/0.3725, allocations: 112.3 kB / 429.7 MB, free: 44.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.3743, allocations: 0.7764 MB / 430.4 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.3743, allocations: 6.562 kB / 430.5 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.3743, allocations: 0.5625 kB / 430.5 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.3743, allocations: 3 kB / 430.5 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004247/0.3786, allocations: 2.439 MB / 432.9 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3786, allocations: 1.625 kB / 432.9 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006075/0.3792, allocations: 116 kB / 433 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.227e-05/0.3793, allocations: 2.281 kB / 433 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.399e-05/0.3793, allocations: 15.48 kB / 433 MB, free: 42.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.3793, allocations: 6.656 kB / 433 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3793, allocations: 0 / 433 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.3814, allocations: 1.215 MB / 434.2 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004094/0.3818, allocations: 244.1 kB / 434.5 MB, free: 42.1 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.3821, allocations: 19.12 kB / 434.5 MB, free: 42.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/0.3825, allocations: 29.11 kB / 434.5 MB, free: 42.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3827, allocations: 40.5 kB / 434.6 MB, free: 42.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.725e-05/0.3827, allocations: 17.03 kB / 434.6 MB, free: 42.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001786/0.3845, allocations: 1.04 MB / 435.6 MB, free: 41.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3846, allocations: 0 / 435.6 MB, free: 41.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3856, allocations: 269.5 kB / 435.9 MB, free: 41.58 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 (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.0008569/0.3865, allocations: 390.8 kB / 436.3 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.3886, allocations: 0.8672 MB / 437.1 MB, free: 40.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3886, allocations: 2.625 kB / 437.1 MB, free: 40.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005797/0.3892, allocations: 333.3 kB / 437.5 MB, free: 40.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.3905, allocations: 275.6 kB / 437.7 MB, free: 40.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/0.3951, allocations: 3.098 MB / 440.8 MB, free: 38.83 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009732/0.3961, allocations: 1.33 MB / 442.2 MB, free: 37.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003008/0.3964, allocations: 77.25 kB / 442.2 MB, free: 37.97 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3964, allocations: 0 / 442.2 MB, free: 37.97 MB / 318.1 MB Notification: Performance of Templates: time 0.02272/0.4191, allocations: 18.36 MB / 460.6 MB, free: 22.73 MB / 318.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)