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.001713/0.001713, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00224/0.00224, allocations: 212.7 kB / 22.24 MB, free: 5.262 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.372/1.372, allocations: 207.7 MB / 233.1 MB, free: 9.785 MB / 190.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.05256/0.05256, allocations: 7.138 MB / 292.5 MB, free: 14.57 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",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.00227/0.00227, allocations: 76.94 kB / 409 MB, free: 47.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06883/0.0711, allocations: 50.74 MB / 459.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.009392/0.08049, allocations: 6.015 MB / 465.8 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00733/0.08782, allocations: 4.218 MB / 470 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009574/0.08878, allocations: 39.81 kB / 470.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002697/0.09148, allocations: 0.9951 MB / 471.1 MB, free: 2.848 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.001613/0.09309, allocations: 405 kB / 471.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.09467, allocations: 0.6946 MB / 472.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003342/0.09802, allocations: 2.218 MB / 474.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.09936, allocations: 0.6401 MB / 475 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.1004, allocations: 0.7436 MB / 475.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009103/0.1013, allocations: 0.7117 MB / 476.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003115/0.1016, allocations: 256 kB / 476.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004111/0.102, allocations: 291.9 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004133/0.1024, allocations: 486.6 kB / 477.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007265/0.1032, allocations: 0.6922 MB / 478.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00321/0.1064, allocations: 3.076 MB / 481.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1064, allocations: 0 / 481.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1064, allocations: 0 / 481.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.206e-05/0.1064, allocations: 4 kB / 481.2 MB, free: 8.598 MB / 350.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.003571/0.11, allocations: 1.917 MB / 483.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.11, allocations: 15.98 kB / 483.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002882/0.1103, allocations: 174.9 kB / 483.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002723/0.1106, allocations: 175.8 kB / 483.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.1127, allocations: 1.339 MB / 484.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.022e-05/0.1128, allocations: 86.48 kB / 484.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.113, allocations: 115.9 kB / 485 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00253/0.1156, allocations: 1.46 MB / 486.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/0.1156, allocations: 3.938 kB / 486.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.1157, allocations: 48 kB / 486.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.1157, allocations: 32 kB / 486.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.1178, allocations: 1.003 MB / 487.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007672/0.1255, allocations: 5.067 MB / 492.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.1272, allocations: 0.8172 MB / 493.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008297/0.128, allocations: 388.5 kB / 493.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-05/0.1281, allocations: 8.5 kB / 493.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008838/0.1289, allocations: 0.5027 MB / 494.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.524e-06/0.129, allocations: 0 / 494.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002137/0.1311, allocations: 0.9805 MB / 495.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.1312, allocations: 162.7 kB / 495.5 MB, free: 9.902 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/0.1335, allocations: 1.488 MB / 497 MB, free: 8.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.1336, allocations: 37.7 kB / 497 MB, free: 8.355 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006853/0.1343, allocations: 0.6609 MB / 497.7 MB, free: 7.688 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002155/0.1345, allocations: 210.2 kB / 497.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.1348, allocations: 142.6 kB / 498 MB, free: 7.332 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1349, allocations: 334 kB / 498.4 MB, free: 7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006934/0.1356, allocations: 359.5 kB / 498.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008786/0.1365, allocations: 0.6372 MB / 499.4 MB, free: 5.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00424/0.1407, allocations: 1.67 MB / 0.4893 GB, free: 4.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1407, allocations: 0 / 0.4893 GB, free: 4.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002003/0.1427, allocations: 1.055 MB / 0.4903 GB, free: 3.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.358e-05/0.1428, allocations: 37.73 kB / 0.4903 GB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1428, allocations: 4 kB / 0.4904 GB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.1428, allocations: 11.94 kB / 0.4904 GB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007067/0.1435, allocations: 171.7 kB / 0.4905 GB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.1435, allocations: 8 kB / 0.4905 GB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005809/0.1441, allocations: 87.48 kB / 0.4906 GB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-05/0.1442, allocations: 24 kB / 0.4906 GB, free: 2.727 MB / 366.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.0008512/0.145, allocations: 0.5391 MB / 0.4912 GB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.1452, allocations: 123.2 kB / 0.4913 GB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.1468, allocations: 0.7704 MB / 0.492 GB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.1468, allocations: 4 kB / 0.492 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1468, allocations: 4 kB / 0.492 GB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1468, allocations: 4 kB / 0.492 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/0.1505, allocations: 2.176 MB / 0.4942 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1505, allocations: 0 / 0.4942 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006156/0.1511, allocations: 115.9 kB / 0.4943 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.1511, allocations: 3.938 kB / 0.4943 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.367e-05/0.1512, allocations: 27.98 kB / 0.4943 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1512, allocations: 0 / 0.4943 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1512, allocations: 3.938 kB / 0.4943 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.1534, allocations: 1.217 MB / 0.4955 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000359/0.1537, allocations: 171.1 kB / 0.4957 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.1539, allocations: 19.98 kB / 0.4957 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/0.1543, allocations: 39.97 kB / 0.4957 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.1544, allocations: 40.36 kB / 0.4958 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.144e-05/0.1545, allocations: 16 kB / 0.4958 GB, free: 13.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001536/0.156, allocations: 1.044 MB / 0.4968 GB, free: 12.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.156, allocations: 0 / 0.4968 GB, free: 12.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007708/0.1568, allocations: 267.2 kB / 0.4971 GB, free: 12.06 MB / 382.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.003786/0.1606, allocations: 2.057 MB / 0.4991 GB, free: 9.977 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.1621, allocations: 0.7853 MB / 0.4998 GB, free: 9.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1621, allocations: 4 kB / 0.4998 GB, free: 9.168 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006001/0.1627, allocations: 310.7 kB / 0.5001 GB, free: 8.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.1639, allocations: 280.9 kB / 0.5004 GB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01972/0.1837, allocations: 12.07 MB / 0.5122 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009523/0.1846, allocations: 0.7859 MB / 0.513 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006739/0.1853, allocations: 183.8 kB / 0.5131 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007785/0.1861, allocations: 499.3 kB / 0.5136 GB, free: 10.7 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1861, allocations: 0 / 0.5136 GB, free: 10.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2437/0.4297, allocations: 29.78 MB / 0.5427 GB, free: 62.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.3, allocations: 7.062 kB / 0.5427 GB, free: 62.34 MB / 398.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: 15.337856893893331] Failed to read output from testmodel.py, exit status != 0: 12.477455295156687 12.488295941 12.379582778 Calling exit ...