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.001961/0.001961, allocations: 75.75 kB / 19.76 MB, free: 1.875 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.00272/0.00272, allocations: 160.1 kB / 23.01 MB, free: 4.602 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.351/1.351, allocations: 158.6 MB / 184.8 MB, free: 6.227 MB / 174.1 MB " [Timeout remaining time 178] 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.06218/0.06218, allocations: 5.567 MB / 242.6 MB, free: 13.57 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002174/0.002174, allocations: 71.91 kB / 359.6 MB, free: 12.35 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07872/0.0809, allocations: 50.71 MB / 410.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008463/0.08936, allocations: 6.015 MB / 416.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006382/0.09574, allocations: 4.222 MB / 420.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007132/0.09646, allocations: 39.81 kB / 420.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002218/0.09867, allocations: 1.003 MB / 421.6 MB, free: 14.15 MB / 350.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.0008481/0.09952, allocations: 397 kB / 422 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.1007, allocations: 0.6908 MB / 422.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002367/0.103, allocations: 2.221 MB / 424.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00123/0.1043, allocations: 0.6401 MB / 425.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.1053, allocations: 0.7358 MB / 426.3 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.1065, allocations: 0.7117 MB / 427 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004038/0.1069, allocations: 260 kB / 427.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005687/0.1075, allocations: 296 kB / 427.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006272/0.1081, allocations: 474.6 kB / 428 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009689/0.1091, allocations: 0.6962 MB / 428.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003299/0.1124, allocations: 3.08 MB / 431.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1124, allocations: 0 / 431.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1124, allocations: 0 / 431.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.1124, allocations: 0 / 431.8 MB, free: 3.918 MB / 350.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.003495/0.1159, allocations: 1.925 MB / 433.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1159, allocations: 11.98 kB / 433.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.1162, allocations: 175.9 kB / 433.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002038/0.1183, allocations: 1.335 MB / 435.2 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.125e-05/0.1184, allocations: 90.45 kB / 435.3 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.1185, allocations: 112.1 kB / 435.4 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.161/0.2795, allocations: 1.452 MB / 436.9 MB, free: 24.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.066e-05/0.2796, allocations: 6.578 kB / 436.9 MB, free: 24.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001902/0.2797, allocations: 44.09 kB / 436.9 MB, free: 24.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.2798, allocations: 26.06 kB / 437 MB, free: 24.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.2817, allocations: 1.008 MB / 438 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00612/0.2879, allocations: 4.906 MB / 442.9 MB, free: 21.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.2893, allocations: 0.8233 MB / 443.7 MB, free: 21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007034/0.29, allocations: 379.8 kB / 444.1 MB, free: 20.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.2901, allocations: 8.438 kB / 444.1 MB, free: 20.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007277/0.2908, allocations: 0.5075 MB / 444.6 MB, free: 20.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.204e-06/0.2908, allocations: 0 / 444.6 MB, free: 20.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001775/0.2926, allocations: 0.9764 MB / 445.6 MB, free: 20.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.2926, allocations: 167.3 kB / 445.7 MB, free: 19.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.2942, allocations: 1.424 MB / 447.1 MB, free: 19.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.2943, allocations: 41.33 kB / 447.2 MB, free: 19.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005237/0.2948, allocations: 0.6665 MB / 447.8 MB, free: 18.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.2949, allocations: 205 kB / 448 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.2952, allocations: 139.7 kB / 448.2 MB, free: 18.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.2953, allocations: 337.1 kB / 448.5 MB, free: 18.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005868/0.2959, allocations: 354.7 kB / 448.9 MB, free: 18.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006584/0.2965, allocations: 0.6436 MB / 449.5 MB, free: 17.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003685/0.3002, allocations: 1.675 MB / 451.2 MB, free: 16.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.3002, allocations: 2.281 kB / 451.2 MB, free: 16.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001573/0.3018, allocations: 1.042 MB / 452.2 MB, free: 16.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.3018, allocations: 38.66 kB / 452.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.3018, allocations: 5.094 kB / 452.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.3018, allocations: 8.625 kB / 452.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006581/0.3025, allocations: 166.6 kB / 452.4 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.3025, allocations: 14 kB / 452.4 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005244/0.303, allocations: 86.09 kB / 452.5 MB, free: 16.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.3031, allocations: 31.36 kB / 452.6 MB, free: 16.14 MB / 350.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.0006104/0.3037, allocations: 0.5324 MB / 453.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.3038, allocations: 114.2 kB / 453.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/0.3052, allocations: 0.7638 MB / 454 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3052, allocations: 9.781 kB / 454 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3052, allocations: 0.8906 kB / 454 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3052, allocations: 3.969 kB / 454 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.308, allocations: 2.057 MB / 456 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.308, allocations: 0.875 kB / 456 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005885/0.3086, allocations: 115.2 kB / 456.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3086, allocations: 2.156 kB / 456.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.847e-05/0.3087, allocations: 21.41 kB / 456.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3087, allocations: 2.812 kB / 456.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3087, allocations: 2.625 kB / 456.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.3104, allocations: 1.211 MB / 457.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002497/0.3107, allocations: 175.8 kB / 457.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.3108, allocations: 19.56 kB / 457.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.3112, allocations: 32.3 kB / 457.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.3113, allocations: 38.72 kB / 457.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.882e-05/0.3114, allocations: 19.2 kB / 457.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001204/0.3126, allocations: 0.9954 MB / 458.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3126, allocations: 4 kB / 458.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006891/0.3133, allocations: 279.3 kB / 458.9 MB, free: 13.01 MB / 350.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.001319/0.3146, allocations: 410 kB / 459.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.3158, allocations: 0.7803 MB / 460.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3158, allocations: 4.797 kB / 460.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005035/0.3163, allocations: 317.8 kB / 460.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009405/0.3173, allocations: 254 kB / 460.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.3206, allocations: 2.666 MB / 463.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006503/0.3213, allocations: 0.7818 MB / 464.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005117/0.3218, allocations: 191.3 kB / 464.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/0.322, allocations: 68.5 kB / 464.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.322, allocations: 4 kB / 464.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of Templates: time 0.02231/0.3443, allocations: 14.04 MB / 478.4 MB, free: 10.8 MB / 366.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 -s ida -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.806465402012691] Failed to read output from testmodel.py, exit status != 0: 0.352754237013869 0.36875991299999994 0.25313278399999994 Calling exit ...