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.0009516/0.0009516, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.0009728/0.0009728, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.947/0.947, allocations: 158.6 MB / 185.9 MB, free: 2.809 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.03486/0.03486, allocations: 5.581 MB / 243.9 MB, free: 9.348 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.863e-06/1.863e-06, allocations: 0 / 311 MB, free: 52.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.61e-05, allocations: 4.703 kB / 311 MB, free: 52.95 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006803/0.006829, allocations: 6.4 MB / 317.4 MB, free: 48.47 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005106/0.01194, allocations: 4.455 MB / 321.9 MB, free: 43.99 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.01306, allocations: 39.81 kB / 321.9 MB, free: 43.95 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.01501, allocations: 1.014 MB / 323 MB, free: 42.93 MB / 282.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.001333/0.01634, allocations: 416.7 kB / 323.4 MB, free: 42.52 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.01757, allocations: 0.6904 MB / 324.1 MB, free: 41.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002691/0.02026, allocations: 2.267 MB / 326.3 MB, free: 39.58 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.02144, allocations: 0.6372 MB / 327 MB, free: 38.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001307/0.02275, allocations: 1.146 MB / 328.1 MB, free: 37.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007084/0.02345, allocations: 0.643 MB / 328.7 MB, free: 37.12 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000317/0.02377, allocations: 256 kB / 329 MB, free: 36.87 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002647/0.02404, allocations: 295.9 kB / 329.3 MB, free: 36.58 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.02426, allocations: 478.6 kB / 329.8 MB, free: 36.11 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005498/0.02481, allocations: 0.5963 MB / 330.3 MB, free: 35.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001345/0.02615, allocations: 1.445 MB / 331.8 MB, free: 34.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.02616, allocations: 0 / 331.8 MB, free: 34.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.02616, allocations: 0 / 331.8 MB, free: 34.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.968e-05/0.0262, allocations: 0 / 331.8 MB, free: 34.07 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002128/0.02833, allocations: 2.037 MB / 333.8 MB, free: 31.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.02838, allocations: 19.98 kB / 333.8 MB, free: 31.96 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002689/0.02865, allocations: 259.8 kB / 334.1 MB, free: 31.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009168/0.02956, allocations: 1.167 MB / 335.3 MB, free: 30.49 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.607e-05/0.02962, allocations: 90.41 kB / 335.4 MB, free: 30.4 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.02972, allocations: 108.4 kB / 335.5 MB, free: 30.3 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008516/0.03057, allocations: 0.9497 MB / 336.4 MB, free: 29.21 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.0306, allocations: 7.875 kB / 336.4 MB, free: 29.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.859e-05/0.03066, allocations: 51.98 kB / 336.5 MB, free: 29.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.03067, allocations: 28 kB / 336.5 MB, free: 29.13 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.03109, allocations: 285.6 kB / 336.8 MB, free: 28.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.03458, allocations: 5.024 MB / 341.8 MB, free: 23.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.03515, allocations: 460.9 kB / 342.3 MB, free: 23.25 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.03537, allocations: 171 kB / 342.4 MB, free: 23.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.03541, allocations: 8.5 kB / 342.4 MB, free: 23.08 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002734/0.03568, allocations: 332.9 kB / 342.8 MB, free: 22.71 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.03568, allocations: 0 / 342.8 MB, free: 22.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.0005802/0.03626, allocations: 440.4 kB / 343.2 MB, free: 22.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.0363, allocations: 178.6 kB / 343.4 MB, free: 22.06 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008071/0.03711, allocations: 1.089 MB / 344.4 MB, free: 20.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.972e-05/0.03715, allocations: 41.7 kB / 344.5 MB, free: 20.9 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.03752, allocations: 0.7804 MB / 345.3 MB, free: 20.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.03763, allocations: 218.2 kB / 345.5 MB, free: 19.9 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.03778, allocations: 152.2 kB / 345.6 MB, free: 19.74 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.25e-05/0.03784, allocations: 0.5198 MB / 346.1 MB, free: 19.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.03801, allocations: 111.6 kB / 346.3 MB, free: 19.1 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/0.03826, allocations: 491.1 kB / 346.7 MB, free: 18.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005526/0.03882, allocations: 0.5874 MB / 347.3 MB, free: 17.79 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.03882, allocations: 0 / 347.3 MB, free: 17.79 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006759/0.0395, allocations: 0.6091 MB / 347.9 MB, free: 17.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.03953, allocations: 37.69 kB / 348 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.03953, allocations: 4 kB / 348 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.03955, allocations: 8 kB / 348 MB, free: 17.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000351/0.0399, allocations: 155.8 kB / 348.1 MB, free: 16.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.03991, allocations: 11.94 kB / 348.1 MB, free: 16.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.04018, allocations: 83.84 kB / 348.2 MB, free: 16.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.04022, allocations: 28.03 kB / 348.3 MB, free: 16.84 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.000291/0.04051, allocations: 222.6 kB / 348.5 MB, free: 16.61 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.727e-05/0.04061, allocations: 131.2 kB / 348.6 MB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004692/0.04108, allocations: 392.6 kB / 349 MB, free: 16.1 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.04108, allocations: 4 kB / 349 MB, free: 16.09 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.04108, allocations: 4 kB / 349 MB, free: 16.09 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.04109, allocations: 3.984 kB / 349 MB, free: 16.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.04253, allocations: 1.539 MB / 350.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.04253, allocations: 4 kB / 350.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.04283, allocations: 103.9 kB / 350.6 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.04283, allocations: 4 kB / 350.6 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.04286, allocations: 19.94 kB / 350.7 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.04286, allocations: 4 kB / 350.7 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.04287, allocations: 0 / 350.7 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005458/0.04341, allocations: 0.6399 MB / 351.3 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.04354, allocations: 155.1 kB / 351.5 MB, free: 13.56 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.2e-05/0.04363, allocations: 23.92 kB / 351.5 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.04381, allocations: 23.98 kB / 351.5 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.628e-05/0.04388, allocations: 36.42 kB / 351.5 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.0439, allocations: 16 kB / 351.6 MB, free: 13.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004124/0.04431, allocations: 0.6085 MB / 352.2 MB, free: 12.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04431, allocations: 0 / 352.2 MB, free: 12.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005108/0.04482, allocations: 275.2 kB / 352.4 MB, free: 12.58 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.000732/0.04555, allocations: 357.2 kB / 352.8 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005035/0.04606, allocations: 417.7 kB / 353.2 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.04606, allocations: 0 / 353.2 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.04623, allocations: 155.4 kB / 353.3 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006401/0.04688, allocations: 254.5 kB / 353.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002708/0.04958, allocations: 2.19 MB / 355.8 MB, free: 9.238 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.04986, allocations: 362.9 kB / 356.1 MB, free: 8.859 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004396/0.0503, allocations: 115.4 kB / 356.2 MB, free: 8.742 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004785/0.05078, allocations: 282.1 kB / 356.5 MB, free: 8.465 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.05078, allocations: 4 kB / 356.5 MB, free: 8.461 MB / 282.7 MB Notification: Performance of Templates: time 0.05691/0.1077, allocations: 15.38 MB / 371.9 MB, free: 9.055 MB / 298.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 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.253990706987679]