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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 180.5 kB / 15.45 MB, free: 0.6523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07361/0.07361, allocations: 7.05 MB / 23.24 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.4 MB / 230.9 MB, free: 13.38 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009922/0.0009922, allocations: 95.7 kB / 280.7 MB, free: 11.43 MB / 238.1 MB 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: 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: Performance of FrontEnd - loaded program: time 0.0008792/0.0008792, allocations: 16.22 kB / 340.6 MB, free: 26.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1294, allocations: 49.06 MB / 389.7 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008187/0.1377, allocations: 6.26 MB / 395.9 MB, free: 3.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007446/0.1452, allocations: 3.946 MB / 399.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.1467, allocations: 31.94 kB / 399.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002724/0.1495, allocations: 0.8637 MB / 400.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.1511, allocations: 298 kB / 401.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.1524, allocations: 0.6285 MB / 401.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003315/0.1557, allocations: 2.007 MB / 403.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001431/0.1572, allocations: 1.048 MB / 404.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006782/0.1579, allocations: 477.6 kB / 405.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000713/0.1586, allocations: 0.5359 MB / 405.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.1587, allocations: 68 kB / 405.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.159, allocations: 91.98 kB / 405.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.1592, allocations: 258.8 kB / 406.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007094/0.1599, allocations: 0.7281 MB / 406.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002224/0.1622, allocations: 2.78 MB / 409.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1622, allocations: 4 kB / 409.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1622, allocations: 0 / 409.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.786e-05/0.1622, allocations: 0 / 409.7 MB, free: 5.5 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.002872/0.1651, allocations: 1.636 MB / 411.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.1652, allocations: 8.031 kB / 411.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002775/0.1654, allocations: 170.9 kB / 411.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002425/0.1657, allocations: 166.9 kB / 411.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.1675, allocations: 1.365 MB / 413 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.943e-05/0.1676, allocations: 86.48 kB / 413.1 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001786/0.1678, allocations: 115.8 kB / 413.2 MB, free: 1.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.1701, allocations: 1.35 MB / 414.6 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.1702, allocations: 0 / 414.6 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.1703, allocations: 44 kB / 414.6 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.583e-05/0.1703, allocations: 24 kB / 414.6 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002066/0.1724, allocations: 1.027 MB / 415.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008962/0.1814, allocations: 5.697 MB / 421.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002959/0.1844, allocations: 2.166 MB / 423.5 MB, free: 7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000959/0.1854, allocations: 411.2 kB / 423.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.899e-05/0.1854, allocations: 13.17 kB / 423.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009413/0.1864, allocations: 446.7 kB / 424.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.946e-06/0.1864, allocations: 3.938 kB / 424.4 MB, free: 6.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002462/0.1889, allocations: 1.001 MB / 425.4 MB, free: 5.117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.1891, allocations: 166.8 kB / 425.5 MB, free: 4.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002419/0.1915, allocations: 1.473 MB / 427 MB, free: 3.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.787e-05/0.1916, allocations: 41.7 kB / 427.1 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006793/0.1923, allocations: 0.6557 MB / 427.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002287/0.1925, allocations: 193.2 kB / 427.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.1927, allocations: 69.67 kB / 428 MB, free: 2.453 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.1929, allocations: 334 kB / 428.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006833/0.1935, allocations: 333.8 kB / 428.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008616/0.1944, allocations: 0.5193 MB / 429.1 MB, free: 1.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1914/0.3858, allocations: 1.7 MB / 430.8 MB, free: 43.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.3859, allocations: 1.469 kB / 430.8 MB, free: 43.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002059/0.388, allocations: 1.038 MB / 431.9 MB, free: 43.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/0.388, allocations: 38.31 kB / 431.9 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.388, allocations: 6.078 kB / 431.9 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-05/0.3881, allocations: 11.62 kB / 431.9 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.3888, allocations: 167.5 kB / 432.1 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/0.3888, allocations: 10.81 kB / 432.1 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007498/0.3896, allocations: 92.11 kB / 432.2 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.853e-05/0.3897, allocations: 30.2 kB / 432.2 MB, free: 43.03 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.0008982/0.3906, allocations: 0.5289 MB / 432.8 MB, free: 42.9 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.3907, allocations: 112.8 kB / 432.9 MB, free: 42.9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.3924, allocations: 0.7883 MB / 433.7 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.3924, allocations: 6.812 kB / 433.7 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3924, allocations: 0 / 433.7 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.3924, allocations: 8.328 kB / 433.7 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/0.3961, allocations: 2.462 MB / 436.1 MB, free: 41.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3962, allocations: 4.938 kB / 436.1 MB, free: 41.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006245/0.3968, allocations: 116.1 kB / 436.2 MB, free: 41.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.3968, allocations: 2.062 kB / 436.3 MB, free: 41.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.3969, allocations: 19.86 kB / 436.3 MB, free: 41.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.3969, allocations: 3.344 kB / 436.3 MB, free: 41.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3969, allocations: 0.75 kB / 436.3 MB, free: 41.9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.3991, allocations: 1.241 MB / 437.5 MB, free: 41.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003661/0.3995, allocations: 246 kB / 437.8 MB, free: 41.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.3996, allocations: 19.08 kB / 437.8 MB, free: 41.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000456/0.4001, allocations: 38.38 kB / 437.8 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.4002, allocations: 37.69 kB / 437.8 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.4003, allocations: 19.27 kB / 437.9 MB, free: 41.1 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001729/0.402, allocations: 1.04 MB / 438.9 MB, free: 40.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.402, allocations: 1.375 kB / 438.9 MB, free: 40.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009544/0.403, allocations: 264.3 kB / 439.2 MB, free: 40.61 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.002999/0.406, allocations: 2.056 MB / 441.2 MB, free: 39.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.4077, allocations: 0.8001 MB / 442 MB, free: 38.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4077, allocations: 1.25 kB / 442 MB, free: 38.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005597/0.4083, allocations: 344.8 kB / 442.4 MB, free: 38.78 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.4096, allocations: 253.7 kB / 442.6 MB, free: 38.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02264/0.4323, allocations: 13.48 MB / 456.1 MB, free: 30.22 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007578/0.4331, allocations: 1.376 MB / 457.5 MB, free: 28.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007079/0.4338, allocations: 187.8 kB / 457.6 MB, free: 28.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005793/0.4344, allocations: 499.3 kB / 458.1 MB, free: 28.14 MB / 318.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4344, allocations: 3.938 kB / 458.1 MB, free: 28.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.4734, allocations: 26.07 MB / 484.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002475/0.4737, allocations: 267.9 kB / 484.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/3.106, allocations: 3.938 kB / 484.5 MB, free: 1.66 MB / 318.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/linux/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)