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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008965/0.0008966, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 196.8 kB / 16.53 MB, free: 6.699 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.235/1.235, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04425/0.04425, allocations: 7.027 MB / 276.8 MB, free: 14.25 MB / 238.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.002441/0.002441, allocations: 75.27 kB / 336 MB, free: 26.98 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07681/0.07927, allocations: 48.09 MB / 384.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007889/0.08719, allocations: 6.786 MB / 390.9 MB, free: 3.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00575/0.09296, allocations: 4.529 MB / 395.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008176/0.0938, allocations: 31.88 kB / 395.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.09595, allocations: 1.007 MB / 396.5 MB, free: 14.39 MB / 302.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.001069/0.09703, allocations: 369 kB / 396.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.09817, allocations: 0.6868 MB / 397.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002153/0.1003, allocations: 2.213 MB / 399.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.1016, allocations: 1.147 MB / 400.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005703/0.1022, allocations: 0.7241 MB / 401.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000626/0.1028, allocations: 0.7351 MB / 402.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002576/0.1031, allocations: 260 kB / 402.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003342/0.1034, allocations: 287.9 kB / 402.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003377/0.1038, allocations: 470.8 kB / 403.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000706/0.1045, allocations: 0.9256 MB / 404.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00218/0.1067, allocations: 3 MB / 407.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1067, allocations: 3.938 kB / 407.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1067, allocations: 0 / 407.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.1067, allocations: 0 / 407.2 MB, free: 3.535 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.002855/0.1096, allocations: 1.951 MB / 409.2 MB, free: 1.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.1096, allocations: 11.97 kB / 409.2 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002446/0.1098, allocations: 174.9 kB / 409.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002534/0.1101, allocations: 170.9 kB / 409.5 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.1118, allocations: 1.361 MB / 410.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.757e-05/0.1119, allocations: 94.45 kB / 411 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.1121, allocations: 111.9 kB / 411.1 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002038/0.1141, allocations: 1.335 MB / 412.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.1142, allocations: 7.938 kB / 412.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.1143, allocations: 44 kB / 412.5 MB, free: 14.06 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.1143, allocations: 28 kB / 412.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/0.1161, allocations: 1.007 MB / 413.5 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006332/0.1225, allocations: 5.662 MB / 419.2 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/0.1244, allocations: 2.139 MB / 421.3 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007191/0.1252, allocations: 411.2 kB / 421.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/0.1252, allocations: 12.55 kB / 421.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007206/0.1259, allocations: 450.5 kB / 422.2 MB, free: 3.906 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.954e-06/0.126, allocations: 0 / 422.2 MB, free: 3.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001789/0.1278, allocations: 0.9702 MB / 423.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/0.1278, allocations: 162.8 kB / 423.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001799/0.1297, allocations: 1.481 MB / 424.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.1297, allocations: 37.7 kB / 424.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005022/0.1302, allocations: 0.6517 MB / 425.5 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.1304, allocations: 201.2 kB / 425.7 MB, free: 348 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002442/0.1307, allocations: 138.6 kB / 425.8 MB, free: 204 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.1235/0.2541, allocations: 334 kB / 426.1 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007707/0.2549, allocations: 321.7 kB / 426.4 MB, free: 45.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007262/0.2557, allocations: 0.5252 MB / 427 MB, free: 45.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003918/0.2596, allocations: 1.661 MB / 428.6 MB, free: 44.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.2596, allocations: 1.094 kB / 428.6 MB, free: 44.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001746/0.2614, allocations: 1.018 MB / 429.7 MB, free: 44.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.2614, allocations: 37.72 kB / 429.7 MB, free: 44.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2615, allocations: 5.25 kB / 429.7 MB, free: 44.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.2615, allocations: 13.16 kB / 429.7 MB, free: 44.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006555/0.2621, allocations: 162.1 kB / 429.9 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.2622, allocations: 9.391 kB / 429.9 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006342/0.2628, allocations: 91.11 kB / 430 MB, free: 44.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.935e-05/0.2629, allocations: 31.53 kB / 430 MB, free: 44.41 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.0007216/0.2636, allocations: 0.5317 MB / 430.5 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.2638, allocations: 118.3 kB / 430.6 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.2652, allocations: 0.7665 MB / 431.4 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.2652, allocations: 9.281 kB / 431.4 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2652, allocations: 1.406 kB / 431.4 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.2652, allocations: 2.672 kB / 431.4 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003114/0.2683, allocations: 2.437 MB / 433.9 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2684, allocations: 2.625 kB / 433.9 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005768/0.2689, allocations: 112.6 kB / 434 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.269, allocations: 2.875 kB / 434 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.913e-05/0.269, allocations: 19.66 kB / 434 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.269, allocations: 7.203 kB / 434 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.269, allocations: 0 / 434 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.2708, allocations: 1.207 MB / 435.2 MB, free: 41.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.271, allocations: 247.8 kB / 435.4 MB, free: 41.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.2712, allocations: 19.62 kB / 435.5 MB, free: 41.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/0.2716, allocations: 39.52 kB / 435.5 MB, free: 41.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.2718, allocations: 37.27 kB / 435.5 MB, free: 41.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.822e-05/0.2718, allocations: 20.06 kB / 435.6 MB, free: 41.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001496/0.2733, allocations: 1.039 MB / 436.6 MB, free: 41.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2733, allocations: 0 / 436.6 MB, free: 41.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006869/0.274, allocations: 268.7 kB / 436.9 MB, free: 41.11 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.002532/0.2765, allocations: 2.041 MB / 438.9 MB, free: 39.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.2782, allocations: 0.8627 MB / 439.8 MB, free: 39.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2782, allocations: 4 kB / 439.8 MB, free: 39.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005175/0.2787, allocations: 333.9 kB / 440.1 MB, free: 39.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.2798, allocations: 276.3 kB / 440.4 MB, free: 39.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.2931, allocations: 12.92 MB / 453.3 MB, free: 29.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006438/0.2937, allocations: 1.371 MB / 454.7 MB, free: 27.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005158/0.2943, allocations: 175.8 kB / 454.8 MB, free: 27.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005356/0.2948, allocations: 0.4954 MB / 455.3 MB, free: 27.23 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2948, allocations: 0 / 455.3 MB, free: 27.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8619/1.157, allocations: 27.29 MB / 482.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/11.6, allocations: 12 kB / 482.6 MB, free: 15.81 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent_fmu --startTime=0 --stopTime=14100 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)