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.0007958/0.0007959, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0009184/0.0009185, allocations: 168.7 kB / 15.95 MB, free: 204 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.249/1.249, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04594/0.04594, allocations: 7.034 MB / 277.4 MB, free: 14.28 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.0005207/0.0005207, allocations: 16 kB / 337.1 MB, free: 27.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07531/0.07584, allocations: 49.07 MB / 386.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006255/0.08213, allocations: 5.865 MB / 392 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004861/0.08702, allocations: 3.671 MB / 395.7 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006116/0.08766, allocations: 31.88 kB / 395.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.08915, allocations: 0.739 MB / 396.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006381/0.0898, allocations: 254.1 kB / 396.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007545/0.09056, allocations: 339.5 kB / 397 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001706/0.09228, allocations: 1.756 MB / 398.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009949/0.09329, allocations: 0.7867 MB / 399.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000456/0.09375, allocations: 445.8 kB / 400 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004886/0.09425, allocations: 0.5129 MB / 400.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.09437, allocations: 68 kB / 400.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.09458, allocations: 95.92 kB / 400.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.0948, allocations: 246.9 kB / 400.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000256/0.09506, allocations: 348.9 kB / 401.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001854/0.09692, allocations: 2.486 MB / 403.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.09694, allocations: 0 / 403.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09694, allocations: 0 / 403.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.015e-05/0.09697, allocations: 0 / 403.8 MB, free: 8.633 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.002754/0.09973, allocations: 1.655 MB / 405.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.09978, allocations: 8.031 kB / 405.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002593/0.1, allocations: 174.7 kB / 405.6 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.1003, allocations: 173.9 kB / 405.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.1021, allocations: 1.314 MB / 407.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.12e-05/0.1022, allocations: 82.11 kB / 407.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.1023, allocations: 115.9 kB / 407.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002183/0.1045, allocations: 1.335 MB / 408.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.1046, allocations: 7.922 kB / 408.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.293e-05/0.1047, allocations: 47.94 kB / 408.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.906e-05/0.1047, allocations: 24 kB / 408.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.1065, allocations: 1.019 MB / 409.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006877/0.1134, allocations: 5.705 MB / 415.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.1154, allocations: 2.151 MB / 417.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007073/0.1162, allocations: 419.2 kB / 418 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.427e-05/0.1162, allocations: 8.562 kB / 418 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000751/0.117, allocations: 450.6 kB / 418.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.004e-06/0.117, allocations: 0 / 418.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00181/0.1188, allocations: 0.9861 MB / 419.4 MB, free: 8.305 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.666e-05/0.1189, allocations: 162.8 kB / 419.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.1209, allocations: 1.469 MB / 421 MB, free: 6.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.224e-05/0.121, allocations: 37.7 kB / 421.1 MB, free: 6.582 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005471/0.1215, allocations: 0.6518 MB / 421.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.1217, allocations: 205.2 kB / 421.9 MB, free: 5.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.1217, allocations: 12 kB / 421.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1219, allocations: 330 kB / 422.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005827/0.1225, allocations: 333.8 kB / 422.6 MB, free: 5.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007052/0.1232, allocations: 0.5233 MB / 423.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006922/0.1239, allocations: 433.3 kB / 423.5 MB, free: 4.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1239, allocations: 0 / 423.5 MB, free: 4.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001708/0.1256, allocations: 1.04 MB / 424.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.483e-05/0.1257, allocations: 37.64 kB / 424.6 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1257, allocations: 4 kB / 424.6 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.1257, allocations: 8 kB / 424.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006396/0.1264, allocations: 159.8 kB / 424.8 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.1264, allocations: 19.86 kB / 424.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/0.1269, allocations: 103.2 kB / 424.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.584e-05/0.127, allocations: 28.11 kB / 424.9 MB, free: 2.609 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 ($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 (91): * Single equations (assignments): 90 * 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.0008232/0.1278, allocations: 0.5358 MB / 425.4 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.128, allocations: 118.5 kB / 425.6 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.1294, allocations: 0.7841 MB / 426.3 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.1294, allocations: 4 kB / 426.3 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1294, allocations: 0 / 426.3 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1295, allocations: 3.984 kB / 426.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1524/0.2818, allocations: 2.447 MB / 428.8 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.2819, allocations: 0.8906 kB / 428.8 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005771/0.2825, allocations: 122 kB / 428.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.2825, allocations: 2.547 kB / 428.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.184e-05/0.2825, allocations: 19.55 kB / 428.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.2826, allocations: 5.484 kB / 428.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2826, allocations: 1.766 kB / 428.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.2845, allocations: 1.226 MB / 430.2 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.2848, allocations: 246.6 kB / 430.4 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.2849, allocations: 23.19 kB / 430.4 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.2853, allocations: 37.2 kB / 430.5 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.751e-05/0.2854, allocations: 42.92 kB / 430.5 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.2855, allocations: 16.39 kB / 430.5 MB, free: 44.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001373/0.2868, allocations: 1.029 MB / 431.6 MB, free: 43.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2869, allocations: 0 / 431.6 MB, free: 43.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007589/0.2876, allocations: 268.8 kB / 431.8 MB, free: 43.6 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 (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.00248/0.2901, allocations: 2.048 MB / 433.9 MB, free: 42.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.2913, allocations: 0.797 MB / 434.7 MB, free: 41.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2913, allocations: 0 / 434.7 MB, free: 41.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005136/0.2919, allocations: 340.5 kB / 435 MB, free: 41.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000997/0.2929, allocations: 256 kB / 435.3 MB, free: 41.76 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01482/0.3077, allocations: 8.87 MB / 444.1 MB, free: 36.99 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007083/0.3084, allocations: 1.377 MB / 445.5 MB, free: 36.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005943/0.309, allocations: 184.9 kB / 445.7 MB, free: 36.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005598/0.3096, allocations: 0.4899 MB / 446.2 MB, free: 35.71 MB / 318.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3096, allocations: 0 / 446.2 MB, free: 35.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03183/0.3414, allocations: 25.6 MB / 471.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/0.3416, allocations: 238.1 kB / 472 MB, free: 11.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/2.426, allocations: 0 / 472 MB, free: 11.45 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: