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.007255/0.007255, allocations: 103 kB / 15.73 MB, free: 6.043 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.001465/0.001465, allocations: 194.1 kB / 16.68 MB, free: 5.965 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.422/1.422, allocations: 205.1 MB / 222.6 MB, free: 4.402 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05375/0.05375, allocations: 7.031 MB / 276.9 MB, free: 14 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.001575/0.001575, allocations: 67.89 kB / 384.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2931, allocations: 48.1 MB / 432.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007588/0.3007, allocations: 6.784 MB / 439.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007364/0.3081, allocations: 4.53 MB / 444.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.3099, allocations: 38.12 kB / 444.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003455/0.3135, allocations: 1.009 MB / 445.2 MB, free: 15.3 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.002396/0.3159, allocations: 362 kB / 445.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001964/0.3179, allocations: 0.6844 MB / 446.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004189/0.3221, allocations: 2.226 MB / 448.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00217/0.3243, allocations: 1.144 MB / 449.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.3258, allocations: 0.7276 MB / 450.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.3273, allocations: 0.7308 MB / 451.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007193/0.328, allocations: 256.3 kB / 451.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000967/0.329, allocations: 295.5 kB / 451.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006994/0.3297, allocations: 471.7 kB / 452.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001954/0.3317, allocations: 0.9341 MB / 453 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004263/0.336, allocations: 3.05 MB / 456.1 MB, free: 8.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.336, allocations: 0 / 456.1 MB, free: 8.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.336, allocations: 1.062 kB / 456.1 MB, free: 8.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001084/0.3361, allocations: 0 / 456.1 MB, free: 8.449 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.005916/0.3421, allocations: 1.944 MB / 458 MB, free: 6.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3421, allocations: 13.06 kB / 458.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005227/0.3427, allocations: 179 kB / 458.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005827/0.3432, allocations: 168.5 kB / 458.4 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.346, allocations: 1.383 MB / 459.8 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.3461, allocations: 87.92 kB / 459.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002485/0.3464, allocations: 116 kB / 460 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.3492, allocations: 1.331 MB / 461.3 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.456e-05/0.3492, allocations: 5.156 kB / 461.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.3494, allocations: 52.77 kB / 461.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/0.3494, allocations: 24.66 kB / 461.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00225/0.3517, allocations: 1.006 MB / 462.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008833/0.3605, allocations: 5.621 MB / 468 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002252/0.3628, allocations: 2.145 MB / 470.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008058/0.3636, allocations: 418.3 kB / 470.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.767e-05/0.3637, allocations: 4.562 kB / 470.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009365/0.3646, allocations: 438.7 kB / 471 MB, free: 11.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.687e-06/0.3647, allocations: 0 / 471 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002308/0.367, allocations: 0.9817 MB / 472 MB, free: 10.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.3671, allocations: 163.4 kB / 472.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002567/0.3697, allocations: 1.473 MB / 473.6 MB, free: 9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.087e-05/0.3698, allocations: 37.7 kB / 473.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006765/0.3705, allocations: 0.6595 MB / 474.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.3707, allocations: 193.3 kB / 474.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/0.371, allocations: 146.5 kB / 474.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3711, allocations: 334 kB / 475 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006222/0.3718, allocations: 325.8 kB / 475.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007641/0.3725, allocations: 0.5232 MB / 475.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004066/0.3766, allocations: 1.663 MB / 477.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.3766, allocations: 0 / 477.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00195/0.3786, allocations: 1.013 MB / 478.5 MB, free: 3.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/0.3787, allocations: 37.69 kB / 478.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/0.3787, allocations: 4 kB / 478.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.3787, allocations: 11.94 kB / 478.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006652/0.3794, allocations: 163.7 kB / 478.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.193e-05/0.3794, allocations: 15.94 kB / 478.7 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007553/0.3802, allocations: 91.61 kB / 478.8 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.197e-05/0.3803, allocations: 28 kB / 478.8 MB, free: 3.566 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.0008672/0.3811, allocations: 0.5391 MB / 479.4 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000285/0.3814, allocations: 110.6 kB / 479.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001558/0.383, allocations: 0.7758 MB / 480.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.383, allocations: 8 kB / 480.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.383, allocations: 0 / 480.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.383, allocations: 3.984 kB / 480.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003876/0.3869, allocations: 2.432 MB / 482.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.387, allocations: 4 kB / 482.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006066/0.3876, allocations: 115.8 kB / 482.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/0.3876, allocations: 4 kB / 482.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.504e-05/0.3876, allocations: 15.98 kB / 482.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3877, allocations: 4 kB / 482.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3877, allocations: 0 / 482.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00202/0.3897, allocations: 1.214 MB / 484 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004304/0.3901, allocations: 243.5 kB / 484.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002359/0.3904, allocations: 16 kB / 484.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005101/0.3909, allocations: 35.91 kB / 484.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.391, allocations: 48.42 kB / 484.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.3911, allocations: 20 kB / 484.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001595/0.3927, allocations: 1.04 MB / 485.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3927, allocations: 0 / 485.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000951/0.3936, allocations: 270.9 kB / 485.7 MB, free: 12.55 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.003069/0.3967, allocations: 2.011 MB / 487.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.3982, allocations: 0.7883 MB / 488.5 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3982, allocations: 5.188 kB / 488.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.3988, allocations: 331.1 kB / 488.8 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.4002, allocations: 275.8 kB / 489.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01974/0.4199, allocations: 11.91 MB / 0.4893 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.4213, allocations: 1.375 MB / 0.4906 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007516/0.4221, allocations: 183.8 kB / 0.4908 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007963/0.4229, allocations: 0.4953 MB / 0.4913 GB, free: 10.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4229, allocations: 0 / 0.4913 GB, free: 10.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06343/0.4864, allocations: 28.11 MB / 0.5187 GB, free: 14.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.93, allocations: 23.72 kB / 0.5188 GB, free: 14.59 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)