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.00137/0.00137, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001443/0.001443, allocations: 193.3 kB / 16.91 MB, free: 6.195 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.412/1.412, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05275/0.05275, allocations: 7.027 MB / 277.1 MB, free: 14.41 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.001265/0.001265, allocations: 67.91 kB / 336.1 MB, free: 27.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1117, allocations: 48.1 MB / 384.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.006355/0.1181, allocations: 4.639 MB / 388.8 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003787/0.1219, allocations: 2.634 MB / 391.4 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003395/0.1223, allocations: 19.94 kB / 391.4 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001401/0.1237, allocations: 0.5252 MB / 392 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004688/0.1242, allocations: 174.8 kB / 392.1 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007555/0.125, allocations: 399.6 kB / 392.5 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001195/0.1262, allocations: 1.274 MB / 393.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006147/0.1268, allocations: 498.6 kB / 394.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004984/0.1273, allocations: 446.5 kB / 394.7 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000405/0.1277, allocations: 453.9 kB / 395.2 MB, free: 144 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.1279, allocations: 132 kB / 395.3 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002272/0.1281, allocations: 156.1 kB / 395.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.1283, allocations: 275.1 kB / 395.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004153/0.1288, allocations: 0.5286 MB / 396.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.1298, allocations: 1.259 MB / 397.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1299, allocations: 0 / 397.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1299, allocations: 0 / 397.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.1299, allocations: 0 / 397.5 MB, free: 13.8 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.002568/0.1325, allocations: 1.465 MB / 399 MB, free: 12.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.1325, allocations: 8.031 kB / 399 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.1327, allocations: 111.6 kB / 399.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009316/0.1337, allocations: 0.6814 MB / 399.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.853e-05/0.1337, allocations: 58.38 kB / 399.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.1339, allocations: 76.11 kB / 399.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.1355, allocations: 0.8139 MB / 400.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.1356, allocations: 0 / 400.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/0.1356, allocations: 31.98 kB / 400.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.1357, allocations: 16 kB / 400.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.1373, allocations: 0.6452 MB / 401.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.1412, allocations: 2.903 MB / 404.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.1426, allocations: 0.5612 MB / 404.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006142/0.1432, allocations: 252.5 kB / 405.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.1433, allocations: 4 kB / 405.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009912/0.1443, allocations: 419.7 kB / 405.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.485e-06/0.1443, allocations: 4 kB / 405.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.002555/0.1469, allocations: 0.9596 MB / 406.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.842e-05/0.147, allocations: 148.4 kB / 406.6 MB, free: 4.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.1481, allocations: 0.8756 MB / 407.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.535e-05/0.1482, allocations: 45.7 kB / 407.6 MB, free: 3.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003581/0.1485, allocations: 447.5 kB / 408 MB, free: 2.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.1487, allocations: 150 kB / 408.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/0.1489, allocations: 122.3 kB / 408.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.149, allocations: 330 kB / 408.6 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007442/0.1498, allocations: 305.5 kB / 408.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008111/0.1506, allocations: 442.5 kB / 409.3 MB, free: 1.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.152, allocations: 0.7566 MB / 410.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.152, allocations: 0 / 410.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002017/0.1541, allocations: 1.032 MB / 411.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.1542, allocations: 152.5 kB / 411.3 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.1542, allocations: 3.984 kB / 411.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002542/0.1545, allocations: 48.84 kB / 411.3 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/0.155, allocations: 123.8 kB / 411.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.1565, allocations: 1.724 MB / 413.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007074/0.1573, allocations: 115.2 kB / 413.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.707e-05/0.1573, allocations: 24 kB / 413.3 MB, free: 13.3 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.000496/0.1578, allocations: 301.7 kB / 413.6 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.158, allocations: 83.06 kB / 413.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.1596, allocations: 0.6461 MB / 414.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1596, allocations: 4 kB / 414.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.1596, allocations: 0 / 414.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.1596, allocations: 4 kB / 414.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.162, allocations: 1.463 MB / 415.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.162, allocations: 4 kB / 415.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003978/0.1624, allocations: 79.86 kB / 415.9 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.1626, allocations: 52.83 kB / 415.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.1626, allocations: 4 kB / 415.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.1639, allocations: 1.709 MB / 417.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1639, allocations: 0 / 417.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.1661, allocations: 1.02 MB / 418.6 MB, free: 7.688 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.1663, allocations: 176.2 kB / 418.8 MB, free: 7.496 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.41e-05/0.1664, allocations: 12 kB / 418.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000526/0.1669, allocations: 63.91 kB / 418.9 MB, free: 7.422 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.1671, allocations: 87.84 kB / 419 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.1672, allocations: 12.12 kB / 419 MB, free: 7.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007468/0.1679, allocations: 0.6162 MB / 419.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1679, allocations: 0 / 419.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006948/0.1686, allocations: 183.5 kB / 419.8 MB, free: 6.531 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.0008592/0.1695, allocations: 385.6 kB / 420.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002067/0.1716, allocations: 1.069 MB / 421.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1716, allocations: 0 / 421.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008084/0.1724, allocations: 426.6 kB / 421.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.1732, allocations: 163.5 kB / 421.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.176, allocations: 1.806 MB / 423.6 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005549/0.1765, allocations: 0.9725 MB / 424.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.1767, allocations: 51.44 kB / 424.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of SimCode: time 2.144e-06/0.1767, allocations: 0 / 424.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of Templates: time 0.1986/0.3753, allocations: 15.47 MB / 440.1 MB, free: 40.34 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)