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.001893/0.001893, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.002036/0.002036, allocations: 177.2 kB / 22.77 MB, free: 1.66 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 1.353/1.353, allocations: 158.6 MB / 184.6 MB, free: 2.914 MB / 170.7 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.05252/0.05252, allocations: 5.565 MB / 242.4 MB, free: 9.473 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.653e-06/1.653e-06, allocations: 0 / 309.1 MB, free: 53.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.559e-05/2.724e-05, allocations: 7.375 kB / 309.1 MB, free: 53.19 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007567/0.007594, allocations: 6.495 MB / 315.6 MB, free: 48.87 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005798/0.01339, allocations: 4.477 MB / 320.1 MB, free: 44.53 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.01454, allocations: 35.81 kB / 320.1 MB, free: 44.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002186/0.01672, allocations: 1.018 MB / 321.1 MB, free: 43.47 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.001152/0.01788, allocations: 408.8 kB / 321.5 MB, free: 43.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009653/0.01884, allocations: 0.6983 MB / 322.2 MB, free: 42.37 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001892/0.02073, allocations: 2.267 MB / 324.5 MB, free: 40.11 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009261/0.02166, allocations: 0.6446 MB / 325.1 MB, free: 39.44 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008763/0.02254, allocations: 1.135 MB / 326.3 MB, free: 38.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005736/0.02311, allocations: 0.643 MB / 326.9 MB, free: 37.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002249/0.02333, allocations: 260 kB / 327.2 MB, free: 37.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003172/0.02365, allocations: 288 kB / 327.4 MB, free: 37.12 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002852/0.02394, allocations: 486.6 kB / 327.9 MB, free: 36.65 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004701/0.02441, allocations: 0.5885 MB / 328.5 MB, free: 36.06 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002108/0.02651, allocations: 3.109 MB / 331.6 MB, free: 32.94 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.02652, allocations: 4 kB / 331.6 MB, free: 32.94 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.02652, allocations: 0 / 331.6 MB, free: 32.94 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.322e-05/0.02654, allocations: 7.875 kB / 331.6 MB, free: 32.93 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.003006/0.02955, allocations: 2.28 MB / 333.9 MB, free: 30.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.02958, allocations: 11.98 kB / 333.9 MB, free: 30.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000327/0.02991, allocations: 263.8 kB / 334.2 MB, free: 30.33 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.03145, allocations: 1.337 MB / 335.5 MB, free: 28.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.03151, allocations: 86.47 kB / 335.6 MB, free: 28.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.03165, allocations: 112.4 kB / 335.7 MB, free: 28.75 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.03354, allocations: 1.586 MB / 337.3 MB, free: 27.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.03357, allocations: 3.938 kB / 337.3 MB, free: 27.03 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.096e-05/0.03366, allocations: 47.98 kB / 337.3 MB, free: 26.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.03368, allocations: 24 kB / 337.4 MB, free: 26.96 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.0351, allocations: 0.9407 MB / 338.3 MB, free: 26.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006571/0.04168, allocations: 7.592 MB / 345.9 MB, free: 18.19 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.04296, allocations: 0.8521 MB / 346.7 MB, free: 17.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005854/0.04355, allocations: 377 kB / 347.1 MB, free: 16.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.197e-05/0.0436, allocations: 12.5 kB / 347.1 MB, free: 16.95 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000665/0.04427, allocations: 0.5557 MB / 347.7 MB, free: 16.35 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.174e-06/0.04427, allocations: 3.938 kB / 347.7 MB, free: 16.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.001479/0.04575, allocations: 0.9338 MB / 348.6 MB, free: 15.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.0458, allocations: 166.7 kB / 348.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001883/0.04768, allocations: 1.832 MB / 350.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.505e-05/0.04772, allocations: 41.7 kB / 350.7 MB, free: 13.31 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005767/0.0483, allocations: 0.9095 MB / 351.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.04846, allocations: 246.2 kB / 351.8 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.04873, allocations: 208.3 kB / 352 MB, free: 11.94 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.04886, allocations: 0.555 MB / 352.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004599/0.04932, allocations: 335.5 kB / 352.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006119/0.04993, allocations: 0.7453 MB / 353.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.05132, allocations: 1.247 MB / 354.9 MB, free: 8.809 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.05133, allocations: 0 / 354.9 MB, free: 8.809 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001363/0.05269, allocations: 1.038 MB / 355.9 MB, free: 7.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.05272, allocations: 37.69 kB / 356 MB, free: 7.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.05273, allocations: 4 kB / 356 MB, free: 7.703 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.05275, allocations: 12 kB / 356 MB, free: 7.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005919/0.05334, allocations: 168.3 kB / 356.1 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.05335, allocations: 11.94 kB / 356.2 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004671/0.05382, allocations: 79.5 kB / 356.2 MB, free: 7.438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.066e-05/0.05387, allocations: 31.98 kB / 356.3 MB, free: 7.406 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 ($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.0005254/0.0544, allocations: 0.5193 MB / 356.8 MB, free: 6.879 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.05455, allocations: 127.3 kB / 356.9 MB, free: 6.754 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.05568, allocations: 0.727 MB / 357.6 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.05568, allocations: 4 kB / 357.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.05569, allocations: 0 / 357.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.05569, allocations: 3.984 kB / 357.6 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003141/0.05884, allocations: 2.678 MB / 360.3 MB, free: 3.289 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.05884, allocations: 3.938 kB / 360.3 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005092/0.05935, allocations: 123.7 kB / 360.4 MB, free: 3.164 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.05935, allocations: 4 kB / 360.4 MB, free: 3.16 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.678e-05/0.0594, allocations: 16 kB / 360.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.0594, allocations: 4 kB / 360.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.0594, allocations: 0 / 360.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.06087, allocations: 1.261 MB / 361.7 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/0.06111, allocations: 155.1 kB / 361.9 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.06123, allocations: 16 kB / 361.9 MB, free: 1.691 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/0.0616, allocations: 35.97 kB / 361.9 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.06171, allocations: 44.42 kB / 362 MB, free: 1.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/0.06174, allocations: 12 kB / 362 MB, free: 1.602 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001209/0.06295, allocations: 1.081 MB / 363.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.06295, allocations: 0 / 363.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006867/0.06364, allocations: 287.1 kB / 363.3 MB, free: 236 kB / 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.002438/0.06608, allocations: 405 kB / 363.7 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001975/0.06805, allocations: 0.8309 MB / 364.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.06806, allocations: 8 kB / 364.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007343/0.06879, allocations: 347.4 kB / 364.9 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.07019, allocations: 257.7 kB / 365.2 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005282/0.07548, allocations: 2.524 MB / 367.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009877/0.07646, allocations: 0.7467 MB / 368.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006414/0.0771, allocations: 155.3 kB / 368.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002343/0.07734, allocations: 72.5 kB / 368.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of SimCode: time 1.683e-06/0.07734, allocations: 0 / 368.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of Templates: time 0.0288/0.1061, allocations: 14.01 MB / 382.7 MB, free: 12.84 MB / 314.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: 4.948540000943467]