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.005295/0.005294, allocations: 176 kB / 15.12 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05934/0.05934, allocations: 7.043 MB / 22.9 MB, free: 4.484 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.486/1.486, allocations: 194.5 MB / 219.6 MB, free: 15.58 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.001611/0.001611, allocations: 112.7 kB / 266.4 MB, free: 0.6914 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004125/0.0004123, allocations: 16 kB / 322.8 MB, free: 17.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09908/0.09951, allocations: 45.98 MB / 368.8 MB, free: 3.344 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3443/0.4438, allocations: 83.78 MB / 452.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/0.4442, allocations: 89.28 kB / 452.7 MB, free: 13.83 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.04696/0.4912, allocations: 18.46 MB / 471.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4912, allocations: 0 / 471.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.743e-05/0.4913, allocations: 16 kB / 471.2 MB, free: 14.18 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.002881/0.4942, allocations: 1.343 MB / 472.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.4943, allocations: 11.97 kB / 472.5 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002293/0.4945, allocations: 102.8 kB / 472.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.4957, allocations: 0.6142 MB / 473.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.302e-05/0.4958, allocations: 61.31 kB / 473.3 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.4959, allocations: 75.89 kB / 473.4 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.4979, allocations: 0.7806 MB / 474.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.4979, allocations: 0 / 474.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.498, allocations: 28 kB / 474.2 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.498, allocations: 16 kB / 474.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.4999, allocations: 0.6883 MB / 474.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004997/0.5049, allocations: 2.516 MB / 477.4 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.5066, allocations: 0.6162 MB / 478 MB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.05e-05/0.5067, allocations: 7.984 kB / 478 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001055/0.5078, allocations: 447.9 kB / 478.4 MB, free: 6.711 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 5.06e-06/0.5078, allocations: 0 / 478.4 MB, free: 6.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.002777/0.5106, allocations: 1.049 MB / 479.5 MB, free: 5.633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.463e-05/0.5107, allocations: 144.5 kB / 479.6 MB, free: 5.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.5118, allocations: 0.7496 MB / 480.4 MB, free: 4.707 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.339e-05/0.5119, allocations: 45.7 kB / 480.4 MB, free: 4.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003798/0.5123, allocations: 411.9 kB / 480.8 MB, free: 4.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.5124, allocations: 150 kB / 481 MB, free: 4.098 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.5125, allocations: 12 kB / 481 MB, free: 4.086 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.5127, allocations: 390.7 kB / 481.4 MB, free: 3.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008039/0.5135, allocations: 317.1 kB / 481.7 MB, free: 3.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008749/0.5144, allocations: 423.5 kB / 482.1 MB, free: 2.938 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008965/0.5153, allocations: 489.2 kB / 482.6 MB, free: 2.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.5153, allocations: 0 / 482.6 MB, free: 2.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002191/0.5175, allocations: 1.057 MB / 483.6 MB, free: 1.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.5177, allocations: 174.2 kB / 483.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.5177, allocations: 3.938 kB / 483.8 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002316/0.5179, allocations: 44.84 kB / 483.9 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005869/0.5185, allocations: 135.8 kB / 484 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.52, allocations: 1.549 MB / 485.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000764/0.5208, allocations: 127.5 kB / 485.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.5208, allocations: 24 kB / 485.7 MB, free: 15.1 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 () * Number of clocked 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.00058/0.5214, allocations: 293.8 kB / 486 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.5216, allocations: 83 kB / 486 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/0.5233, allocations: 0.6928 MB / 486.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.5233, allocations: 8 kB / 486.8 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5234, allocations: 0 / 486.8 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5234, allocations: 0 / 486.8 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.526, allocations: 1.549 MB / 488.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.526, allocations: 0 / 488.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.5265, allocations: 91.86 kB / 488.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001512/0.5267, allocations: 48.83 kB / 488.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.118e-05/0.5267, allocations: 12 kB / 488.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.5282, allocations: 1.553 MB / 490 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.5282, allocations: 0 / 490 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002452/0.5306, allocations: 1.106 MB / 491.1 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000251/0.5309, allocations: 180.1 kB / 491.3 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.872e-05/0.531, allocations: 20 kB / 491.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005758/0.5316, allocations: 79.88 kB / 491.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.5318, allocations: 87.88 kB / 491.5 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-05/0.5319, allocations: 12 kB / 491.5 MB, free: 9.043 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008591/0.5327, allocations: 0.581 MB / 492.1 MB, free: 8.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5327, allocations: 0 / 492.1 MB, free: 8.465 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008013/0.5335, allocations: 203.4 kB / 492.3 MB, free: 8.266 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) * 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 (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.0008498/0.5344, allocations: 387.6 kB / 492.6 MB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002188/0.5366, allocations: 1.147 MB / 493.8 MB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5366, allocations: 0 / 493.8 MB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000919/0.5375, allocations: 458.6 kB / 494.2 MB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007255/0.5383, allocations: 142.8 kB / 494.4 MB, free: 6.066 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.5411, allocations: 1.651 MB / 496 MB, free: 4.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006086/0.5417, allocations: 0.9803 MB / 497 MB, free: 3.371 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003869/0.5421, allocations: 84.78 kB / 497.1 MB, free: 3.285 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.5423, allocations: 47.44 kB / 497.1 MB, free: 3.238 MB / 362.7 MB Notification: Performance of SimCode: time 7.02e-07/0.5423, allocations: 0 / 497.1 MB, free: 3.238 MB / 362.7 MB Notification: Performance of Templates: time 0.02034/0.5627, allocations: 10.6 MB / 0.4958 GB, free: 8.629 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)