Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.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: translateModel(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=13860,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle") translateModel(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=13860,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008257/0.0008257, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001049/0.001049, allocations: 172.7 kB / 15.95 MB, free: 208 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.636/1.636, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07304/0.07304, allocations: 7.035 MB / 277.4 MB, free: 14.29 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.0005808/0.0005809, allocations: 16 kB / 337 MB, free: 27.59 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1109, allocations: 49.08 MB / 386.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.005584/0.1165, allocations: 3.973 MB / 390 MB, free: 6.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004404/0.121, allocations: 2.382 MB / 392.4 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007167/0.1217, allocations: 15.94 kB / 392.4 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.1229, allocations: 473.9 kB / 392.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.1235, allocations: 166.8 kB / 393 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007763/0.1243, allocations: 259.6 kB / 393.3 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1255, allocations: 1.04 MB / 394.3 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005713/0.1261, allocations: 350.1 kB / 394.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004063/0.1265, allocations: 306.7 kB / 395 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003882/0.1269, allocations: 338.2 kB / 395.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.442e-05/0.127, allocations: 36 kB / 395.3 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001681/0.1272, allocations: 59.98 kB / 395.4 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.1274, allocations: 163.3 kB / 395.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.1276, allocations: 205.2 kB / 395.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.1291, allocations: 1.204 MB / 397 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.1291, allocations: 0 / 397 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.538e-06/0.1291, allocations: 0 / 397 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.1292, allocations: 3.938 kB / 397 MB, free: 15.43 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.00261/0.1318, allocations: 1.314 MB / 398.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1318, allocations: 12.03 kB / 398.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001933/0.132, allocations: 110.7 kB / 398.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009286/0.133, allocations: 0.6534 MB / 399.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.011e-05/0.133, allocations: 50 kB / 399.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.1332, allocations: 72 kB / 399.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.1349, allocations: 0.8451 MB / 400 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.135, allocations: 0 / 400 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.231e-05/0.1351, allocations: 35.98 kB / 400.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.1351, allocations: 16 kB / 400.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.1368, allocations: 0.6922 MB / 400.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004821/0.1417, allocations: 2.931 MB / 403.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.1432, allocations: 0.6123 MB / 404.3 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006603/0.1439, allocations: 288.4 kB / 404.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.1439, allocations: 4 kB / 404.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001026/0.1449, allocations: 448 kB / 405 MB, free: 7.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.305e-06/0.145, allocations: 0 / 405 MB, free: 7.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.002788/0.1478, allocations: 1.052 MB / 406.1 MB, free: 6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002186/0.148, allocations: 148.4 kB / 406.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.1493, allocations: 0.8755 MB / 407.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.645e-05/0.1494, allocations: 45.7 kB / 407.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.1499, allocations: 439.7 kB / 407.6 MB, free: 4.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.1501, allocations: 146 kB / 407.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.1501, allocations: 16 kB / 407.7 MB, free: 4.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1503, allocations: 333.9 kB / 408.1 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007842/0.1511, allocations: 329.5 kB / 408.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008488/0.1519, allocations: 470.2 kB / 408.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009152/0.1529, allocations: 483.5 kB / 409.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1529, allocations: 0 / 409.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002104/0.155, allocations: 1.09 MB / 410.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.1551, allocations: 148.5 kB / 410.6 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1551, allocations: 4 kB / 410.6 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.1554, allocations: 48.84 kB / 410.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/0.1559, allocations: 144 kB / 410.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.1575, allocations: 1.557 MB / 412.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007984/0.1583, allocations: 127.4 kB / 412.4 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/0.1584, allocations: 31.98 kB / 412.5 MB, free: 15.28 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fTP72_1.liberal1.polse1C.T_start,fTP72_1.liberal1.polse1C.T_start,$PRE.fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.polse1C.count,$PRE.fTP72_1.liberal1.pulse0_5C.T_start,fTP72_1.liberal1.pulse0_5C.T_start,$PRE.fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_5C.count,$PRE.fTP72_1.liberal1.pulse0_9C.T_start,fTP72_1.liberal1.pulse0_9C.T_start,$PRE.fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_9C.count,$PRE.fTP72_1.liberal1.pulse0_45C.T_start,fTP72_1.liberal1.pulse0_45C.T_start,$PRE.fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse0_45C.count,$PRE.fTP72_1.liberal1.pulse1C1.T_start,fTP72_1.liberal1.pulse1C1.T_start,$PRE.fTP72_1.liberal1.pulse1C1.count,fTP72_1.liberal1.pulse1C1.count,greaterThreshold.y,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 (74): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006109/0.159, allocations: 301.8 kB / 412.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.1591, allocations: 82.97 kB / 412.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.1608, allocations: 0.6947 MB / 413.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.1608, allocations: 12 kB / 413.5 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1608, allocations: 0 / 413.5 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1608, allocations: 3.984 kB / 413.5 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/0.1632, allocations: 1.517 MB / 415.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1632, allocations: 0 / 415.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004393/0.1637, allocations: 95.86 kB / 415.2 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.1639, allocations: 48.83 kB / 415.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.753e-05/0.1639, allocations: 8 kB / 415.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/0.1654, allocations: 1.561 MB / 416.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1654, allocations: 0 / 416.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.1677, allocations: 1.102 MB / 417.9 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.1679, allocations: 172.1 kB / 418 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.876e-05/0.168, allocations: 23.98 kB / 418.1 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005019/0.1685, allocations: 79.88 kB / 418.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.1687, allocations: 87.88 kB / 418.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.184e-05/0.1688, allocations: 12 kB / 418.2 MB, free: 9.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000874/0.1696, allocations: 0.6162 MB / 418.9 MB, free: 8.617 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1696, allocations: 0 / 418.9 MB, free: 8.617 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007685/0.1704, allocations: 183.4 kB / 419 MB, free: 8.438 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (batteryCell.calculator.sOC.integrator.y,batteryCell.calculator.q.absInt.y,batteryCell.calculator.EquivalentCycles.integrator.y) * Number of discrete variables: 16 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fTP72_1.liberal1.polse1C.T_start,fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.pulse0_5C.T_start,fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_9C.T_start,fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_45C.T_start,fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse1C1.T_start,fTP72_1.liberal1.pulse1C1.count,greaterThreshold.y) * Number of discrete states: 5 (fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse1C1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008174/0.1712, allocations: 381.8 kB / 419.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.1733, allocations: 1.1 MB / 420.5 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1734, allocations: 0 / 420.5 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008637/0.1742, allocations: 454.7 kB / 421 MB, free: 6.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.1751, allocations: 155.7 kB / 421.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002709/0.1778, allocations: 1.698 MB / 422.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006003/0.1784, allocations: 0.9727 MB / 423.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003404/0.1787, allocations: 81.14 kB / 423.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.1789, allocations: 47.42 kB / 423.9 MB, free: 3.418 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1789, allocations: 0 / 423.9 MB, free: 3.418 MB / 318.1 MB Notification: Performance of Templates: time 0.1902/0.3691, allocations: 9.611 MB / 433.5 MB, free: 44.2 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.makefile Environment - environmentSimulation: (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.sim & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe 2>&1) Environment - environmentSimulation: