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.001239/0.001239, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001199/0.001199, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.22/1.22, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04497/0.04497, allocations: 7.029 MB / 277.6 MB, free: 4.969 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.001399/0.001399, allocations: 68.47 kB / 385.9 MB, free: 48.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06983/0.07124, allocations: 48.11 MB / 434.1 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.005189/0.07646, allocations: 4.632 MB / 438.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003238/0.07974, allocations: 2.711 MB / 441.4 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006269/0.08042, allocations: 15.94 kB / 441.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.08167, allocations: 0.6221 MB / 442 MB, free: 1.418 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.0005224/0.0822, allocations: 214.2 kB / 442.2 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006049/0.08281, allocations: 435.4 kB / 442.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009796/0.0838, allocations: 1.291 MB / 444 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006407/0.08446, allocations: 486.7 kB / 444.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004512/0.08492, allocations: 446.5 kB / 444.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004004/0.08533, allocations: 450 kB / 445.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.08549, allocations: 128 kB / 445.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.08573, allocations: 160 kB / 445.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.08595, allocations: 271.1 kB / 445.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.08641, allocations: 0.5209 MB / 446.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.08788, allocations: 1.558 MB / 447.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.0879, allocations: 3.984 kB / 447.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.0879, allocations: 0 / 447.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.08792, allocations: 0 / 447.9 MB, free: 11.48 MB / 334.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.002596/0.09053, allocations: 1.465 MB / 449.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.09057, allocations: 8.031 kB / 449.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.09075, allocations: 103.7 kB / 449.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009814/0.09174, allocations: 0.6891 MB / 450.2 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.322e-05/0.0918, allocations: 58.38 kB / 450.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.09193, allocations: 84.09 kB / 450.3 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.0935, allocations: 0.8217 MB / 451.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.09353, allocations: 0 / 451.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/0.0936, allocations: 28 kB / 451.2 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.09362, allocations: 16 kB / 451.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.09519, allocations: 0.6452 MB / 451.8 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003862/0.09906, allocations: 2.88 MB / 454.7 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.1005, allocations: 0.565 MB / 455.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006072/0.1012, allocations: 252.5 kB / 455.5 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.1012, allocations: 4 kB / 455.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008649/0.1021, allocations: 423.7 kB / 456 MB, free: 3.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.254e-06/0.1021, allocations: 0 / 456 MB, free: 3.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.002442/0.1045, allocations: 0.9596 MB / 456.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/0.1046, allocations: 144.5 kB / 457.1 MB, free: 2.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.1056, allocations: 0.8833 MB / 457.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.515e-05/0.1057, allocations: 49.69 kB / 458 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000316/0.106, allocations: 447.5 kB / 458.4 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.1061, allocations: 138.1 kB / 458.6 MB, free: 492 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.1064, allocations: 130.2 kB / 458.7 MB, free: 352 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1065, allocations: 330 kB / 459 MB, free: 16 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007525/0.1072, allocations: 305.5 kB / 459.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008272/0.1081, allocations: 439.6 kB / 459.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.1095, allocations: 0.7528 MB / 460.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.1095, allocations: 3.938 kB / 460.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001952/0.1115, allocations: 1.028 MB / 461.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.394e-05/0.1116, allocations: 156.4 kB / 461.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.1116, allocations: 4.375 kB / 461.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/0.1119, allocations: 52.83 kB / 461.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005459/0.1124, allocations: 127.8 kB / 461.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.1138, allocations: 1.724 MB / 463.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006538/0.1145, allocations: 111.5 kB / 463.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-05/0.1145, allocations: 35.98 kB / 463.7 MB, free: 10.96 MB / 350.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.0004285/0.115, allocations: 293.7 kB / 464 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1151, allocations: 82.91 kB / 464.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001564/0.1153, allocations: 87.59 kB / 464.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1153, allocations: 4 kB / 464.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1153, allocations: 0 / 464.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1153, allocations: 7.984 kB / 464.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.1177, allocations: 1.47 MB / 465.7 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1177, allocations: 0 / 465.7 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000414/0.1181, allocations: 79.86 kB / 465.7 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001291/0.1183, allocations: 40.84 kB / 465.8 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/0.1183, allocations: 15.92 kB / 465.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/0.1196, allocations: 1.72 MB / 467.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1196, allocations: 4.062 kB / 467.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.1218, allocations: 1.031 MB / 468.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.122, allocations: 172.1 kB / 468.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.782e-05/0.1221, allocations: 19.94 kB / 468.7 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005245/0.1226, allocations: 67.91 kB / 468.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.1228, allocations: 75.92 kB / 468.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.1229, allocations: 15.98 kB / 468.9 MB, free: 5.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007442/0.1236, allocations: 0.6123 MB / 469.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1236, allocations: 4 kB / 469.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006621/0.1243, allocations: 183.4 kB / 469.7 MB, free: 4.75 MB / 350.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.0008141/0.1251, allocations: 387.3 kB / 470.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.127, allocations: 1.061 MB / 471.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.127, allocations: 0 / 471.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007924/0.1278, allocations: 414.7 kB / 471.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007797/0.1286, allocations: 171.9 kB / 471.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.131, allocations: 1.483 MB / 473.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/0.1315, allocations: 0.9725 MB / 474.2 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.1317, allocations: 51.44 kB / 474.2 MB, free: 68 kB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1317, allocations: 0 / 474.2 MB, free: 68 kB / 350.1 MB Notification: Performance of Templates: time 0.01814/0.1499, allocations: 15.56 MB / 489.8 MB, free: 488 kB / 366.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)