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.001326/0.001326, allocations: 105 kB / 16.41 MB, free: 6.465 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.001268/0.001268, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.493/1.493, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04598/0.04598, allocations: 7.029 MB / 277.6 MB, free: 4.949 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.001608/0.001608, allocations: 68.67 kB / 385.9 MB, free: 48.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06828/0.06989, allocations: 48.12 MB / 434.1 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.004776/0.0747, allocations: 4.62 MB / 438.7 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003169/0.07789, allocations: 2.715 MB / 441.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006507/0.0786, allocations: 15.94 kB / 441.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.07997, allocations: 0.6221 MB / 442 MB, free: 1.387 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.0006773/0.08066, allocations: 210.2 kB / 442.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.0817, allocations: 431.4 kB / 442.7 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.08331, allocations: 1.287 MB / 444 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006135/0.08394, allocations: 486.7 kB / 444.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004618/0.08441, allocations: 450.5 kB / 444.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004057/0.08482, allocations: 442 kB / 445.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.08498, allocations: 132 kB / 445.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.08521, allocations: 160 kB / 445.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000215/0.08543, allocations: 271.1 kB / 445.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004764/0.08591, allocations: 0.5209 MB / 446.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.08725, allocations: 1.562 MB / 447.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.08727, allocations: 0 / 447.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.08728, allocations: 8 kB / 447.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.0873, allocations: 0 / 447.9 MB, free: 11.45 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.002484/0.08979, allocations: 1.461 MB / 449.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.08983, allocations: 12.03 kB / 449.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.09, allocations: 103.7 kB / 449.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009395/0.09095, allocations: 0.6891 MB / 450.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.091, allocations: 50.38 kB / 450.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.09112, allocations: 76.12 kB / 450.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.09275, allocations: 0.8256 MB / 451.2 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.09278, allocations: 0 / 451.2 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.09286, allocations: 32 kB / 451.2 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.09288, allocations: 16 kB / 451.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.09458, allocations: 0.6413 MB / 451.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003688/0.09829, allocations: 2.884 MB / 454.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.09997, allocations: 0.5611 MB / 455.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006738/0.1007, allocations: 248.5 kB / 455.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.1007, allocations: 7.984 kB / 455.5 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009343/0.1016, allocations: 419.8 kB / 455.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.144e-06/0.1017, allocations: 0 / 455.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.002643/0.1043, allocations: 0.9635 MB / 456.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.1044, allocations: 148.4 kB / 457.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.1056, allocations: 0.8833 MB / 457.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.164e-05/0.1056, allocations: 41.7 kB / 458 MB, free: 1.047 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.106, allocations: 443.5 kB / 458.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.1061, allocations: 142.1 kB / 458.6 MB, free: 480 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002071/0.1063, allocations: 130.2 kB / 458.7 MB, free: 340 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1064, allocations: 334 kB / 459 MB, free: 0 / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008569/0.1073, allocations: 297.5 kB / 459.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008794/0.1082, allocations: 439.6 kB / 459.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.1098, allocations: 0.7528 MB / 460.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1098, allocations: 0 / 460.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002087/0.1119, allocations: 1.036 MB / 461.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.82e-05/0.112, allocations: 160.3 kB / 461.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.112, allocations: 7.984 kB / 461.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000206/0.1122, allocations: 44.83 kB / 461.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005493/0.1128, allocations: 127.8 kB / 461.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.1142, allocations: 1.732 MB / 463.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006824/0.1148, allocations: 111.4 kB / 463.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.376e-05/0.1149, allocations: 24 kB / 463.7 MB, free: 10.95 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.000396/0.1153, allocations: 309.7 kB / 464 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.1154, allocations: 82.91 kB / 464.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.1156, allocations: 87.58 kB / 464.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.1156, allocations: 8 kB / 464.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1156, allocations: 8.125 kB / 464.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.1156, allocations: 0 / 464.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002508/0.1181, allocations: 1.462 MB / 465.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1182, allocations: 0 / 465.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004452/0.1186, allocations: 83.86 kB / 465.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000129/0.1187, allocations: 40.83 kB / 465.8 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.1188, allocations: 16 kB / 465.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.1201, allocations: 1.72 MB / 467.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1201, allocations: 0 / 467.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.1225, allocations: 1.028 MB / 468.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.1227, allocations: 176.1 kB / 468.7 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.1228, allocations: 23.92 kB / 468.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005701/0.1234, allocations: 64.05 kB / 468.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.1236, allocations: 75.91 kB / 468.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/0.1236, allocations: 16 kB / 468.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007561/0.1244, allocations: 0.6123 MB / 469.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1244, allocations: 4 kB / 469.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006788/0.1251, allocations: 191.4 kB / 469.7 MB, free: 4.723 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.0009009/0.126, allocations: 383.1 kB / 470.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.128, allocations: 1.053 MB / 471.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.128, allocations: 0 / 471.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008626/0.1288, allocations: 422.7 kB / 471.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008368/0.1297, allocations: 166.5 kB / 471.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.1321, allocations: 1.487 MB / 473.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.1326, allocations: 0.9725 MB / 474.2 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.1328, allocations: 55.42 kB / 474.2 MB, free: 40 kB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1329, allocations: 4 kB / 474.2 MB, free: 36 kB / 350.1 MB Notification: Performance of Templates: time 0.01732/0.1502, allocations: 15.55 MB / 489.8 MB, free: 468 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)