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.005434/0.005434, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001328/0.001328, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.279/1.279, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0482/0.0482, allocations: 7.046 MB / 277 MB, free: 14.13 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.002013/0.002014, allocations: 79.86 kB / 384.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2159, allocations: 48.09 MB / 432.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.005981/0.2219, allocations: 6.789 MB / 439.7 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005213/0.2271, allocations: 4.532 MB / 444.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006958/0.2279, allocations: 31.28 kB / 444.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002047/0.2299, allocations: 1.012 MB / 445.3 MB, free: 15.29 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.0008799/0.2308, allocations: 363 kB / 445.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.2319, allocations: 0.684 MB / 446.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002493/0.2344, allocations: 2.224 MB / 448.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.2359, allocations: 1.144 MB / 449.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009018/0.2368, allocations: 0.7214 MB / 450.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008383/0.2376, allocations: 0.7361 MB / 451.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002689/0.2379, allocations: 258.7 kB / 451.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003665/0.2383, allocations: 286.6 kB / 451.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004054/0.2387, allocations: 475.3 kB / 452.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008579/0.2396, allocations: 0.9339 MB / 453 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003037/0.2426, allocations: 3.057 MB / 456.1 MB, free: 8.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.2426, allocations: 4 kB / 456.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2427, allocations: 0 / 456.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.482e-05/0.2427, allocations: 4 kB / 456.1 MB, free: 8.441 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.003574/0.2463, allocations: 1.993 MB / 458.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.2463, allocations: 9.438 kB / 458.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002622/0.2466, allocations: 174.5 kB / 458.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002964/0.2469, allocations: 178.2 kB / 458.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.2489, allocations: 1.387 MB / 459.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-05/0.2489, allocations: 92.45 kB / 459.9 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.2491, allocations: 119.4 kB / 460.1 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.2514, allocations: 1.328 MB / 461.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.2514, allocations: 4.75 kB / 461.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.2515, allocations: 47.27 kB / 461.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.158e-05/0.2515, allocations: 25.75 kB / 461.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001854/0.2534, allocations: 1.01 MB / 462.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007017/0.2604, allocations: 5.63 MB / 468.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/0.2626, allocations: 2.137 MB / 470.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007772/0.2634, allocations: 422.2 kB / 470.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.2635, allocations: 4.562 kB / 470.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007557/0.2642, allocations: 442.6 kB / 471.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.034e-06/0.2643, allocations: 0 / 471.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001895/0.2662, allocations: 0.9824 MB / 472.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.2663, allocations: 166.8 kB / 472.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001909/0.2682, allocations: 1.469 MB / 473.7 MB, free: 8.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/0.2683, allocations: 37.7 kB / 473.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005949/0.2689, allocations: 0.6731 MB / 474.4 MB, free: 8.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.269, allocations: 202.3 kB / 474.6 MB, free: 8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.2693, allocations: 146.7 kB / 474.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2694, allocations: 337.9 kB / 475.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006138/0.2701, allocations: 325.8 kB / 475.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007634/0.2708, allocations: 0.5115 MB / 475.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003973/0.2748, allocations: 1.67 MB / 477.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.2748, allocations: 0 / 477.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001799/0.2766, allocations: 1.026 MB / 478.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.2767, allocations: 37.69 kB / 478.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.2767, allocations: 8.031 kB / 478.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.2767, allocations: 11.94 kB / 478.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006417/0.2774, allocations: 163.7 kB / 478.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.2774, allocations: 8 kB / 478.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005463/0.278, allocations: 95.41 kB / 478.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/0.278, allocations: 28 kB / 479 MB, free: 3.457 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.0007313/0.2788, allocations: 0.5352 MB / 479.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.2789, allocations: 119.2 kB / 479.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.2804, allocations: 0.7719 MB / 480.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.2804, allocations: 4 kB / 480.4 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2804, allocations: 3.938 kB / 480.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.2805, allocations: 7.984 kB / 480.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003377/0.2838, allocations: 2.432 MB / 482.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2839, allocations: 3.984 kB / 482.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/0.2844, allocations: 107.9 kB / 482.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2844, allocations: 8 kB / 482.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.9e-05/0.2845, allocations: 19.98 kB / 483 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.2845, allocations: 4 kB / 483 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2845, allocations: 4 kB / 483 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.2865, allocations: 1.223 MB / 484.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002772/0.2868, allocations: 248.2 kB / 484.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.2869, allocations: 20 kB / 484.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004072/0.2873, allocations: 31.97 kB / 484.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.2874, allocations: 44.38 kB / 484.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.2875, allocations: 16 kB / 484.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00137/0.2888, allocations: 1.044 MB / 485.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2889, allocations: 0 / 485.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007118/0.2896, allocations: 275.2 kB / 485.9 MB, free: 12.42 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.003355/0.2929, allocations: 2.016 MB / 487.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.2943, allocations: 0.7892 MB / 488.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2943, allocations: 4 kB / 488.7 MB, free: 9.582 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005857/0.2949, allocations: 331.1 kB / 489 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.296, allocations: 284 kB / 489.3 MB, free: 8.977 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01807/0.3141, allocations: 11.95 MB / 0.4895 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001169/0.3153, allocations: 1.379 MB / 0.4908 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005952/0.3159, allocations: 179.8 kB / 0.491 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007366/0.3166, allocations: 0.4954 MB / 0.4915 GB, free: 10.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3167, allocations: 3.938 kB / 0.4915 GB, free: 10.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.695/3.011, allocations: 27.97 MB / 0.5188 GB, free: 14.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.23/18.24, allocations: 15.8 kB / 0.5188 GB, free: 14.55 MB / 414.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)