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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) 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=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 107.1 kB / 16.37 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 193.8 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0454/0.0454, allocations: 7.034 MB / 277.6 MB, free: 5 MB / 222.1 MB 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.002474/0.002474, allocations: 60.38 kB / 337.3 MB, free: 9.164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2634, allocations: 48.08 MB / 385.4 MB, free: 52.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006801/0.2702, allocations: 6.786 MB / 392.2 MB, free: 47.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005143/0.2754, allocations: 4.533 MB / 396.7 MB, free: 44.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006434/0.276, allocations: 30.06 kB / 396.8 MB, free: 44.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001932/0.278, allocations: 1.011 MB / 397.8 MB, free: 43.87 MB / 318.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.0008005/0.2788, allocations: 367.7 kB / 398.1 MB, free: 43.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009093/0.2797, allocations: 0.6836 MB / 398.8 MB, free: 43.1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001914/0.2816, allocations: 2.227 MB / 401.1 MB, free: 41.94 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.2829, allocations: 1.144 MB / 402.2 MB, free: 41.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007106/0.2836, allocations: 0.7257 MB / 402.9 MB, free: 40.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005749/0.2842, allocations: 0.737 MB / 403.7 MB, free: 40.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002552/0.2845, allocations: 261.1 kB / 403.9 MB, free: 40.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003493/0.2848, allocations: 289.6 kB / 404.2 MB, free: 40.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002559/0.2851, allocations: 471.5 kB / 404.7 MB, free: 39.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006116/0.2857, allocations: 0.9319 MB / 405.6 MB, free: 39.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001791/0.2875, allocations: 3.044 MB / 408.6 MB, free: 36.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2875, allocations: 1.375 kB / 408.6 MB, free: 36.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2875, allocations: 0 / 408.6 MB, free: 36.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.712e-05/0.2875, allocations: 0 / 408.6 MB, free: 36.85 MB / 318.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.002923/0.2905, allocations: 1.948 MB / 410.6 MB, free: 35.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.2905, allocations: 9.406 kB / 410.6 MB, free: 35.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000239/0.2908, allocations: 165.4 kB / 410.8 MB, free: 35.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.2924, allocations: 1.386 MB / 412.1 MB, free: 34.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.718e-05/0.2925, allocations: 83.62 kB / 412.2 MB, free: 34.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.2926, allocations: 111 kB / 412.3 MB, free: 34.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/0.2945, allocations: 1.337 MB / 413.7 MB, free: 32.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.2945, allocations: 7.922 kB / 413.7 MB, free: 32.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.153e-05/0.2946, allocations: 48 kB / 413.7 MB, free: 32.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.2946, allocations: 24 kB / 413.7 MB, free: 32.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.2962, allocations: 1.007 MB / 414.8 MB, free: 31.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005063/0.3012, allocations: 5.605 MB / 420.4 MB, free: 26.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.3027, allocations: 2.163 MB / 422.5 MB, free: 23.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005851/0.3033, allocations: 399.2 kB / 422.9 MB, free: 23.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.3033, allocations: 16.56 kB / 422.9 MB, free: 23.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005797/0.3039, allocations: 438.6 kB / 423.4 MB, free: 22.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.853e-06/0.3039, allocations: 0 / 423.4 MB, free: 22.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001487/0.3054, allocations: 0.9701 MB / 424.3 MB, free: 21.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.3055, allocations: 174.7 kB / 424.5 MB, free: 21.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/0.3069, allocations: 1.465 MB / 426 MB, free: 20.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.3069, allocations: 41.7 kB / 426 MB, free: 20.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/0.3073, allocations: 0.6524 MB / 426.7 MB, free: 19.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.3074, allocations: 193.2 kB / 426.8 MB, free: 19.17 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.3076, allocations: 138.6 kB / 427 MB, free: 19.03 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.27e-05/0.3077, allocations: 341.9 kB / 427.3 MB, free: 18.69 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004914/0.3082, allocations: 321.9 kB / 427.6 MB, free: 18.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005508/0.3087, allocations: 0.5165 MB / 428.1 MB, free: 17.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003213/0.312, allocations: 1.666 MB / 429.8 MB, free: 16.03 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.312, allocations: 0 / 429.8 MB, free: 16.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001343/0.3133, allocations: 1.02 MB / 430.8 MB, free: 14.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.3134, allocations: 37.7 kB / 430.9 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3134, allocations: 8 kB / 430.9 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3134, allocations: 12.61 kB / 430.9 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005786/0.314, allocations: 167.7 kB / 431 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.314, allocations: 11.94 kB / 431.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/0.3145, allocations: 91.19 kB / 431.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.068e-05/0.3146, allocations: 28 kB / 431.2 MB, free: 14.64 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.0005218/0.3151, allocations: 0.5333 MB / 431.7 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.3152, allocations: 110.6 kB / 431.8 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.3164, allocations: 0.7719 MB / 432.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.3164, allocations: 8.047 kB / 432.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3164, allocations: 3.938 kB / 432.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3164, allocations: 3.984 kB / 432.6 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.3193, allocations: 2.428 MB / 435 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3193, allocations: 4 kB / 435 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000531/0.3199, allocations: 111.9 kB / 435.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.3199, allocations: 0 / 435.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.555e-05/0.3199, allocations: 19.98 kB / 435.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3199, allocations: 0 / 435.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.32, allocations: 4 kB / 435.2 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.3215, allocations: 1.214 MB / 436.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002552/0.3217, allocations: 243.5 kB / 436.6 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.3219, allocations: 23.98 kB / 436.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.3223, allocations: 39.97 kB / 436.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.24e-05/0.3224, allocations: 32.52 kB / 436.7 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.912e-05/0.3224, allocations: 23.92 kB / 436.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001035/0.3235, allocations: 1.04 MB / 437.8 MB, free: 7.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3235, allocations: 0 / 437.8 MB, free: 7.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006337/0.3241, allocations: 259 kB / 438 MB, free: 7.656 MB / 318.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.0007458/0.3249, allocations: 382 kB / 438.4 MB, free: 7.297 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.326, allocations: 0.7964 MB / 439.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.326, allocations: 0 / 439.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000456/0.3265, allocations: 327.1 kB / 439.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009666/0.3274, allocations: 284.6 kB / 439.8 MB, free: 5.891 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.3305, allocations: 2.638 MB / 442.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006415/0.3311, allocations: 1.375 MB / 443.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000478/0.3316, allocations: 179.8 kB / 444 MB, free: 1.645 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.3318, allocations: 71.42 kB / 444.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3318, allocations: 4 kB / 444.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of Templates: time 0.0233/0.3551, allocations: 14.39 MB / 458.5 MB, free: 3.16 MB / 334.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile (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 gbode -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)