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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 185.9 kB / 20.78 MB, free: 1.52 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.611/1.611, allocations: 207.6 MB / 231.4 MB, free: 3.164 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07461/0.07461, allocations: 7.122 MB / 290.6 MB, free: 8.105 MB / 238.1 MB " [Timeout remaining time 180] 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=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.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.002105/0.002105, allocations: 71.89 kB / 407.1 MB, free: 24 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3139, allocations: 50.69 MB / 457.8 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008266/0.3222, allocations: 6.857 MB / 464.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008965/0.3311, allocations: 4.556 MB / 469.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.3331, allocations: 30.72 kB / 469.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003208/0.3363, allocations: 1.014 MB / 470.2 MB, free: 10.69 MB / 334.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.002011/0.3383, allocations: 399.6 kB / 470.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001693/0.34, allocations: 0.6826 MB / 471.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003498/0.3435, allocations: 2.222 MB / 473.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001189/0.3447, allocations: 0.6507 MB / 474.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001162/0.3458, allocations: 0.7238 MB / 474.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009109/0.3468, allocations: 0.7373 MB / 475.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003131/0.3471, allocations: 260.6 kB / 475.9 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004527/0.3475, allocations: 292 kB / 476.2 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004519/0.348, allocations: 478.6 kB / 476.6 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.349, allocations: 0.9296 MB / 477.6 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003762/0.3528, allocations: 3.059 MB / 480.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3528, allocations: 0 / 480.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3528, allocations: 0 / 480.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.402e-05/0.3528, allocations: 0 / 480.6 MB, free: 1.809 MB / 334.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.005196/0.358, allocations: 1.996 MB / 482.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.3581, allocations: 15.97 kB / 482.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003594/0.3584, allocations: 175.9 kB / 482.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.3606, allocations: 1.397 MB / 484.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.911e-05/0.3607, allocations: 82.47 kB / 484.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.3609, allocations: 112.1 kB / 484.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.3633, allocations: 1.327 MB / 485.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.287e-05/0.3633, allocations: 4 kB / 485.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.3635, allocations: 48 kB / 485.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.785e-05/0.3635, allocations: 31.94 kB / 485.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/0.3655, allocations: 1.003 MB / 486.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009995/0.3755, allocations: 5.609 MB / 492.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00282/0.3783, allocations: 2.106 MB / 494.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008586/0.3791, allocations: 386.3 kB / 494.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-05/0.3792, allocations: 12.55 kB / 494.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000807/0.38, allocations: 434.7 kB / 495.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.374e-06/0.38, allocations: 0 / 495.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002378/0.3824, allocations: 0.9824 MB / 496.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.3825, allocations: 170.8 kB / 496.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.385, allocations: 1.477 MB / 498 MB, free: 15.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.423e-05/0.3851, allocations: 41.7 kB / 498 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007622/0.3859, allocations: 0.6653 MB / 498.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002416/0.3861, allocations: 206.2 kB / 498.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/0.3864, allocations: 138.6 kB / 499 MB, free: 14.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3866, allocations: 341.9 kB / 499.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006786/0.3873, allocations: 321.9 kB / 499.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008696/0.3881, allocations: 0.5271 MB / 0.4885 GB, free: 13.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00438/0.3925, allocations: 1.662 MB / 0.4901 GB, free: 11.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3925, allocations: 4 kB / 0.4901 GB, free: 11.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002128/0.3947, allocations: 1.021 MB / 0.4911 GB, free: 10.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.3947, allocations: 33.7 kB / 0.4911 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.3947, allocations: 7.984 kB / 0.4911 GB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.363e-05/0.3948, allocations: 8 kB / 0.4911 GB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.3954, allocations: 159.8 kB / 0.4913 GB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.328e-05/0.3954, allocations: 19.88 kB / 0.4913 GB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007023/0.3961, allocations: 87.73 kB / 0.4914 GB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.565e-05/0.3962, allocations: 31.98 kB / 0.4914 GB, free: 10.28 MB / 366.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.001198/0.3974, allocations: 0.5312 MB / 0.4919 GB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.3976, allocations: 123.2 kB / 0.4921 GB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.3993, allocations: 0.772 MB / 0.4928 GB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.3993, allocations: 11.94 kB / 0.4928 GB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3993, allocations: 0 / 0.4928 GB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.3993, allocations: 3.984 kB / 0.4928 GB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.4032, allocations: 2.428 MB / 0.4952 GB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.4032, allocations: 0 / 0.4952 GB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006366/0.4039, allocations: 119.9 kB / 0.4953 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.131e-05/0.4039, allocations: 0 / 0.4953 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-05/0.404, allocations: 23.98 kB / 0.4953 GB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.404, allocations: 0 / 0.4953 GB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.404, allocations: 4 kB / 0.4953 GB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.4062, allocations: 1.223 MB / 0.4965 GB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005109/0.4067, allocations: 248.2 kB / 0.4968 GB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.4069, allocations: 19.98 kB / 0.4968 GB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000451/0.4073, allocations: 35.97 kB / 0.4968 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.4075, allocations: 36.52 kB / 0.4969 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-05/0.4075, allocations: 23.92 kB / 0.4969 GB, free: 4.574 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001854/0.4094, allocations: 1.036 MB / 0.4979 GB, free: 3.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4094, allocations: 0 / 0.4979 GB, free: 3.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001021/0.4104, allocations: 271.2 kB / 0.4982 GB, free: 3.266 MB / 366.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.001408/0.4118, allocations: 367.2 kB / 0.4985 GB, free: 2.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.4135, allocations: 0.7621 MB / 0.4992 GB, free: 2.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4135, allocations: 0 / 0.4992 GB, free: 2.121 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005976/0.4141, allocations: 315.1 kB / 0.4995 GB, free: 1.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.4153, allocations: 279.8 kB / 0.4998 GB, free: 1.543 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004665/0.42, allocations: 2.676 MB / 0.5024 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.4211, allocations: 1.375 MB / 0.5038 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007347/0.4218, allocations: 171.8 kB / 0.5039 GB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/0.4221, allocations: 71.42 kB / 0.504 GB, free: 13.18 MB / 382.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4221, allocations: 4 kB / 0.504 GB, free: 13.18 MB / 382.1 MB Notification: Performance of Templates: time 0.03014/0.4522, allocations: 14.93 MB / 0.5186 GB, free: 14.22 MB / 398.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: 5.457593576982617]