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.001282/0.001282, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001474/0.001474, allocations: 194 kB / 16.25 MB, free: 6.617 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.625/1.625, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06886/0.06886, allocations: 7.03 MB / 276.5 MB, free: 14.4 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.00139/0.001391, allocations: 63.89 kB / 335.4 MB, free: 27.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1152, allocations: 48.1 MB / 383.5 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.006999/0.1223, allocations: 4.65 MB / 388.1 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004389/0.1267, allocations: 2.638 MB / 390.8 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005787/0.1274, allocations: 15.94 kB / 390.8 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.129, allocations: 0.5213 MB / 391.3 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006512/0.1296, allocations: 174.9 kB / 391.5 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008776/0.1305, allocations: 403.6 kB / 391.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.1319, allocations: 1.274 MB / 393.2 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006503/0.1326, allocations: 490.6 kB / 393.6 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004883/0.1331, allocations: 450.5 kB / 394.1 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004189/0.1335, allocations: 449.9 kB / 394.5 MB, free: 152 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.1337, allocations: 132 kB / 394.6 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002626/0.1339, allocations: 164 kB / 394.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002404/0.1342, allocations: 271.2 kB / 395.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004669/0.1347, allocations: 0.5286 MB / 395.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.136, allocations: 1.519 MB / 397.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.136, allocations: 0 / 397.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.136, allocations: 0 / 397.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.1361, allocations: 4 kB / 397.1 MB, free: 13.54 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.002603/0.1387, allocations: 1.462 MB / 398.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.1387, allocations: 11.97 kB / 398.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.1389, allocations: 111.6 kB / 398.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008761/0.1398, allocations: 0.6697 MB / 399.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.15e-05/0.1398, allocations: 58.38 kB / 399.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.14, allocations: 76.11 kB / 399.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.1416, allocations: 0.8255 MB / 400.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.1416, allocations: 4 kB / 400.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.738e-05/0.1417, allocations: 27.98 kB / 400.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.1417, allocations: 16 kB / 400.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.1433, allocations: 0.6453 MB / 401 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003947/0.1473, allocations: 2.911 MB / 403.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.1488, allocations: 0.5496 MB / 404.5 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006342/0.1494, allocations: 260.5 kB / 404.7 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.205e-05/0.1495, allocations: 7.984 kB / 404.7 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.1505, allocations: 415.8 kB / 405.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.274e-06/0.1505, allocations: 0 / 405.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.002514/0.153, allocations: 0.9557 MB / 406.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.1532, allocations: 152.4 kB / 406.3 MB, free: 4.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/0.1542, allocations: 0.8795 MB / 407.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.787e-05/0.1543, allocations: 41.7 kB / 407.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/0.1547, allocations: 451.6 kB / 407.6 MB, free: 2.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.1548, allocations: 138 kB / 407.8 MB, free: 2.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.155, allocations: 130.3 kB / 407.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1552, allocations: 330 kB / 408.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000736/0.1559, allocations: 301.5 kB / 408.5 MB, free: 1.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008263/0.1567, allocations: 450.4 kB / 408.9 MB, free: 1.289 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.1582, allocations: 0.7411 MB / 409.7 MB, free: 488 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1582, allocations: 4 kB / 409.7 MB, free: 484 kB / 302.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002158/0.1603, allocations: 1.028 MB / 410.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.1605, allocations: 148.5 kB / 410.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.1605, allocations: 4 kB / 410.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.1608, allocations: 57.05 kB / 410.9 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.1613, allocations: 115.8 kB / 411 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.1629, allocations: 1.732 MB / 412.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007453/0.1637, allocations: 111.3 kB / 412.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/0.1638, allocations: 28 kB / 412.9 MB, free: 13.04 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 (greaterThreshold.y,fTP72_1.liberal1.pulse1C1.count,$PRE.fTP72_1.liberal1.pulse1C1.count,fTP72_1.liberal1.pulse1C1.T_start,$PRE.fTP72_1.liberal1.pulse1C1.T_start,fTP72_1.liberal1.pulse0_45C.count,$PRE.fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse0_45C.T_start,$PRE.fTP72_1.liberal1.pulse0_45C.T_start,fTP72_1.liberal1.pulse0_9C.count,$PRE.fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_9C.T_start,$PRE.fTP72_1.liberal1.pulse0_9C.T_start,fTP72_1.liberal1.pulse0_5C.count,$PRE.fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_5C.T_start,$PRE.fTP72_1.liberal1.pulse0_5C.T_start,fTP72_1.liberal1.polse1C.count,$PRE.fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.polse1C.T_start,$PRE.fTP72_1.liberal1.polse1C.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005558/0.1643, allocations: 309.6 kB / 413.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.1644, allocations: 82.94 kB / 413.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.166, allocations: 0.6461 MB / 413.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1661, allocations: 4 kB / 413.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.1661, allocations: 0 / 413.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1661, allocations: 3.938 kB / 413.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.1685, allocations: 1.471 MB / 415.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1685, allocations: 0 / 415.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004085/0.1689, allocations: 75.88 kB / 415.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001432/0.1691, allocations: 48.83 kB / 415.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.673e-05/0.1691, allocations: 12 kB / 415.5 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.1705, allocations: 1.712 MB / 417.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1705, allocations: 0 / 417.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.1728, allocations: 1.012 MB / 418.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.173, allocations: 172.1 kB / 418.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.681e-05/0.1731, allocations: 24 kB / 418.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005336/0.1737, allocations: 55.92 kB / 418.5 MB, free: 7.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.1739, allocations: 91.78 kB / 418.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.1739, allocations: 12 kB / 418.6 MB, free: 7.059 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009379/0.1749, allocations: 0.6123 MB / 419.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1749, allocations: 0 / 419.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008609/0.1758, allocations: 191.5 kB / 419.4 MB, free: 6.262 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009894/0.1768, allocations: 374 kB / 419.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.1792, allocations: 1.074 MB / 420.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1792, allocations: 0 / 420.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009035/0.1801, allocations: 430.3 kB / 421.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.1812, allocations: 167.5 kB / 421.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003818/0.185, allocations: 1.762 MB / 423.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009343/0.186, allocations: 0.9686 MB / 424.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000468/0.1865, allocations: 81.14 kB / 424.2 MB, free: 1.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.1867, allocations: 51.44 kB / 424.3 MB, free: 1.219 MB / 318.1 MB Notification: Performance of SimCode: time 2.736e-06/0.1867, allocations: 0 / 424.3 MB, free: 1.219 MB / 318.1 MB Notification: Performance of Templates: time 0.2038/0.3905, allocations: 10.48 MB / 434.8 MB, free: 43.58 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.makefile (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)