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.001098/0.001098, allocations: 186.2 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05274/0.05274, allocations: 7.034 MB / 23.77 MB, free: 4.297 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.392/1.392, allocations: 194.2 MB / 220.2 MB, free: 2.484 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001872/0.001872, allocations: 132 kB / 266 MB, free: 4.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001193, allocations: 67.89 kB / 321.9 MB, free: 35.8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.09085, allocations: 45.05 MB / 366.9 MB, free: 6.723 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.00695/0.09784, allocations: 4.583 MB / 371.5 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004587/0.1025, allocations: 2.563 MB / 374.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00086/0.1034, allocations: 16 kB / 374.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001839/0.1052, allocations: 0.5096 MB / 374.6 MB, free: 15.01 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000626/0.1059, allocations: 166.9 kB / 374.7 MB, free: 14.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006652/0.1066, allocations: 319.7 kB / 375.1 MB, free: 14.53 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.1077, allocations: 1.122 MB / 376.2 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006144/0.1083, allocations: 462.7 kB / 376.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003889/0.1087, allocations: 362.5 kB / 377 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003952/0.1091, allocations: 390.1 kB / 377.4 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.696e-05/0.1092, allocations: 52 kB / 377.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.1094, allocations: 83.92 kB / 377.5 MB, free: 12.06 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.1096, allocations: 195.2 kB / 377.7 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.11, allocations: 445.5 kB / 378.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.1111, allocations: 1.417 MB / 379.5 MB, free: 10.01 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1112, allocations: 4 kB / 379.5 MB, free: 10 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1112, allocations: 0 / 379.5 MB, free: 10 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.1112, allocations: 0 / 379.5 MB, free: 10 MB / 282.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.002627/0.1138, allocations: 1.436 MB / 381 MB, free: 8.48 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1139, allocations: 16.03 kB / 381 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.114, allocations: 103.7 kB / 381.1 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008201/0.1149, allocations: 0.6214 MB / 381.7 MB, free: 7.703 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.1149, allocations: 57.67 kB / 381.8 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.1151, allocations: 75.84 kB / 381.9 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.1166, allocations: 0.7572 MB / 382.6 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1166, allocations: 0 / 382.6 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.528e-05/0.1167, allocations: 31.98 kB / 382.6 MB, free: 6.766 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.1167, allocations: 16 kB / 382.7 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.1183, allocations: 0.6259 MB / 383.3 MB, free: 6.121 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003383/0.1217, allocations: 2.383 MB / 385.7 MB, free: 3.668 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.1232, allocations: 0.5457 MB / 386.2 MB, free: 3.113 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006558/0.1239, allocations: 256.5 kB / 386.5 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.1239, allocations: 4 kB / 386.5 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.1249, allocations: 423.8 kB / 386.9 MB, free: 2.422 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 2.365e-06/0.1249, allocations: 0 / 386.9 MB, free: 2.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.002623/0.1276, allocations: 0.952 MB / 387.8 MB, free: 1.441 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.1277, allocations: 156.5 kB / 388 MB, free: 1.258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.1287, allocations: 0.8324 MB / 388.8 MB, free: 424 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.423e-05/0.1288, allocations: 41.7 kB / 388.9 MB, free: 376 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003841/0.1292, allocations: 420 kB / 389.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.1293, allocations: 142.1 kB / 389.4 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.1295, allocations: 118.2 kB / 389.5 MB, free: 15.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.1297, allocations: 390.7 kB / 389.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007984/0.1305, allocations: 297.1 kB / 390.2 MB, free: 15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008649/0.1314, allocations: 400.4 kB / 390.6 MB, free: 14.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.1329, allocations: 0.7221 MB / 391.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.1329, allocations: 0 / 391.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002015/0.1349, allocations: 1.01 MB / 392.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.1351, allocations: 178.2 kB / 392.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1351, allocations: 4 kB / 392.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/0.1353, allocations: 49.05 kB / 392.5 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005213/0.1359, allocations: 115.8 kB / 392.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.1374, allocations: 1.557 MB / 394.2 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006577/0.138, allocations: 103.3 kB / 394.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.938e-05/0.1381, allocations: 31.98 kB / 394.3 MB, free: 10.54 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 26 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 6 * 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.0003968/0.1385, allocations: 290.4 kB / 394.6 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.1386, allocations: 75.06 kB / 394.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.1402, allocations: 0.638 MB / 395.3 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1403, allocations: 8 kB / 395.3 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.1403, allocations: 0 / 395.3 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1403, allocations: 3.984 kB / 395.4 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.1427, allocations: 1.447 MB / 396.8 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1427, allocations: 0 / 396.8 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.1432, allocations: 83.86 kB / 396.9 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.1433, allocations: 48.84 kB / 396.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.456e-05/0.1434, allocations: 11.98 kB / 396.9 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.1446, allocations: 1.557 MB / 398.5 MB, free: 6.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.1446, allocations: 4.031 kB / 398.5 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009245/0.1538, allocations: 5.018 MB / 403.5 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.154, allocations: 168.1 kB / 403.7 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.363e-05/0.1541, allocations: 24.11 kB / 403.7 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.1547, allocations: 59.92 kB / 403.8 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/0.1549, allocations: 87.59 kB / 403.9 MB, free: 0.625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.971e-05/0.155, allocations: 15.98 kB / 403.9 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007011/0.1557, allocations: 0.5927 MB / 404.5 MB, free: 24 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1557, allocations: 0 / 404.5 MB, free: 24 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008521/0.1565, allocations: 239.6 kB / 404.7 MB, free: 15.79 MB / 314.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.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.0006846/0.1572, allocations: 318.3 kB / 405 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.1593, allocations: 1.084 MB / 406.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1593, allocations: 0 / 406.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008732/0.1602, allocations: 426.9 kB / 406.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008742/0.1611, allocations: 150.8 kB / 406.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.1645, allocations: 2.019 MB / 408.7 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008369/0.1654, allocations: 0.9727 MB / 409.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000448/0.1659, allocations: 80.83 kB / 409.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.1661, allocations: 51.42 kB / 409.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1661, allocations: 0 / 409.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of Templates: time 0.1916/0.3576, allocations: 10.94 MB / 420.7 MB, free: 55.37 MB / 314.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)