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.001141/0.001141, allocations: 106.2 kB / 16.27 MB, free: 5.977 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.001414/0.001414, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.129/1.129, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.03976/0.03976, allocations: 7.041 MB / 277.5 MB, free: 5.047 MB / 222.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.001348/0.001348, allocations: 71.91 kB / 336.6 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1738, allocations: 48.09 MB / 384.6 MB, free: 51.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.004798/0.1786, allocations: 4.632 MB / 389.3 MB, free: 48.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002703/0.1814, allocations: 2.707 MB / 392 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002742/0.1816, allocations: 17.25 kB / 392 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.1828, allocations: 0.6164 MB / 392.6 MB, free: 46.58 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003721/0.1831, allocations: 220.3 kB / 392.8 MB, free: 46.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005633/0.1837, allocations: 441.9 kB / 393.3 MB, free: 46.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008822/0.1846, allocations: 1.272 MB / 394.5 MB, free: 45.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004981/0.1851, allocations: 0.4895 MB / 395 MB, free: 45.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003128/0.1854, allocations: 444.8 kB / 395.5 MB, free: 45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000333/0.1858, allocations: 448.2 kB / 395.9 MB, free: 44.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001316/0.1859, allocations: 130.6 kB / 396 MB, free: 44.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.1861, allocations: 163.3 kB / 396.2 MB, free: 44.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.1863, allocations: 271 kB / 396.5 MB, free: 44.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003273/0.1866, allocations: 0.5224 MB / 397 MB, free: 44.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001227/0.1879, allocations: 1.52 MB / 398.5 MB, free: 43.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1879, allocations: 0 / 398.5 MB, free: 43.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1879, allocations: 1.188 kB / 398.5 MB, free: 43.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.1879, allocations: 4 kB / 398.5 MB, free: 43.5 MB / 318.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.001975/0.1899, allocations: 1.46 MB / 400 MB, free: 42.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.808e-05/0.1899, allocations: 10.19 kB / 400 MB, free: 42.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.1901, allocations: 113.6 kB / 400.1 MB, free: 42.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006105/0.1907, allocations: 0.6791 MB / 400.8 MB, free: 41.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.1907, allocations: 56.31 kB / 400.8 MB, free: 41.63 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.469e-05/0.1908, allocations: 73.41 kB / 400.9 MB, free: 41.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.1921, allocations: 0.8228 MB / 401.7 MB, free: 41.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.1921, allocations: 0 / 401.7 MB, free: 41.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.555e-05/0.1922, allocations: 30.75 kB / 401.7 MB, free: 41.06 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.1922, allocations: 16.91 kB / 401.8 MB, free: 41.06 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.1936, allocations: 0.6478 MB / 402.4 MB, free: 40.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.1963, allocations: 2.904 MB / 405.3 MB, free: 38.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1976, allocations: 0.5504 MB / 405.9 MB, free: 38.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.1982, allocations: 256 kB / 406.1 MB, free: 37.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.1983, allocations: 16.5 kB / 406.1 MB, free: 37.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000748/0.199, allocations: 417.1 kB / 406.5 MB, free: 37.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 1.653e-06/0.199, allocations: 0 / 406.5 MB, free: 37.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=46): time 0.002158/0.2012, allocations: 0.9632 MB / 407.5 MB, free: 37.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.2012, allocations: 145.7 kB / 407.6 MB, free: 36.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008233/0.2021, allocations: 0.8749 MB / 408.5 MB, free: 36.47 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.546e-05/0.2021, allocations: 45.36 kB / 408.6 MB, free: 36.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.2023, allocations: 454.2 kB / 409 MB, free: 36.03 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.148e-05/0.2024, allocations: 137.6 kB / 409.1 MB, free: 35.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.2026, allocations: 134.2 kB / 409.3 MB, free: 35.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.499e-05/0.2027, allocations: 327.8 kB / 409.6 MB, free: 35.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000686/0.2033, allocations: 301.7 kB / 409.9 MB, free: 35.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007271/0.2041, allocations: 443.6 kB / 410.3 MB, free: 35.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.2053, allocations: 0.7438 MB / 411.1 MB, free: 34.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2053, allocations: 5.031 kB / 411.1 MB, free: 34.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001594/0.2069, allocations: 1.034 MB / 412.1 MB, free: 33.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.061e-05/0.207, allocations: 144.5 kB / 412.2 MB, free: 33.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.207, allocations: 7.984 kB / 412.2 MB, free: 33.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001684/0.2072, allocations: 53.06 kB / 412.3 MB, free: 33.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.2076, allocations: 123.8 kB / 412.4 MB, free: 33.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008465/0.2085, allocations: 1.728 MB / 414.1 MB, free: 31.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.2091, allocations: 111.4 kB / 414.3 MB, free: 31.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.2091, allocations: 36 kB / 414.3 MB, free: 31.1 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.0002473/0.2094, allocations: 297.7 kB / 414.6 MB, free: 30.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.777e-05/0.2095, allocations: 79 kB / 414.7 MB, free: 30.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.2096, allocations: 87.58 kB / 414.7 MB, free: 30.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2096, allocations: 4 kB / 414.7 MB, free: 30.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2096, allocations: 0 / 414.7 MB, free: 30.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.2096, allocations: 0 / 414.7 MB, free: 30.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.2114, allocations: 1.482 MB / 416.2 MB, free: 29.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.2114, allocations: 3.984 kB / 416.2 MB, free: 29.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/0.2118, allocations: 79.86 kB / 416.3 MB, free: 29.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001189/0.2119, allocations: 48.83 kB / 416.4 MB, free: 28.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.212, allocations: 4 kB / 416.4 MB, free: 28.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009456/0.2129, allocations: 1.732 MB / 418.1 MB, free: 27.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2129, allocations: 0 / 418.1 MB, free: 27.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.2148, allocations: 1.028 MB / 419.1 MB, free: 26.03 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.954e-05/0.2149, allocations: 164.1 kB / 419.3 MB, free: 25.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.401e-05/0.215, allocations: 23.92 kB / 419.3 MB, free: 25.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004836/0.2155, allocations: 59.92 kB / 419.4 MB, free: 25.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.2156, allocations: 83.84 kB / 419.4 MB, free: 25.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.2156, allocations: 12 kB / 419.5 MB, free: 25.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004882/0.2161, allocations: 0.6162 MB / 420.1 MB, free: 25.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2161, allocations: 0 / 420.1 MB, free: 25.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000498/0.2166, allocations: 187.4 kB / 420.3 MB, free: 24.88 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.001532/0.2182, allocations: 390.7 kB / 420.6 MB, free: 24.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.2198, allocations: 1.068 MB / 421.7 MB, free: 23.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2198, allocations: 0 / 421.7 MB, free: 23.4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006574/0.2205, allocations: 426.7 kB / 422.1 MB, free: 22.97 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006731/0.2212, allocations: 163.4 kB / 422.3 MB, free: 22.81 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.2229, allocations: 1.498 MB / 423.8 MB, free: 21.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.2232, allocations: 0.9725 MB / 424.8 MB, free: 20.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.2233, allocations: 55.44 kB / 424.8 MB, free: 20.23 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2233, allocations: 0 / 424.8 MB, free: 20.23 MB / 318.1 MB Notification: Performance of Templates: time 0.01123/0.2346, allocations: 15.49 MB / 440.3 MB, free: 4.715 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)