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.001164/0.001163, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001443/0.001443, allocations: 177.3 kB / 15.94 MB, free: 228 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.838/1.838, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05688/0.05688, allocations: 7.042 MB / 277.4 MB, free: 14.17 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.0005479/0.0005479, allocations: 16.2 kB / 337 MB, free: 27.5 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1003, allocations: 49.07 MB / 386.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007599/0.1079, allocations: 5.577 MB / 391.7 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006328/0.1143, allocations: 3.59 MB / 395.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001253/0.1156, allocations: 31.88 kB / 395.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.1176, allocations: 0.7508 MB / 396.1 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.1188, allocations: 319 kB / 396.4 MB, free: 32 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.1199, allocations: 339.5 kB / 396.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002415/0.1223, allocations: 1.251 MB / 398 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.1235, allocations: 0.7676 MB / 398.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006721/0.1242, allocations: 406.1 kB / 399.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005496/0.1248, allocations: 457.3 kB / 399.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.853e-05/0.1249, allocations: 52 kB / 399.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002365/0.1251, allocations: 64 kB / 399.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.1254, allocations: 223 kB / 399.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003689/0.1258, allocations: 348.9 kB / 400.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002234/0.128, allocations: 2.353 MB / 402.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.128, allocations: 0 / 402.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.128, allocations: 0 / 402.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.065e-05/0.1281, allocations: 0 / 402.6 MB, free: 9.781 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.003316/0.1314, allocations: 1.616 MB / 404.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.1315, allocations: 8.031 kB / 404.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003161/0.1318, allocations: 170.7 kB / 404.4 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002841/0.1321, allocations: 173.9 kB / 404.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002747/0.1348, allocations: 1.793 MB / 406.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.135, allocations: 90.05 kB / 406.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.1352, allocations: 111.9 kB / 406.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.1377, allocations: 1.272 MB / 407.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/0.1377, allocations: 3.938 kB / 407.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.1378, allocations: 55.92 kB / 407.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.1379, allocations: 24 kB / 407.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.1399, allocations: 0.9016 MB / 408.8 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008407/0.1483, allocations: 5.331 MB / 414.1 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.1501, allocations: 1.766 MB / 415.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.716e-05/0.1501, allocations: 16 kB / 415.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005981/0.1507, allocations: 303 kB / 416.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.484e-06/0.1508, allocations: 0 / 416.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.001613/0.1524, allocations: 0.6914 MB / 416.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.1525, allocations: 110.8 kB / 417 MB, free: 10.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.1545, allocations: 1.252 MB / 418.3 MB, free: 9.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.259e-05/0.1546, allocations: 33.7 kB / 418.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007049/0.1553, allocations: 0.7019 MB / 419 MB, free: 8.602 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.1554, allocations: 157.8 kB / 419.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.1555, allocations: 8 kB / 419.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1556, allocations: 337.9 kB / 419.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/0.1561, allocations: 237.9 kB / 419.7 MB, free: 7.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000695/0.1568, allocations: 493.3 kB / 420.2 MB, free: 7.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006956/0.1575, allocations: 362.2 kB / 420.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.1576, allocations: 0 / 420.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001832/0.1594, allocations: 0.8904 MB / 421.4 MB, free: 6.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.024e-05/0.1595, allocations: 33.7 kB / 421.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.1595, allocations: 8 kB / 421.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.36e-05/0.1596, allocations: 12.75 kB / 421.5 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006308/0.1602, allocations: 171.7 kB / 421.7 MB, free: 5.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-05/0.1602, allocations: 20.14 kB / 421.7 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006459/0.1609, allocations: 91.16 kB / 421.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.161, allocations: 31.94 kB / 421.8 MB, free: 5.641 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: 37 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count,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 (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001116/0.1621, allocations: 0.5352 MB / 422.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.1623, allocations: 114.6 kB / 422.5 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.1633, allocations: 0.5119 MB / 423 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1634, allocations: 4 kB / 423 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1634, allocations: 4 kB / 423 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.1634, allocations: 7.984 kB / 423 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002719/0.1661, allocations: 1.785 MB / 424.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1661, allocations: 0 / 424.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004496/0.1666, allocations: 95.88 kB / 424.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.1666, allocations: 3.953 kB / 424.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.403e-05/0.1667, allocations: 20.05 kB / 424.9 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.1667, allocations: 4 kB / 424.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1667, allocations: 4 kB / 424.9 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001487/0.1682, allocations: 0.9032 MB / 425.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.1684, allocations: 187.8 kB / 426 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.1686, allocations: 16 kB / 426 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.1689, allocations: 27.92 kB / 426 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.169, allocations: 35.94 kB / 426.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.927e-05/0.169, allocations: 15.98 kB / 426.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.1703, allocations: 0.8884 MB / 427 MB, free: 340 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1703, allocations: 4 kB / 427 MB, free: 336 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008613/0.1711, allocations: 239.1 kB / 427.2 MB, free: 96 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.268/0.4392, allocations: 1.922 MB / 429.1 MB, free: 42.99 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.4408, allocations: 0.6049 MB / 429.7 MB, free: 42.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.4409, allocations: 1.156 kB / 429.7 MB, free: 42.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005274/0.4414, allocations: 232.6 kB / 429.9 MB, free: 42.92 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.4428, allocations: 242 kB / 430.2 MB, free: 42.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007463/0.4503, allocations: 9.626 MB / 439.8 MB, free: 35.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/0.4516, allocations: 1.398 MB / 441.2 MB, free: 34.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008332/0.4524, allocations: 180.6 kB / 441.4 MB, free: 34.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006432/0.4531, allocations: 487.7 kB / 441.9 MB, free: 33.81 MB / 318.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4531, allocations: 0 / 441.9 MB, free: 33.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07492/0.528, allocations: 21.59 MB / 463.5 MB, free: 19.73 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002424/0.5283, allocations: 236.4 kB / 463.7 MB, free: 19.49 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.762/3.29, allocations: 0.875 kB / 463.7 MB, free: 19.49 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) Environment - environmentSimulation: