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.000916/0.000916, allocations: 97.64 kB / 15.36 MB, free: 0.7305 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.00085/0.0008502, allocations: 172.5 kB / 16.26 MB, free: 6.664 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.413/1.413, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.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.042 MB / 277.8 MB, free: 14.16 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.0005265/0.0005265, allocations: 20 kB / 337.7 MB, free: 27.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08683, allocations: 49.06 MB / 386.7 MB, free: 9.977 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007092/0.09395, allocations: 6.26 MB / 393 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00599/0.09998, allocations: 3.953 MB / 397 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.1011, allocations: 35.88 kB / 397 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001953/0.1031, allocations: 0.852 MB / 397.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.1041, allocations: 298.1 kB / 398.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.1053, allocations: 0.6362 MB / 398.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002011/0.1073, allocations: 1.99 MB / 400.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.1086, allocations: 1.06 MB / 401.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006013/0.1092, allocations: 473.6 kB / 402.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005394/0.1097, allocations: 0.532 MB / 402.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.1099, allocations: 72 kB / 402.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.1101, allocations: 95.92 kB / 403 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.1103, allocations: 254.8 kB / 403.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005959/0.1109, allocations: 0.7242 MB / 404 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002097/0.113, allocations: 2.78 MB / 406.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.113, allocations: 0 / 406.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.113, allocations: 0 / 406.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.1131, allocations: 0 / 406.7 MB, free: 5.867 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.002649/0.1157, allocations: 1.639 MB / 408.4 MB, free: 4.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1158, allocations: 12.03 kB / 408.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002656/0.1161, allocations: 170.9 kB / 408.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000237/0.1163, allocations: 166.9 kB / 408.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.118, allocations: 1.361 MB / 410.1 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.203e-05/0.1181, allocations: 90.48 kB / 410.2 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.1182, allocations: 119.8 kB / 410.3 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.1205, allocations: 1.343 MB / 411.6 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.1205, allocations: 4 kB / 411.6 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.8e-05/0.1206, allocations: 44 kB / 411.7 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.1206, allocations: 24 kB / 411.7 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001899/0.1225, allocations: 1.027 MB / 412.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007103/0.1297, allocations: 5.713 MB / 418.4 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002213/0.1319, allocations: 2.154 MB / 420.6 MB, free: 7.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007085/0.1326, allocations: 411.2 kB / 421 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.733e-05/0.1327, allocations: 9.188 kB / 421 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007376/0.1334, allocations: 446.7 kB / 421.4 MB, free: 6.488 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 4.038e-06/0.1334, allocations: 11.86 kB / 421.4 MB, free: 6.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001836/0.1353, allocations: 0.9974 MB / 422.4 MB, free: 5.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.851e-05/0.1354, allocations: 166.8 kB / 422.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/0.1372, allocations: 1.477 MB / 424.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.448e-05/0.1373, allocations: 37.7 kB / 424.1 MB, free: 3.738 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005472/0.1379, allocations: 0.6479 MB / 424.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/0.1381, allocations: 201.2 kB / 425 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1382, allocations: 73.67 kB / 425 MB, free: 2.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1383, allocations: 334 kB / 425.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006018/0.1389, allocations: 333.8 kB / 425.7 MB, free: 2.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007308/0.1397, allocations: 0.5193 MB / 426.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1671/0.3067, allocations: 1.697 MB / 427.9 MB, free: 44.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.3068, allocations: 1.531 kB / 427.9 MB, free: 44.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002088/0.3089, allocations: 1.036 MB / 428.9 MB, free: 44.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.3089, allocations: 34.89 kB / 429 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.3089, allocations: 5.219 kB / 429 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.309, allocations: 11.97 kB / 429 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006553/0.3096, allocations: 172.6 kB / 429.2 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.3097, allocations: 9.656 kB / 429.2 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005844/0.3103, allocations: 92.61 kB / 429.3 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.553e-05/0.3103, allocations: 30.05 kB / 429.3 MB, free: 44.16 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.0008647/0.3112, allocations: 0.5286 MB / 429.8 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.3113, allocations: 111.2 kB / 429.9 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.3128, allocations: 0.7924 MB / 430.7 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3128, allocations: 7.719 kB / 430.7 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3128, allocations: 3.625 kB / 430.7 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.3128, allocations: 6.75 kB / 430.7 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.3162, allocations: 2.451 MB / 433.2 MB, free: 42.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3162, allocations: 0 / 433.2 MB, free: 42.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005622/0.3168, allocations: 121.8 kB / 433.3 MB, free: 42.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.3168, allocations: 1.375 kB / 433.3 MB, free: 42.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.3168, allocations: 17.5 kB / 433.3 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.3168, allocations: 7.062 kB / 433.3 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3169, allocations: 6.328 kB / 433.3 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.3186, allocations: 1.236 MB / 434.6 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.3188, allocations: 246.7 kB / 434.8 MB, free: 42.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.319, allocations: 19.08 kB / 434.8 MB, free: 42.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.3194, allocations: 41.34 kB / 434.9 MB, free: 42.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3195, allocations: 37.77 kB / 434.9 MB, free: 42.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.416e-05/0.3196, allocations: 16.3 kB / 434.9 MB, free: 42.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001632/0.3212, allocations: 1.036 MB / 436 MB, free: 41.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3212, allocations: 0 / 436 MB, free: 41.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007914/0.322, allocations: 270 kB / 436.2 MB, free: 41.59 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.002855/0.3249, allocations: 2.065 MB / 438.3 MB, free: 40.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.3264, allocations: 0.8053 MB / 439.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3264, allocations: 0 / 439.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005268/0.3269, allocations: 342.1 kB / 439.4 MB, free: 39.76 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3282, allocations: 247.7 kB / 439.7 MB, free: 39.67 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/0.3487, allocations: 13.48 MB / 453.1 MB, free: 30.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008831/0.3496, allocations: 1.376 MB / 454.5 MB, free: 29.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007733/0.3504, allocations: 183.8 kB / 454.7 MB, free: 29.06 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005501/0.351, allocations: 0.4922 MB / 455.2 MB, free: 28.57 MB / 318.1 MB Notification: Performance of SimCode: time 1.143e-06/0.351, allocations: 0 / 455.2 MB, free: 28.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03777/0.3888, allocations: 26.07 MB / 481.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/0.389, allocations: 264 kB / 481.5 MB, free: 2.105 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.566, allocations: 4 kB / 481.5 MB, free: 2.102 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/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)