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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009725/0.0009725, allocations: 181 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8846/0.8846, allocations: 158.6 MB / 185.2 MB, free: 2.711 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.03147/0.03147, allocations: 5.571 MB / 243.1 MB, free: 9.418 MB / 234.7 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14100,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14100,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 261.2 MB, free: 7.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.567e-05/1.71e-05, allocations: 6.25 kB / 261.2 MB, free: 7.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007363/0.00738, allocations: 6.481 MB / 267.7 MB, free: 0.793 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005335/0.01271, allocations: 4.617 MB / 272.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.01387, allocations: 35.81 kB / 272.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00232/0.01619, allocations: 1.084 MB / 273.4 MB, free: 11.03 MB / 266.7 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.001285/0.01747, allocations: 420.7 kB / 273.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.0185, allocations: 0.6828 MB / 274.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002277/0.02078, allocations: 2.246 MB / 276.8 MB, free: 7.688 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008713/0.02165, allocations: 0.6557 MB / 277.4 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.02276, allocations: 1.119 MB / 278.6 MB, free: 5.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007501/0.02351, allocations: 0.6585 MB / 279.2 MB, free: 5.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002827/0.02379, allocations: 260 kB / 279.5 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002814/0.02407, allocations: 287.9 kB / 279.7 MB, free: 4.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002606/0.02433, allocations: 486.6 kB / 280.2 MB, free: 4.191 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005387/0.02487, allocations: 0.5885 MB / 280.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.02621, allocations: 1.445 MB / 282.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.02622, allocations: 4 kB / 282.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.02622, allocations: 0 / 282.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.877e-05/0.02625, allocations: 0 / 282.3 MB, free: 2.148 MB / 266.7 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.001968/0.02821, allocations: 1.779 MB / 284 MB, free: 336 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.02825, allocations: 15.98 kB / 284.1 MB, free: 320 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.02845, allocations: 192.8 kB / 284.2 MB, free: 128 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009064/0.02935, allocations: 0.7208 MB / 285 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.02941, allocations: 86.47 kB / 285.1 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.02952, allocations: 108.4 kB / 285.2 MB, free: 15.17 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009478/0.03047, allocations: 0.9444 MB / 286.1 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.03049, allocations: 3.938 kB / 286.1 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.736e-05/0.03055, allocations: 48 kB / 286.2 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.03057, allocations: 24 kB / 286.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004338/0.031, allocations: 276.5 kB / 286.4 MB, free: 13.76 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003307/0.03431, allocations: 3.577 MB / 290 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005911/0.0349, allocations: 483 kB / 290.5 MB, free: 9.605 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.03512, allocations: 154.2 kB / 290.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.03516, allocations: 12.5 kB / 290.7 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.03547, allocations: 313.6 kB / 291 MB, free: 9.098 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.415e-06/0.03547, allocations: 0 / 291 MB, free: 9.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.0004957/0.03597, allocations: 328.8 kB / 291.3 MB, free: 8.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.149e-05/0.03603, allocations: 166.7 kB / 291.4 MB, free: 8.566 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008421/0.03687, allocations: 0.9663 MB / 292.4 MB, free: 7.582 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.03691, allocations: 37.7 kB / 292.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002806/0.03719, allocations: 0.4984 MB / 292.9 MB, free: 7.031 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.03732, allocations: 206.2 kB / 293.1 MB, free: 6.828 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.03747, allocations: 142.5 kB / 293.3 MB, free: 6.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.384e-05/0.03756, allocations: 337.9 kB / 293.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/0.03777, allocations: 126.5 kB / 293.7 MB, free: 6.215 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.03808, allocations: 408.5 kB / 294.1 MB, free: 5.711 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006528/0.03873, allocations: 0.5542 MB / 294.7 MB, free: 5.082 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.03873, allocations: 3.938 kB / 294.7 MB, free: 5.078 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006165/0.03935, allocations: 488.6 kB / 295.2 MB, free: 4.582 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.03939, allocations: 41.69 kB / 295.2 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.0394, allocations: 4 kB / 295.2 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.03942, allocations: 16.03 kB / 295.2 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004772/0.03989, allocations: 167.7 kB / 295.4 MB, free: 4.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.0399, allocations: 11.94 kB / 295.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.04018, allocations: 83.75 kB / 295.5 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.04022, allocations: 24 kB / 295.5 MB, free: 4.234 MB / 282.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: 21 * Number of states: 0 () * Number of discrete variables: 12 (batteryCell.calculator.sOC.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.EquivalentCycles.integrator.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.selfDischarge.qabs.absInt.local_reset,$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 (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.0002953/0.04051, allocations: 171 kB / 295.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-05/0.0406, allocations: 79.92 kB / 295.8 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004254/0.04103, allocations: 329.6 kB / 296.1 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.04103, allocations: 4 kB / 296.1 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.04104, allocations: 4 kB / 296.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.04104, allocations: 3.984 kB / 296.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.04236, allocations: 1.161 MB / 297.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.04236, allocations: 0 / 297.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003464/0.04271, allocations: 123.8 kB / 297.4 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.04272, allocations: 8 kB / 297.4 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.04275, allocations: 19.98 kB / 297.4 MB, free: 2.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.04275, allocations: 3.938 kB / 297.4 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.04276, allocations: 4 kB / 297.4 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005221/0.04328, allocations: 0.5106 MB / 297.9 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.0434, allocations: 107.2 kB / 298 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.652e-05/0.04348, allocations: 19.94 kB / 298 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.04366, allocations: 27.98 kB / 298.1 MB, free: 1.613 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.981e-05/0.04374, allocations: 36.42 kB / 298.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.04376, allocations: 15.98 kB / 298.1 MB, free: 1.562 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004426/0.04421, allocations: 493 kB / 298.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.04421, allocations: 0 / 298.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004988/0.04471, allocations: 279.1 kB / 298.9 MB, free: 0.7969 MB / 282.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.0009939/0.0457, allocations: 466 kB / 299.3 MB, free: 368 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0899/0.1356, allocations: 385.8 kB / 299.7 MB, free: 47.69 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.06e-05/0.1356, allocations: 14.59 kB / 299.7 MB, free: 47.69 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003759/0.136, allocations: 133.9 kB / 299.9 MB, free: 47.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.137, allocations: 238.2 kB / 300.1 MB, free: 47.67 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.1406, allocations: 2.149 MB / 302.2 MB, free: 46.72 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.1409, allocations: 300 kB / 302.5 MB, free: 46.64 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005117/0.1415, allocations: 117.6 kB / 302.6 MB, free: 46.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005328/0.142, allocations: 243.2 kB / 302.9 MB, free: 46.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.883e-06/0.142, allocations: 1 kB / 302.9 MB, free: 46.59 MB / 282.7 MB Notification: Performance of Templates: time 0.02316/0.1652, allocations: 15.07 MB / 318 MB, free: 40.03 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.971184954047203]