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.001019/0.001019, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007809/0.007809, allocations: 170 kB / 16.26 MB, free: 6.613 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.859/1.859, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06256/0.06256, allocations: 7.046 MB / 277.8 MB, free: 14.17 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.0005566/0.0005566, allocations: 12.61 kB / 337.6 MB, free: 27.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1106, allocations: 49.07 MB / 386.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.006158/0.1168, allocations: 4.211 MB / 390.9 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004474/0.1213, allocations: 2.545 MB / 393.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001/0.1223, allocations: 27.88 kB / 393.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.1244, allocations: 0.5135 MB / 393.9 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001199/0.1256, allocations: 178.7 kB / 394.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.1269, allocations: 399.6 kB / 394.5 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001662/0.1286, allocations: 1.13 MB / 395.6 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008481/0.1294, allocations: 462.5 kB / 396.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007518/0.1302, allocations: 326.5 kB / 396.4 MB, free: 256 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007995/0.131, allocations: 350 kB / 396.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002385/0.1313, allocations: 36 kB / 396.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003639/0.1316, allocations: 63.98 kB / 396.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003155/0.132, allocations: 175.2 kB / 397 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007561/0.1327, allocations: 443.1 kB / 397.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00171/0.1345, allocations: 1.409 MB / 398.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1345, allocations: 0 / 398.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1345, allocations: 0 / 398.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.766e-05/0.1346, allocations: 0 / 398.9 MB, free: 13.78 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.00312/0.1377, allocations: 1.306 MB / 400.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.1377, allocations: 12.03 kB / 400.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004138/0.1382, allocations: 111.6 kB / 400.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.1396, allocations: 0.6736 MB / 401 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.79e-05/0.1397, allocations: 50.38 kB / 401 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001775/0.1399, allocations: 76.12 kB / 401.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00194/0.1418, allocations: 0.8452 MB / 401.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.1418, allocations: 4 kB / 401.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.011e-05/0.1419, allocations: 28 kB / 402 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.1419, allocations: 16 kB / 402 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001861/0.1438, allocations: 0.7077 MB / 402.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004582/0.1484, allocations: 2.915 MB / 405.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.1501, allocations: 0.6199 MB / 406.2 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007763/0.1509, allocations: 284.5 kB / 406.5 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.279e-05/0.151, allocations: 4 kB / 406.5 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001096/0.1521, allocations: 459.7 kB / 407 MB, free: 5.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.885e-06/0.1521, allocations: 0 / 407 MB, free: 5.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.002935/0.1551, allocations: 1.057 MB / 408 MB, free: 4.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/0.1552, allocations: 144.5 kB / 408.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.1564, allocations: 0.8833 MB / 409 MB, free: 3.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.071e-05/0.1565, allocations: 45.7 kB / 409.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000444/0.157, allocations: 439.7 kB / 409.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.1572, allocations: 146 kB / 409.6 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.1573, allocations: 69.67 kB / 409.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1575, allocations: 330 kB / 410 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008963/0.1584, allocations: 329.5 kB / 410.4 MB, free: 1.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009746/0.1594, allocations: 470.4 kB / 410.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.161, allocations: 0.8191 MB / 411.6 MB, free: 0.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.1611, allocations: 0 / 411.6 MB, free: 0.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00244/0.1635, allocations: 1.094 MB / 412.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.1636, allocations: 148.5 kB / 412.9 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.1637, allocations: 7.938 kB / 412.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002817/0.1639, allocations: 48.88 kB / 412.9 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000592/0.1645, allocations: 144 kB / 413.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.1661, allocations: 1.553 MB / 414.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008472/0.167, allocations: 131.4 kB / 414.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/0.167, allocations: 27.98 kB / 414.8 MB, free: 13.15 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.0005515/0.1676, allocations: 305.6 kB / 415.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.1678, allocations: 75.06 kB / 415.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.1696, allocations: 0.7124 MB / 415.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1696, allocations: 4 kB / 415.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.1696, allocations: 0 / 415.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.1696, allocations: 7.969 kB / 415.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002843/0.1725, allocations: 1.525 MB / 417.4 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.1725, allocations: 0 / 417.4 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004414/0.1729, allocations: 87.92 kB / 417.5 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001572/0.1731, allocations: 56.78 kB / 417.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.1731, allocations: 11.98 kB / 417.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.1745, allocations: 1.545 MB / 419.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1745, allocations: 0 / 419.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.1771, allocations: 1.106 MB / 420.2 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002437/0.1774, allocations: 176.1 kB / 420.4 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.1775, allocations: 19.98 kB / 420.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005863/0.1781, allocations: 75.92 kB / 420.5 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.1783, allocations: 79.91 kB / 420.6 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.1783, allocations: 15.98 kB / 420.6 MB, free: 7.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000916/0.1793, allocations: 0.6201 MB / 421.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1793, allocations: 0 / 421.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007765/0.1801, allocations: 183.4 kB / 421.4 MB, free: 6.301 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.0008755/0.1809, allocations: 382 kB / 421.7 MB, free: 5.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002185/0.1831, allocations: 1.105 MB / 422.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1832, allocations: 0 / 422.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009309/0.1841, allocations: 466.2 kB / 423.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009154/0.185, allocations: 159.6 kB / 423.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.1879, allocations: 1.799 MB / 425.3 MB, free: 2.285 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005813/0.1885, allocations: 0.9767 MB / 426.2 MB, free: 1.277 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003484/0.1888, allocations: 69.16 kB / 426.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.189, allocations: 47.42 kB / 426.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of SimCode: time 5.92e-07/0.189, allocations: 0 / 426.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of Templates: time 0.2104/0.3994, allocations: 9.877 MB / 436.2 MB, free: 42.51 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: