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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009563/0.0009563, allocations: 182.3 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04508/0.04508, allocations: 7.035 MB / 20.3 MB, free: 4.398 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.164/1.164, allocations: 194.3 MB / 216.6 MB, free: 10.88 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.00161/0.00161, allocations: 113.5 kB / 263.1 MB, free: 13.4 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.734e-05, allocations: 3.984 kB / 317 MB, free: 7.484 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2229, allocations: 45.96 MB / 363 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09094/0.3139, allocations: 83.69 MB / 446.7 MB, free: 3.781 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.3142, allocations: 77.12 kB / 446.7 MB, free: 3.707 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 - DAE generated: time 0.04351/0.3577, allocations: 18.46 MB / 465.2 MB, free: 1.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3577, allocations: 0 / 465.2 MB, free: 1.355 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.184e-05/0.3578, allocations: 16 kB / 465.2 MB, free: 1.34 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.001998/0.3598, allocations: 1.219 MB / 466.4 MB, free: 28 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3599, allocations: 15.97 kB / 466.5 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.36, allocations: 107 kB / 466.6 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008571/0.3609, allocations: 0.6052 MB / 467.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.361, allocations: 57.3 kB / 467.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.3611, allocations: 68 kB / 467.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.3622, allocations: 0.6752 MB / 468 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.3622, allocations: 0 / 468 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.331e-05/0.3623, allocations: 31.98 kB / 468 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.3623, allocations: 20 kB / 468 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008206/0.3631, allocations: 485.2 kB / 468.5 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003758/0.3669, allocations: 2.518 MB / 471 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007954/0.3677, allocations: 432.2 kB / 471.4 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002812/0.368, allocations: 176.8 kB / 471.6 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.113e-05/0.3681, allocations: 4.688 kB / 471.6 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005045/0.3686, allocations: 352 kB / 471.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 1.813e-06/0.3686, allocations: 0 / 471.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007949/0.3694, allocations: 465.4 kB / 472.4 MB, free: 9.891 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/0.3695, allocations: 140.5 kB / 472.5 MB, free: 9.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008996/0.3704, allocations: 0.7566 MB / 473.3 MB, free: 8.965 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.3704, allocations: 45.7 kB / 473.3 MB, free: 8.914 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/0.3707, allocations: 419.9 kB / 473.7 MB, free: 8.496 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.3708, allocations: 134.1 kB / 473.9 MB, free: 8.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.355e-05/0.3709, allocations: 12 kB / 473.9 MB, free: 8.352 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.371, allocations: 394.8 kB / 474.3 MB, free: 7.957 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/0.3714, allocations: 213.6 kB / 474.5 MB, free: 7.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.3718, allocations: 312.9 kB / 474.8 MB, free: 7.406 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/0.3723, allocations: 384 kB / 475.2 MB, free: 7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3723, allocations: 0 / 475.2 MB, free: 7 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001136/0.3734, allocations: 0.8447 MB / 476 MB, free: 6.109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.47e-05/0.3735, allocations: 182.4 kB / 476.2 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3735, allocations: 4 kB / 476.2 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.3737, allocations: 44.84 kB / 476.2 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005469/0.3743, allocations: 135.8 kB / 476.4 MB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.3755, allocations: 1.553 MB / 477.9 MB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/0.3761, allocations: 127.4 kB / 478 MB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.155e-05/0.3762, allocations: 20 kB / 478.1 MB, free: 3.879 MB / 362.7 MB 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.0001541/0.3763, allocations: 160.8 kB / 478.2 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.643e-05/0.3764, allocations: 79.02 kB / 478.3 MB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008272/0.3773, allocations: 0.4974 MB / 478.8 MB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3773, allocations: 8 kB / 478.8 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.3773, allocations: 4 kB / 478.8 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3773, allocations: 0 / 478.8 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.3788, allocations: 1.326 MB / 480.1 MB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3789, allocations: 4.062 kB / 480.1 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004358/0.3793, allocations: 91.86 kB / 480.2 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.3794, allocations: 44.84 kB / 480.3 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.3795, allocations: 14.52 kB / 480.3 MB, free: 1.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/0.3806, allocations: 1.549 MB / 481.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3806, allocations: 4.031 kB / 481.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.3816, allocations: 0.7976 MB / 482.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.3818, allocations: 176.1 kB / 482.8 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.839e-05/0.3819, allocations: 23.94 kB / 482.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006017/0.3825, allocations: 75.92 kB / 482.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.3827, allocations: 83.89 kB / 483 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.3828, allocations: 16.11 kB / 483 MB, free: 14.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006606/0.3834, allocations: 0.5695 MB / 483.6 MB, free: 14.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3834, allocations: 3.938 kB / 483.6 MB, free: 14.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006192/0.3841, allocations: 203.4 kB / 483.8 MB, free: 13.92 MB / 378.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.000734/0.3848, allocations: 382.9 kB / 484.1 MB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3859, allocations: 0.9319 MB / 485.1 MB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3859, allocations: 0 / 485.1 MB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000466/0.3864, allocations: 358.5 kB / 485.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006495/0.387, allocations: 138.8 kB / 485.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.3887, allocations: 1.023 MB / 486.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.3892, allocations: 0.9825 MB / 487.6 MB, free: 10.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003105/0.3895, allocations: 72.88 kB / 487.6 MB, free: 9.938 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.3897, allocations: 47.44 kB / 487.7 MB, free: 9.891 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3897, allocations: 0 / 487.7 MB, free: 9.891 MB / 378.7 MB Notification: Performance of Templates: time 0.01616/0.4059, allocations: 10.75 MB / 498.4 MB, free: 15.12 MB / 394.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)