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.001275/0.001275, allocations: 80.59 kB / 19.18 MB, free: 2.531 MB / 14.72 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.00143/0.00143, allocations: 165 kB / 22.46 MB, free: 5.355 MB / 14.72 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 1.256/1.256, allocations: 158.6 MB / 184.2 MB, free: 6.414 MB / 174.1 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.0504/0.0504, allocations: 5.552 MB / 242 MB, free: 13.69 MB / 238.1 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.473e-06/1.473e-06, allocations: 0 / 359.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.386e-05/1.533e-05, allocations: 6.219 kB / 359.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.00536/0.005375, allocations: 6.012 MB / 365.2 MB, free: 6.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004126/0.009502, allocations: 4.229 MB / 369.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006376/0.01014, allocations: 43.75 kB / 369.5 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001726/0.01186, allocations: 1.006 MB / 370.5 MB, free: 1.145 MB / 286.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.0007341/0.0126, allocations: 420.7 kB / 370.9 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008601/0.01346, allocations: 0.6829 MB / 371.6 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002562/0.01602, allocations: 2.279 MB / 373.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.01704, allocations: 0.6401 MB / 374.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001245/0.01829, allocations: 1.135 MB / 375.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007436/0.01903, allocations: 0.6078 MB / 376.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003014/0.01933, allocations: 260 kB / 376.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003927/0.01973, allocations: 295.9 kB / 376.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004302/0.02016, allocations: 474.7 kB / 377.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006526/0.02081, allocations: 0.5924 MB / 377.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003042/0.02385, allocations: 3.105 MB / 381 MB, free: 6.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.02385, allocations: 0 / 381 MB, free: 6.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.02385, allocations: 0 / 381 MB, free: 6.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.02388, allocations: 0 / 381 MB, free: 6.625 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.003329/0.0272, allocations: 1.909 MB / 382.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.02724, allocations: 11.98 kB / 382.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002827/0.02752, allocations: 175.9 kB / 383.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.02947, allocations: 1.342 MB / 384.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.588e-05/0.02955, allocations: 86.47 kB / 384.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.02973, allocations: 104.4 kB / 384.6 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.03217, allocations: 1.461 MB / 386.1 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.0322, allocations: 3.938 kB / 386.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.03231, allocations: 44 kB / 386.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.03233, allocations: 28 kB / 386.1 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001996/0.03433, allocations: 1.003 MB / 387.1 MB, free: 264 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006859/0.04119, allocations: 4.904 MB / 392 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.04284, allocations: 0.8184 MB / 392.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007838/0.04362, allocations: 374.2 kB / 393.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.012e-05/0.04367, allocations: 12.5 kB / 393.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008317/0.04451, allocations: 0.5066 MB / 393.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 4.028e-06/0.04451, allocations: 3.984 kB / 393.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001935/0.04644, allocations: 0.9689 MB / 394.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.04656, allocations: 166.7 kB / 394.9 MB, free: 8.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/0.04877, allocations: 1.434 MB / 396.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.757e-05/0.04884, allocations: 37.7 kB / 396.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006308/0.04947, allocations: 0.6689 MB / 397 MB, free: 6.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.04967, allocations: 202.2 kB / 397.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.04992, allocations: 142.6 kB / 397.3 MB, free: 5.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.05007, allocations: 337.9 kB / 397.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006676/0.05074, allocations: 351.5 kB / 398 MB, free: 5.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008965/0.05164, allocations: 0.6488 MB / 398.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004314/0.05595, allocations: 1.67 MB / 400.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.05596, allocations: 4 kB / 400.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001858/0.05782, allocations: 1.043 MB / 401.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/0.05786, allocations: 37.8 kB / 401.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.05787, allocations: 4 kB / 401.4 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.05789, allocations: 11.98 kB / 401.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007014/0.05859, allocations: 159.7 kB / 401.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.05861, allocations: 15.98 kB / 401.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005136/0.05912, allocations: 83.48 kB / 401.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.298e-05/0.05918, allocations: 32 kB / 401.7 MB, free: 1.199 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.0007424/0.05993, allocations: 0.5368 MB / 402.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.06008, allocations: 111.3 kB / 402.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.06165, allocations: 0.7699 MB / 403.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.06166, allocations: 11.98 kB / 403.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.06166, allocations: 0 / 403.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.06167, allocations: 0 / 403.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003367/0.06504, allocations: 2.051 MB / 405.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.06504, allocations: 0 / 405.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006145/0.06565, allocations: 119.8 kB / 405.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.06566, allocations: 0 / 405.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-05/0.06571, allocations: 20 kB / 405.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.06572, allocations: 11.92 kB / 405.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.06572, allocations: 0 / 405.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002145/0.06786, allocations: 1.213 MB / 406.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002593/0.06812, allocations: 167.1 kB / 406.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.06825, allocations: 20 kB / 406.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004381/0.06869, allocations: 35.95 kB / 406.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.0688, allocations: 40.42 kB / 406.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-05/0.06885, allocations: 16 kB / 406.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001442/0.07029, allocations: 0.9993 MB / 407.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.07029, allocations: 0 / 407.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007279/0.07102, allocations: 279.1 kB / 408.1 MB, free: 10.73 MB / 334.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.001459/0.07248, allocations: 401.4 kB / 408.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.07399, allocations: 0.7825 MB / 409.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.07399, allocations: 4 kB / 409.3 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006233/0.07462, allocations: 314.7 kB / 409.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.0757, allocations: 244.7 kB / 409.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004241/0.07994, allocations: 2.587 MB / 412.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009567/0.0809, allocations: 0.7857 MB / 413.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005505/0.08145, allocations: 191.3 kB / 413.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.08169, allocations: 68.44 kB / 413.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.08169, allocations: 0 / 413.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of Templates: time 0.02547/0.1072, allocations: 13.98 MB / 427.4 MB, free: 7.277 MB / 350.1 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=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.4971913844347] Failed to read output from testmodel.py, exit status != 0: 0.11483819782733917 0.260948876 0.23453009500000002 Calling exit ...