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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00226/0.00226, allocations: 186.9 kB / 7.46 MB, free: 2.234 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04424/0.04424, allocations: 7.035 MB / 14.91 MB, free: 240 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9489/0.9489, allocations: 194.2 MB / 211 MB, free: 15.44 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001587/0.001587, allocations: 120.2 kB / 257.5 MB, free: 288 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.719e-06/4.739e-06, allocations: 0 / 309.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1711, allocations: 45.96 MB / 355.5 MB, free: 47.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08279/0.2539, allocations: 82.96 MB / 438.4 MB, free: 8.648 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.2541, allocations: 79.95 kB / 438.5 MB, free: 8.57 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo:2265:13-2265:95:writable] Warning: connect(y, y) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd: time 0.04251/0.2966, allocations: 17.94 MB / 456.4 MB, free: 6.785 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.591e-05/0.2967, allocations: 20.12 kB / 456.5 MB, free: 6.766 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.00219/0.2989, allocations: 1.25 MB / 457.7 MB, free: 5.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.2989, allocations: 11.97 kB / 457.7 MB, free: 5.414 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.2992, allocations: 106.7 kB / 457.8 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009411/0.3001, allocations: 0.6169 MB / 458.4 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.3002, allocations: 20 kB / 458.5 MB, free: 4.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.199e-05/0.3003, allocations: 52 kB / 458.5 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008396/0.3011, allocations: 454.5 kB / 459 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009862/0.3021, allocations: 0.5752 MB / 459.5 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.3021, allocations: 0 / 459.5 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.062e-05/0.3022, allocations: 4 kB / 459.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.3022, allocations: 16 kB / 459.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003739/0.306, allocations: 2.394 MB / 461.9 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006782/0.3066, allocations: 375.3 kB / 462.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.3069, allocations: 165.7 kB / 462.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.307, allocations: 4 kB / 462.5 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003967/0.3074, allocations: 276.4 kB / 462.8 MB, free: 240 kB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 1.963e-06/0.3074, allocations: 1.594 kB / 462.8 MB, free: 240 kB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007628/0.3082, allocations: 417.8 kB / 463.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.035e-05/0.3083, allocations: 144.4 kB / 463.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.3095, allocations: 0.6597 MB / 464 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.3095, allocations: 37.64 kB / 464 MB, free: 14.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.3097, allocations: 315.6 kB / 464.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.3099, allocations: 146 kB / 464.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.3099, allocations: 0 / 464.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.31, allocations: 378.8 kB / 464.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.3104, allocations: 205.3 kB / 465 MB, free: 13.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.3108, allocations: 290.5 kB / 465.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.3111, allocations: 207.1 kB / 465.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3111, allocations: 0 / 465.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.000963/0.3121, allocations: 0.5976 MB / 466.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.3121, allocations: 8 kB / 466.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.3121, allocations: 0 / 466.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.3123, allocations: 46.25 kB / 466.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005624/0.3129, allocations: 143.8 kB / 466.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.314, allocations: 1.461 MB / 467.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006488/0.3147, allocations: 115.5 kB / 467.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.817e-05/0.3148, allocations: 23.98 kB / 467.9 MB, free: 10.87 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: output V:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fTP72_1.on,$PRE.fTP72_1.liberal1.polse1C.T_start,fTP72_1.liberal1.polse1C.T_start,$PRE.fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.polse1C.count,$PRE.fTP72_1.liberal1.pulse0_5C.T_start,fTP72_1.liberal1.pulse0_5C.T_start,$PRE.fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_5C.count,$PRE.fTP72_1.liberal1.pulse0_9C.T_start,fTP72_1.liberal1.pulse0_9C.T_start,$PRE.fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_9C.count,$PRE.fTP72_1.liberal1.pulse0_45C.T_start,fTP72_1.liberal1.pulse0_45C.T_start,$PRE.fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse0_45C.count,$PRE.fTP72_1.liberal1.pulse1C1.T_start,fTP72_1.liberal1.pulse1C1.T_start,$PRE.fTP72_1.liberal1.pulse1C1.count,fTP72_1.liberal1.pulse1C1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001803/0.3149, allocations: 142.6 kB / 468 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/0.315, allocations: 67.16 kB / 468.1 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007464/0.3158, allocations: 449.4 kB / 468.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3158, allocations: 8 kB / 468.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-06/0.3158, allocations: 0 / 468.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.3158, allocations: 3.984 kB / 468.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/0.3173, allocations: 1.176 MB / 469.7 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3173, allocations: 0 / 469.7 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.3178, allocations: 107.9 kB / 469.8 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000117/0.3179, allocations: 37.34 kB / 469.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.318, allocations: 12.48 kB / 469.9 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.319, allocations: 1.47 MB / 471.3 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.319, allocations: 1.375 kB / 471.3 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009814/0.32, allocations: 0.74 MB / 472.1 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.3202, allocations: 172.2 kB / 472.3 MB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.3203, allocations: 8 kB / 472.3 MB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.3209, allocations: 83.92 kB / 472.3 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.3211, allocations: 79.88 kB / 472.4 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.3211, allocations: 12 kB / 472.4 MB, free: 6.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005893/0.3217, allocations: 0.5031 MB / 472.9 MB, free: 5.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006152/0.3223, allocations: 191.2 kB / 473.1 MB, free: 5.43 MB / 362.7 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.on,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) * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006998/0.323, allocations: 362.3 kB / 473.5 MB, free: 5.133 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.3241, allocations: 0.7055 MB / 474.2 MB, free: 4.379 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3241, allocations: 0 / 474.2 MB, free: 4.379 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004423/0.3245, allocations: 325.7 kB / 474.5 MB, free: 4.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.3252, allocations: 107.2 kB / 474.6 MB, free: 3.941 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.3273, allocations: 1.018 MB / 475.6 MB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008152/0.3281, allocations: 1.026 MB / 476.7 MB, free: 1.836 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3281, allocations: 0 / 476.7 MB, free: 1.836 MB / 362.7 MB Notification: Performance of Templates: time 0.01528/0.3434, allocations: 9.587 MB / 486.2 MB, free: 8.23 MB / 378.7 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)