Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo", uses=false) Using package EHPTexamples with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo) Running command: translateModel(EHPTexamples.EV.MBEVdataLF,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEVdataLF") translateModel(EHPTexamples.EV.MBEVdataLF,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEVdataLF") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05154/0.05154, allocations: 8.034 MB / 23.3 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007748/0.0007751, allocations: 83.73 kB / 25.87 MB, free: 3.352 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009304/0.0009304, allocations: 178.8 kB / 28.56 MB, free: 0.7227 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 223.3 MB / 254.4 MB, free: 5.492 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01143/0.01143, allocations: 3.13 MB / 310.4 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004374, allocations: 15.16 kB / 375.4 MB, free: 54.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09251, allocations: 52.98 MB / 428.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdataLF): time 0.005178/0.09772, allocations: 6.311 MB / 434.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004371/0.1021, allocations: 3.396 MB / 438.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007833/0.1029, allocations: 27.88 kB / 438.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006456/0.1036, allocations: 282.3 kB / 438.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000863/0.1045, allocations: 377.7 kB / 438.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.106, allocations: 0.8924 MB / 439.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.1071, allocations: 1.758 MB / 441.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005814/0.1077, allocations: 0.573 MB / 442 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004564/0.1082, allocations: 0.5794 MB / 442.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005301/0.1087, allocations: 0.6452 MB / 443.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.1088, allocations: 71.94 kB / 443.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003966/0.1092, allocations: 227.9 kB / 443.5 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.1094, allocations: 274.7 kB / 443.8 MB, free: 4.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003763/0.1098, allocations: 0.6737 MB / 444.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.1109, allocations: 1.896 MB / 446.4 MB, free: 1.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1109, allocations: 0 / 446.4 MB, free: 1.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1109, allocations: 0 / 446.4 MB, free: 1.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.1109, allocations: 0 / 446.4 MB, free: 1.992 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 283 * Number of variables: 283 Notification: Performance of Generate backend data structure: time 0.002343/0.1132, allocations: 1.632 MB / 448 MB, free: 300 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1133, allocations: 8.031 kB / 448 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002761/0.1136, allocations: 163.1 kB / 448.2 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.1147, allocations: 0.8563 MB / 449 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.1148, allocations: 116 kB / 449.2 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.1149, allocations: 116 kB / 449.3 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/0.1171, allocations: 1.298 MB / 450.6 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/0.1172, allocations: 3.906 kB / 450.6 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.1173, allocations: 48 kB / 450.6 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.1173, allocations: 28 kB / 450.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.1192, allocations: 0.9494 MB / 451.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006265/0.1255, allocations: 4.209 MB / 455.8 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.1278, allocations: 1.185 MB / 457 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.1288, allocations: 0.5001 MB / 457.5 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.614e-05/0.1289, allocations: 20.94 kB / 457.5 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.1301, allocations: 0.5649 MB / 458.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.645e-06/0.1301, allocations: 3.938 kB / 458.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=95): time 0.007957/0.138, allocations: 3.949 MB / 462 MB, free: 1.762 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002284/0.1383, allocations: 483.7 kB / 462.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.1395, allocations: 0.8724 MB / 463.4 MB, free: 300 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.713e-05/0.1396, allocations: 57.69 kB / 463.4 MB, free: 236 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/0.14, allocations: 0.5388 MB / 464 MB, free: 15.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000253/0.1403, allocations: 335.2 kB / 464.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.1404, allocations: 81.67 kB / 464.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1405, allocations: 341.9 kB / 464.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000807/0.1413, allocations: 385.8 kB / 465.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009883/0.1423, allocations: 0.6609 MB / 465.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.144, allocations: 1.035 MB / 466.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.144, allocations: 0 / 466.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002921/0.147, allocations: 1.394 MB / 468.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.1471, allocations: 285.6 kB / 468.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1471, allocations: 8 kB / 468.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005479/0.1477, allocations: 208.7 kB / 468.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007729/0.1485, allocations: 215.7 kB / 468.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008723/0.1494, allocations: 0.8071 MB / 469.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009952/0.1504, allocations: 147.9 kB / 469.8 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.521e-05/0.1505, allocations: 43.98 kB / 469.9 MB, free: 9.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.1505, allocations: 4 kB / 469.9 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001887/0.1524, allocations: 1.058 MB / 470.9 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.1524, allocations: 4 kB / 470.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004419/0.1528, allocations: 191.3 kB / 471.1 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006387/0.1535, allocations: 191.7 kB / 471.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006812/0.1542, allocations: 0.7669 MB / 472.1 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00087/0.1551, allocations: 108 kB / 472.2 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.296e-05/0.1551, allocations: 36 kB / 472.2 MB, free: 7.043 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 16 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragF.free,dragF.mode,$PRE.dragF.mode,dragF.locked,dragF.startBackward,$PRE.dragF.startBackward,dragF.startForward,$PRE.dragF.startForward,eleDrive.limTau.state,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,eleDrive.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 2 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0005942/0.1557, allocations: 454 kB / 472.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.1559, allocations: 118.6 kB / 472.8 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002413/0.1583, allocations: 1.208 MB / 474 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.1584, allocations: 11.94 kB / 474 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.1584, allocations: 4 kB / 474 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.1584, allocations: 3.984 kB / 474 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004435/0.1628, allocations: 2.696 MB / 476.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.1628, allocations: 3.938 kB / 476.7 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007412/0.1636, allocations: 179.9 kB / 476.9 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000511/0.1641, allocations: 200.7 kB / 477.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.589e-05/0.1642, allocations: 27.97 kB / 477.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007753/0.165, allocations: 0.7593 MB / 477.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.165, allocations: 8 kB / 477.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003259/0.1683, allocations: 1.785 MB / 479.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004532/0.1687, allocations: 287.7 kB / 479.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.1689, allocations: 28 kB / 480 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008295/0.1697, allocations: 131.8 kB / 480.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.1699, allocations: 84.86 kB / 480.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.007e-05/0.17, allocations: 39.97 kB / 480.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007434/0.1707, allocations: 0.6123 MB / 480.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1707, allocations: 0 / 480.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001211/0.1719, allocations: 480 kB / 481.3 MB, free: 13.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (enBatDel,enDTdel,enP1del,enBattLoss,enBraking,eleDrive.constPDC.integrator1.y,batt1.cBattery.v,batt1.C1.v,batt1.cDummy.v,mass.s,mass.v) * Number of discrete variables: 8 ($whenCondition1,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,eleDrive.limTau.state,dragF.startForward,dragF.startBackward,dragF.locked,dragF.mode) * Number of discrete states: 6 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,eleDrive.limTau.state,dragF.mode,dragF.startForward,dragF.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001558/0.1735, allocations: 0.7411 MB / 482 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.1765, allocations: 1.72 MB / 483.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1765, allocations: 0 / 483.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.1776, allocations: 0.6262 MB / 484.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.1788, allocations: 228.3 kB / 484.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005067/0.1839, allocations: 3.579 MB / 488.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006229/0.1845, allocations: 1.109 MB / 489.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006591/0.1852, allocations: 163.5 kB / 489.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.1855, allocations: 79.42 kB / 489.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1855, allocations: 7.875 kB / 489.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of Templates: time 0.02804/0.2135, allocations: 18.63 MB / 0.4963 GB, free: 3.152 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.makefile (rm -f EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe ; mkfifo EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe >> ../files/EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.sim & ./EHPTexamples_main_EHPTexamples.EV.MBEVdataLF -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe 2>&1)