Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_EHPTexamples.EV.FirstEVpow.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.FirstEVpow,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.EV.FirstEVpow") translateModel(EHPTexamples.EV.FirstEVpow,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.EV.FirstEVpow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04901/0.04901, allocations: 8.033 MB / 23.67 MB, free: 188 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.001037/0.001037, allocations: 103.9 kB / 26.25 MB, free: 3.164 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.001345/0.001345, allocations: 195.2 kB / 28.95 MB, free: 492 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 254.4 MB, free: 4.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01286/0.01286, allocations: 3.127 MB / 309.4 MB, free: 2.273 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 95.84 kB / 426.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09545/0.09727, allocations: 51.97 MB / 478.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.004988/0.1023, allocations: 3.297 MB / 482.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003584/0.1059, allocations: 2.149 MB / 484.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003987/0.1063, allocations: 11.94 kB / 484.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004825/0.1068, allocations: 111.1 kB / 484.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006144/0.1075, allocations: 158.8 kB / 484.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.1085, allocations: 414.8 kB / 485 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008641/0.1094, allocations: 0.6582 MB / 485.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003479/0.1098, allocations: 181.8 kB / 485.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.1103, allocations: 283.1 kB / 486.1 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004662/0.1107, allocations: 262.9 kB / 486.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.1109, allocations: 52 kB / 486.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.1112, allocations: 171.8 kB / 486.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.1114, allocations: 131.6 kB / 486.7 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003049/0.1117, allocations: 258.7 kB / 487 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000967/0.1127, allocations: 0.6888 MB / 487.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1127, allocations: 0 / 487.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1127, allocations: 0 / 487.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.1127, allocations: 0 / 487.7 MB, free: 4.68 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001694/0.1144, allocations: 0.8577 MB / 488.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1145, allocations: 8.031 kB / 488.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.1147, allocations: 56.61 kB / 488.6 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006307/0.1153, allocations: 384.4 kB / 489 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.488e-05/0.1154, allocations: 67.27 kB / 489 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.993e-05/0.1155, allocations: 43.89 kB / 489.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009397/0.1164, allocations: 493.4 kB / 489.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.1165, allocations: 8 kB / 489.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.207e-05/0.1165, allocations: 20 kB / 489.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.1166, allocations: 8 kB / 489.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008405/0.1174, allocations: 351.8 kB / 489.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.1199, allocations: 1.437 MB / 491.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.1209, allocations: 405.5 kB / 491.8 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003581/0.1213, allocations: 149.3 kB / 491.9 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.1214, allocations: 4.281 kB / 491.9 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005301/0.1219, allocations: 246.5 kB / 492.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.224e-06/0.1219, allocations: 0 / 492.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.004482/0.1264, allocations: 1.826 MB / 494 MB, free: 14.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.983e-05/0.1265, allocations: 158.2 kB / 494.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00041/0.1269, allocations: 328.5 kB / 494.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.127, allocations: 37.7 kB / 494.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.1271, allocations: 224.7 kB / 494.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.1273, allocations: 146.8 kB / 494.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.1274, allocations: 94.19 kB / 494.9 MB, free: 13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1276, allocations: 346.8 kB / 495.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004053/0.128, allocations: 171 kB / 495.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00048/0.1285, allocations: 276.6 kB / 495.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007625/0.1292, allocations: 375.2 kB / 496.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1293, allocations: 3.938 kB / 496.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001376/0.1306, allocations: 0.5832 MB / 496.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1307, allocations: 8 kB / 496.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1307, allocations: 0 / 496.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004659/0.1312, allocations: 160.9 kB / 496.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003149/0.1315, allocations: 83.89 kB / 496.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006758/0.1322, allocations: 0.7196 MB / 497.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000405/0.1326, allocations: 47.94 kB / 497.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/0.1326, allocations: 20 kB / 497.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003793/0.133, allocations: 253.2 kB / 497.9 MB, free: 9.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003455/0.1334, allocations: 240.7 kB / 498.2 MB, free: 9.594 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000489/0.1339, allocations: 299.8 kB / 498.5 MB, free: 9.273 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.004e-06/0.1339, allocations: 0 / 498.5 MB, free: 9.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization_lambda0): time 0.001118/0.135, allocations: 0.5206 MB / 499 MB, free: 8.742 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.135, allocations: 7.938 kB / 499 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.1351, allocations: 4.219 kB / 499 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003922/0.1355, allocations: 172.7 kB / 499.2 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.1357, allocations: 67.91 kB / 499.2 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006485/0.1364, allocations: 0.7007 MB / 499.9 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.1367, allocations: 43.95 kB / 500 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.1368, allocations: 24.06 kB / 0.4883 GB, free: 7.699 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 14 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,dragF.mode,$PRE.dragF.mode,dragF.locked,dragF.startBackward,$PRE.dragF.startBackward,dragF.startForward,$PRE.dragF.startForward,dragF.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.137, allocations: 212.6 kB / 0.4885 GB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.115e-05/0.1371, allocations: 39.77 kB / 0.4885 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.1372, allocations: 56.5 kB / 0.4886 GB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1372, allocations: 7.984 kB / 0.4886 GB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.1372, allocations: 0 / 0.4886 GB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1372, allocations: 0 / 0.4886 GB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.1395, allocations: 1.2 MB / 0.4898 GB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-06/0.1395, allocations: 0 / 0.4898 GB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.1398, allocations: 71.89 kB / 0.4898 GB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003587/0.1401, allocations: 144.8 kB / 0.49 GB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.367e-05/0.1402, allocations: 11.98 kB / 0.49 GB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006154/0.1408, allocations: 0.6811 MB / 0.4906 GB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1408, allocations: 0 / 0.4906 GB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.1426, allocations: 0.8195 MB / 0.4914 GB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.1428, allocations: 160.8 kB / 0.4916 GB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.622e-05/0.1429, allocations: 12 kB / 0.4916 GB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003886/0.1433, allocations: 48 kB / 0.4917 GB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.1434, allocations: 63.84 kB / 0.4917 GB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-05/0.1434, allocations: 19.98 kB / 0.4917 GB, free: 4.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.1437, allocations: 235.1 kB / 0.492 GB, free: 3.785 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.1437, allocations: 0 / 0.492 GB, free: 3.785 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000699/0.1444, allocations: 191.8 kB / 0.4921 GB, free: 3.598 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (dragF.s,dragF.v) * Number of discrete variables: 7 ($whenCondition1,dragF.startForward,dragF.startBackward,dragF.locked,dragF.mode,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled) * Number of discrete states: 5 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,dragF.mode,dragF.startForward,dragF.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001093/0.1455, allocations: 489.1 kB / 0.4926 GB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.1472, allocations: 0.665 MB / 0.4933 GB, free: 2.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1472, allocations: 0 / 0.4933 GB, free: 2.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005974/0.1478, allocations: 235.8 kB / 0.4935 GB, free: 2.395 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000617/0.1485, allocations: 91.55 kB / 0.4936 GB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.1506, allocations: 1.012 MB / 0.4946 GB, free: 1.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.151, allocations: 0.8162 MB / 0.4954 GB, free: 420 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00024/0.1513, allocations: 59.23 kB / 0.4954 GB, free: 360 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.1514, allocations: 43.42 kB / 0.4955 GB, free: 316 kB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1514, allocations: 0 / 0.4955 GB, free: 316 kB / 366.1 MB Notification: Performance of Templates: time 0.01645/0.1679, allocations: 9.562 MB / 0.5048 GB, free: 6.801 MB / 382.1 MB make -j1 -f EHPTexamples_EHPTexamples.EV.FirstEVpow.makefile (rm -f EHPTexamples_EHPTexamples.EV.FirstEVpow.pipe ; mkfifo EHPTexamples_EHPTexamples.EV.FirstEVpow.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.EV.FirstEVpow.pipe >> ../files/EHPTexamples_EHPTexamples.EV.FirstEVpow.sim & ./EHPTexamples_EHPTexamples.EV.FirstEVpow -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.EV.FirstEVpow.pipe 2>&1)