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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 116.8 kB / 17.17 MB, free: 6.004 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 214.4 kB / 20.13 MB, free: 3.051 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 207.6 MB / 230.5 MB, free: 4.039 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.05259/0.05259, allocations: 7.122 MB / 289.5 MB, free: 9.184 MB / 238.1 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002168/0.002168, allocations: 71.91 kB / 404.5 MB, free: 2.059 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2668, allocations: 50.7 MB / 455.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007/0.2738, allocations: 6.822 MB / 462 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006849/0.2807, allocations: 4.539 MB / 466.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.2818, allocations: 46.81 kB / 466.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.2841, allocations: 1.011 MB / 467.6 MB, free: 10.62 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.001153/0.2853, allocations: 391.5 kB / 468 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.2865, allocations: 0.6819 MB / 468.7 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002502/0.289, allocations: 2.235 MB / 470.9 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001125/0.2901, allocations: 0.7406 MB / 471.7 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009117/0.291, allocations: 0.7439 MB / 472.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008193/0.2918, allocations: 0.7337 MB / 473.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002769/0.2921, allocations: 256.7 kB / 473.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000379/0.2925, allocations: 296.9 kB / 473.7 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004177/0.2929, allocations: 476.6 kB / 474.1 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008852/0.2938, allocations: 0.9247 MB / 475.1 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003227/0.297, allocations: 3.058 MB / 478.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.297, allocations: 0 / 478.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.297, allocations: 4 kB / 478.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.496e-05/0.2971, allocations: 0 / 478.1 MB, free: 2.418 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.003694/0.3008, allocations: 1.992 MB / 480.1 MB, free: 368 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3008, allocations: 12.03 kB / 480.1 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.249e-05/0.3009, allocations: 33.22 kB / 480.2 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002761/0.3011, allocations: 179 kB / 480.3 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.3014, allocations: 179.9 kB / 480.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.3035, allocations: 1.397 MB / 481.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.135e-05/0.3036, allocations: 94.23 kB / 482 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001875/0.3038, allocations: 108 kB / 482.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.3064, allocations: 1.339 MB / 483.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.3064, allocations: 7.938 kB / 483.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.3065, allocations: 51.92 kB / 483.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.8e-05/0.3066, allocations: 28 kB / 483.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002077/0.3086, allocations: 1.011 MB / 484.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008172/0.3168, allocations: 5.698 MB / 490.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002459/0.3193, allocations: 2.139 MB / 492.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008501/0.3201, allocations: 398.8 kB / 492.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.622e-05/0.3202, allocations: 9.109 kB / 492.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008723/0.321, allocations: 458.6 kB / 493.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=60): time 2.245e-06/0.321, allocations: 0 / 493.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=74): time 0.008217/0.3293, allocations: 3.231 MB / 496.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.3294, allocations: 166.9 kB / 496.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002214/0.3316, allocations: 1.473 MB / 498.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.754e-05/0.3317, allocations: 41.7 kB / 498.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006284/0.3323, allocations: 0.6572 MB / 498.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.3326, allocations: 273.6 kB / 499.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000303/0.3329, allocations: 162.6 kB / 499.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3331, allocations: 341.9 kB / 499.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008557/0.3339, allocations: 429.8 kB / 500 MB, free: 11.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.335, allocations: 0.6174 MB / 0.4889 GB, free: 11.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005796/0.3408, allocations: 2.174 MB / 0.491 GB, free: 8.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3408, allocations: 0 / 0.491 GB, free: 8.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002481/0.3433, allocations: 1.24 MB / 0.4922 GB, free: 7.535 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/0.3433, allocations: 45.78 kB / 0.4922 GB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3433, allocations: 4 kB / 0.4922 GB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.3433, allocations: 8 kB / 0.4923 GB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009148/0.3443, allocations: 211.8 kB / 0.4925 GB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.895e-05/0.3443, allocations: 15.92 kB / 0.4925 GB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006995/0.345, allocations: 55.95 kB / 0.4925 GB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.132e-05/0.345, allocations: 43.88 kB / 0.4926 GB, free: 7.152 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: $outputAlias_V:VARIABLE(unit = \"V\" fixed = true ) type: Real 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 (109): * Single equations (assignments): 108 * 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.0008677/0.3459, allocations: 0.5508 MB / 0.4931 GB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.3461, allocations: 123.2 kB / 0.4932 GB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.3482, allocations: 0.9938 MB / 0.4942 GB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3482, allocations: 4 kB / 0.4942 GB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3482, allocations: 4 kB / 0.4942 GB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.3482, allocations: 7.922 kB / 0.4942 GB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004922/0.3531, allocations: 2.921 MB / 0.4971 GB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.3531, allocations: 7.984 kB / 0.4971 GB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008428/0.354, allocations: 167.8 kB / 0.4972 GB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.177e-06/0.354, allocations: 8.062 kB / 0.4972 GB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.84e-05/0.354, allocations: 23.98 kB / 0.4973 GB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.354, allocations: 0 / 0.4973 GB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.354, allocations: 4 kB / 0.4973 GB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002992/0.357, allocations: 1.589 MB / 0.4988 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004742/0.3575, allocations: 240.3 kB / 0.499 GB, free: 396 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/0.3577, allocations: 24 kB / 0.4991 GB, free: 372 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007745/0.3585, allocations: 43.95 kB / 0.4991 GB, free: 328 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/0.3587, allocations: 60.52 kB / 0.4992 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.968e-05/0.3588, allocations: 19.98 kB / 0.4992 GB, free: 248 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002285/0.3611, allocations: 1.044 MB / 0.5002 GB, free: 15.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3611, allocations: 0 / 0.5002 GB, free: 15.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001235/0.3623, allocations: 223.9 kB / 0.5004 GB, free: 14.97 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 8 ($outputAlias_V,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].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 (75): * Single equations (assignments): 73 * 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.00624/0.3685, allocations: 2.448 MB / 0.5028 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002883/0.3714, allocations: 0.9647 MB / 0.5038 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.3714, allocations: 0 / 0.5038 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.3727, allocations: 443.5 kB / 0.5042 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/0.3747, allocations: 283.8 kB / 0.5044 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02507/0.3998, allocations: 12.8 MB / 0.5169 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.401, allocations: 1.396 MB / 0.5183 GB, free: 12.26 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007207/0.4017, allocations: 208.4 kB / 0.5185 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008838/0.4026, allocations: 0.5149 MB / 0.519 GB, free: 11.54 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4026, allocations: 0 / 0.519 GB, free: 11.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06343/0.466, allocations: 30.2 MB / 0.5485 GB, free: 13.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.43, allocations: 15.69 kB / 0.5485 GB, free: 13.18 MB / 430.1 MB " [Timeout remaining time 648] (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 --stepSize=1 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.829967968980782] Failed to read output from testmodel.py, exit status != 0: 11.635933765035588 11.662239573 11.360355299 Calling exit ...