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.001375/0.001374, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001901/0.001901, allocations: 189.2 kB / 16.14 MB, free: 6.711 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.623/1.623, allocations: 205.1 MB / 222 MB, free: 4.992 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06693/0.06693, allocations: 7.027 MB / 276.4 MB, free: 14.67 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.002687/0.002688, allocations: 71.03 kB / 335.2 MB, free: 27.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1525, allocations: 48.09 MB / 383.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.009402/0.1619, allocations: 4.65 MB / 388 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005693/0.1677, allocations: 2.665 MB / 390.6 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004656/0.1682, allocations: 15.94 kB / 390.6 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.1699, allocations: 0.5213 MB / 391.2 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005316/0.1705, allocations: 170.8 kB / 391.3 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008672/0.1714, allocations: 399.7 kB / 391.7 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.1727, allocations: 1.137 MB / 392.9 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007642/0.1735, allocations: 470.5 kB / 393.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004957/0.174, allocations: 370.4 kB / 393.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004521/0.1744, allocations: 398 kB / 394.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.1745, allocations: 52 kB / 394.1 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001973/0.1747, allocations: 88 kB / 394.2 MB, free: 420 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.175, allocations: 203.1 kB / 394.4 MB, free: 216 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004433/0.1754, allocations: 461.3 kB / 394.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1767, allocations: 1.46 MB / 396.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1767, allocations: 4 kB / 396.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1767, allocations: 0 / 396.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.1767, allocations: 0 / 396.3 MB, free: 14.29 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.002852/0.1796, allocations: 1.454 MB / 397.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.1797, allocations: 12.03 kB / 397.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002009/0.1799, allocations: 115.6 kB / 397.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008898/0.1808, allocations: 0.6697 MB / 398.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.564e-05/0.1808, allocations: 58.38 kB / 398.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.1809, allocations: 72.12 kB / 398.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.1826, allocations: 0.8178 MB / 399.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.1826, allocations: 0 / 399.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.776e-05/0.1827, allocations: 31.98 kB / 399.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.1827, allocations: 16 kB / 399.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.1843, allocations: 0.6453 MB / 400.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/0.1883, allocations: 2.915 MB / 403.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.1898, allocations: 0.5457 MB / 403.7 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006549/0.1905, allocations: 252.5 kB / 403.9 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.45e-05/0.1906, allocations: 12 kB / 403.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.1916, allocations: 427.6 kB / 404.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.094e-06/0.1916, allocations: 4 kB / 404.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.00256/0.1942, allocations: 0.9518 MB / 405.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.106e-05/0.1943, allocations: 148.4 kB / 405.4 MB, free: 4.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.1954, allocations: 0.8833 MB / 406.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.878e-05/0.1955, allocations: 41.7 kB / 406.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003546/0.1958, allocations: 439.7 kB / 406.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.196, allocations: 146 kB / 406.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.1962, allocations: 130.3 kB / 407.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1964, allocations: 338 kB / 407.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007581/0.1971, allocations: 297.5 kB / 407.7 MB, free: 2.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008705/0.198, allocations: 447.5 kB / 408.1 MB, free: 2.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.1995, allocations: 0.7411 MB / 408.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1995, allocations: 4 kB / 408.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002063/0.2016, allocations: 1.036 MB / 409.9 MB, free: 160 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.2017, allocations: 151.6 kB / 410 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.2017, allocations: 4 kB / 410 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002537/0.202, allocations: 48.84 kB / 410.1 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005419/0.2025, allocations: 119.8 kB / 410.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.204, allocations: 1.561 MB / 411.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007356/0.2048, allocations: 115.3 kB / 411.9 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-05/0.2049, allocations: 31.98 kB / 411.9 MB, free: 13.97 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.0006192/0.2055, allocations: 301.7 kB / 412.2 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.2057, allocations: 79.11 kB / 412.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.2074, allocations: 0.65 MB / 412.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.2074, allocations: 11.94 kB / 413 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2074, allocations: 0 / 413 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.2074, allocations: 3.984 kB / 413 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002549/0.21, allocations: 1.463 MB / 414.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.21, allocations: 3.938 kB / 414.4 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.2104, allocations: 75.86 kB / 414.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001486/0.2105, allocations: 44.84 kB / 414.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.718e-05/0.2106, allocations: 15.98 kB / 414.6 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.2121, allocations: 1.545 MB / 416.1 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2121, allocations: 4 kB / 416.1 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.2144, allocations: 1.016 MB / 417.1 MB, free: 8.516 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.2146, allocations: 172 kB / 417.3 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.2147, allocations: 16 kB / 417.3 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005747/0.2153, allocations: 67.91 kB / 417.4 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.2155, allocations: 75.91 kB / 417.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.2156, allocations: 16 kB / 417.5 MB, free: 8.156 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009017/0.2165, allocations: 0.6123 MB / 418.1 MB, free: 7.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2165, allocations: 0 / 418.1 MB, free: 7.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008135/0.2173, allocations: 187.5 kB / 418.3 MB, free: 7.367 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.000883/0.2182, allocations: 370 kB / 418.6 MB, free: 6.996 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002181/0.2204, allocations: 1.05 MB / 419.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2204, allocations: 0 / 419.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009348/0.2213, allocations: 430.3 kB / 420.1 MB, free: 5.434 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009725/0.2223, allocations: 171.5 kB / 420.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/0.2257, allocations: 1.757 MB / 422 MB, free: 3.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009138/0.2266, allocations: 0.9766 MB / 423 MB, free: 2.477 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004395/0.227, allocations: 73.16 kB / 423.1 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.2272, allocations: 51.42 kB / 423.1 MB, free: 2.355 MB / 318.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2273, allocations: 3.938 kB / 423.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of Templates: time 0.2342/0.4615, allocations: 10 MB / 433.1 MB, free: 44.12 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)