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.001059/0.00106, allocations: 182.6 kB / 16.12 MB, free: 5.543 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05664/0.05664, allocations: 7.042 MB / 23.91 MB, free: 4.34 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.464/1.464, allocations: 194.5 MB / 220.6 MB, free: 15.47 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.001628/0.001628, allocations: 124 kB / 267.4 MB, free: 0.5586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003995/0.0003994, allocations: 16 kB / 324 MB, free: 17.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09041/0.09083, allocations: 45.98 MB / 370 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2866/0.3775, allocations: 83.89 MB / 453.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.3778, allocations: 84.09 kB / 454 MB, free: 13.86 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.04783/0.4256, allocations: 18.53 MB / 472.5 MB, free: 13.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4257, allocations: 0 / 472.5 MB, free: 13.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001012/0.4258, allocations: 20 kB / 472.5 MB, free: 13.74 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.003321/0.4291, allocations: 1.319 MB / 473.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.4292, allocations: 16.03 kB / 473.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003939/0.4296, allocations: 107.9 kB / 474 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.4309, allocations: 0.6411 MB / 474.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.508e-05/0.431, allocations: 53.69 kB / 474.7 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001843/0.4312, allocations: 72.36 kB / 474.7 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.433, allocations: 0.7851 MB / 475.5 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.4331, allocations: 3.938 kB / 475.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/0.4331, allocations: 28 kB / 475.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.4332, allocations: 16 kB / 475.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.435, allocations: 0.6805 MB / 476.3 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/0.4397, allocations: 2.531 MB / 478.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.4413, allocations: 0.6082 MB / 479.4 MB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006961/0.442, allocations: 284.7 kB / 479.7 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-05/0.4421, allocations: 11.72 kB / 479.7 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009802/0.4431, allocations: 451.8 kB / 480.1 MB, free: 5.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 2.284e-06/0.4431, allocations: 0 / 480.1 MB, free: 5.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.002764/0.4459, allocations: 1.038 MB / 481.2 MB, free: 4.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.446, allocations: 144.5 kB / 481.3 MB, free: 4.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001462/0.4475, allocations: 0.8284 MB / 482.1 MB, free: 3.812 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.463e-05/0.4476, allocations: 45.7 kB / 482.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/0.448, allocations: 427.9 kB / 482.6 MB, free: 3.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.4481, allocations: 130.2 kB / 482.7 MB, free: 3.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.586e-05/0.4482, allocations: 12 kB / 482.7 MB, free: 3.199 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.4484, allocations: 390.8 kB / 483.1 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008279/0.4492, allocations: 321.1 kB / 483.4 MB, free: 2.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008582/0.4501, allocations: 423.5 kB / 483.8 MB, free: 2.047 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.4517, allocations: 0.7721 MB / 484.6 MB, free: 1.223 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.4517, allocations: 3.938 kB / 484.6 MB, free: 1.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002271/0.454, allocations: 1.061 MB / 485.7 MB, free: 108 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.4541, allocations: 174.2 kB / 485.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.4541, allocations: 7.938 kB / 485.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002618/0.4544, allocations: 44.84 kB / 485.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005685/0.455, allocations: 127.9 kB / 486 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.4566, allocations: 1.557 MB / 487.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008877/0.4575, allocations: 127.4 kB / 487.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.173e-05/0.4576, allocations: 20 kB / 487.7 MB, free: 13.89 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.0007462/0.4583, allocations: 290.4 kB / 488 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.4586, allocations: 78.98 kB / 488.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.4606, allocations: 0.7044 MB / 488.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.4606, allocations: 4 kB / 488.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.4606, allocations: 0 / 488.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4606, allocations: 0 / 488.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003631/0.4643, allocations: 1.544 MB / 490.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.4643, allocations: 0 / 490.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004549/0.4647, allocations: 99.86 kB / 490.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.4649, allocations: 40.84 kB / 490.5 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.465, allocations: 11.98 kB / 490.5 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.4663, allocations: 1.553 MB / 492 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.4663, allocations: 8.125 kB / 492.1 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002357/0.4686, allocations: 1.102 MB / 493.2 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/0.4689, allocations: 180.2 kB / 493.3 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.563e-05/0.469, allocations: 15.98 kB / 493.3 MB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.4695, allocations: 75.92 kB / 493.4 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.4698, allocations: 87.88 kB / 493.5 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.312e-05/0.4698, allocations: 12 kB / 493.5 MB, free: 7.832 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008327/0.4707, allocations: 0.5888 MB / 494.1 MB, free: 7.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4707, allocations: 0 / 494.1 MB, free: 7.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008011/0.4715, allocations: 191.4 kB / 494.3 MB, free: 7.062 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.0008429/0.4723, allocations: 408.7 kB / 494.7 MB, free: 6.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002138/0.4745, allocations: 1.146 MB / 495.8 MB, free: 5.438 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.4745, allocations: 0 / 495.8 MB, free: 5.438 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008905/0.4754, allocations: 462.5 kB / 496.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009317/0.4763, allocations: 154.7 kB / 496.4 MB, free: 4.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.4792, allocations: 1.647 MB / 498.1 MB, free: 3.141 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005966/0.4798, allocations: 0.9609 MB / 499.1 MB, free: 2.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000429/0.4803, allocations: 80.86 kB / 499.1 MB, free: 2.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.4805, allocations: 51.42 kB / 499.2 MB, free: 2.02 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4805, allocations: 0 / 499.2 MB, free: 2.02 MB / 362.7 MB Notification: Performance of Templates: time 0.01877/0.4993, allocations: 10.67 MB / 0.4979 GB, free: 7.34 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)