Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_latest_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_latest_EHPTexamples.EV.FirstEVpow") translateModel(EHPTexamples.EV.FirstEVpow,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.EV.FirstEVpow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.06099/0.06099, allocations: 8.031 MB / 23 MB, free: 0.5664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007187/0.0007187, allocations: 95.12 kB / 25.56 MB, free: 3.793 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.0009242/0.0009242, allocations: 186.1 kB / 28.22 MB, free: 1.133 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.423/1.423, allocations: 223.3 MB / 254 MB, free: 3.977 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01183/0.01183, allocations: 3.122 MB / 310 MB, free: 0.6875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004836/0.0004837, allocations: 11.41 kB / 374.8 MB, free: 53.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1203, allocations: 52.99 MB / 427.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.003009/0.1234, allocations: 2.815 MB / 430.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002547/0.1259, allocations: 2.02 MB / 432.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.1262, allocations: 11.94 kB / 432.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003499/0.1265, allocations: 75.53 kB / 432.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003251/0.1269, allocations: 127.2 kB / 432.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006861/0.1276, allocations: 316.4 kB / 433.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.128, allocations: 0.5723 MB / 433.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.1283, allocations: 136.4 kB / 433.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.1285, allocations: 223.1 kB / 434.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.1288, allocations: 227 kB / 434.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.564e-05/0.1289, allocations: 20 kB / 434.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002058/0.1291, allocations: 127.9 kB / 434.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.247e-05/0.1292, allocations: 99.52 kB / 434.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.58e-05/0.1293, allocations: 105.5 kB / 434.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003863/0.1296, allocations: 0.4973 MB / 435.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1297, allocations: 0 / 435.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1297, allocations: 0 / 435.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.453e-06/0.1297, allocations: 0 / 435.1 MB, free: 12.99 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001065/0.1307, allocations: 0.7727 MB / 435.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.1308, allocations: 8.031 kB / 435.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.1309, allocations: 59.33 kB / 436 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.1313, allocations: 359.1 kB / 436.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.378e-05/0.1314, allocations: 62.7 kB / 436.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.1314, allocations: 39.98 kB / 436.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007285/0.1322, allocations: 0.4897 MB / 436.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.1322, allocations: 11.98 kB / 436.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.414e-05/0.1323, allocations: 19.95 kB / 436.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.1323, allocations: 8 kB / 436.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007005/0.133, allocations: 375.7 kB / 437.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.135, allocations: 1.464 MB / 438.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009049/0.1359, allocations: 444.1 kB / 439.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003038/0.1362, allocations: 169.3 kB / 439.4 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.256e-05/0.1363, allocations: 8.266 kB / 439.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005191/0.1368, allocations: 258.2 kB / 439.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.743e-06/0.1368, allocations: 0 / 439.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.003563/0.1404, allocations: 1.907 MB / 441.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.1405, allocations: 166 kB / 441.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003054/0.1408, allocations: 328.5 kB / 442 MB, free: 5.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.1409, allocations: 45.69 kB / 442.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.141, allocations: 216.4 kB / 442.3 MB, free: 5.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.937e-05/0.1411, allocations: 142 kB / 442.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.498e-05/0.1411, allocations: 11.98 kB / 442.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.1412, allocations: 346.8 kB / 442.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.1415, allocations: 173 kB / 442.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.1419, allocations: 280.6 kB / 443.2 MB, free: 4.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.1423, allocations: 164 kB / 443.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1423, allocations: 0 / 443.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001049/0.1433, allocations: 0.6066 MB / 444 MB, free: 3.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.797e-05/0.1434, allocations: 154.5 kB / 444.1 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1434, allocations: 3.984 kB / 444.1 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000365/0.1438, allocations: 160.8 kB / 444.3 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.1441, allocations: 83.89 kB / 444.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005148/0.1446, allocations: 0.724 MB / 445.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.1449, allocations: 76 kB / 445.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.976e-05/0.145, allocations: 19.98 kB / 445.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.791e-06/0.145, allocations: 4 kB / 445.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008106/0.1458, allocations: 459.9 kB / 445.6 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1458, allocations: 4 kB / 445.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003035/0.1461, allocations: 160.9 kB / 445.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.1463, allocations: 67.91 kB / 445.9 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004403/0.1468, allocations: 0.7098 MB / 446.6 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.1471, allocations: 60.02 kB / 446.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.1471, allocations: 12 kB / 446.6 MB, free: 0.9297 MB / 302.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,$whenCondition1,$PRE.driver.driveCyc.nextTimeEvent,$PRE.dragF.startForward,dragF.startForward,$PRE.dragF.startBackward,dragF.startBackward,dragF.locked,$PRE.dragF.mode,dragF.mode,driver.driveCyc.nextTimeEvent,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEventScaled,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 (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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001909/0.1473, allocations: 269.6 kB / 446.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/0.1474, allocations: 43.56 kB / 446.9 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.1475, allocations: 48.41 kB / 447 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1475, allocations: 4 kB / 447 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1475, allocations: 0 / 447 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1475, allocations: 3.984 kB / 447 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.1494, allocations: 1.208 MB / 448.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1494, allocations: 8.062 kB / 448.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.1497, allocations: 75.95 kB / 448.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003371/0.1501, allocations: 144.8 kB / 448.4 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.1501, allocations: 19.94 kB / 448.5 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005596/0.1507, allocations: 0.6811 MB / 449.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1507, allocations: 0 / 449.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.1523, allocations: 0.8567 MB / 450 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.1525, allocations: 152.6 kB / 450.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.429e-05/0.1526, allocations: 19.98 kB / 450.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000356/0.1529, allocations: 72 kB / 450.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.1531, allocations: 63.88 kB / 450.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.1531, allocations: 15.98 kB / 450.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002405/0.1534, allocations: 231 kB / 450.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1534, allocations: 0 / 450.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006427/0.154, allocations: 184 kB / 450.7 MB, free: 12.7 MB / 318.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 (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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009951/0.155, allocations: 488.5 kB / 451.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.1565, allocations: 0.6763 MB / 451.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1565, allocations: 4 kB / 451.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005624/0.1571, allocations: 252.4 kB / 452.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005621/0.1577, allocations: 90.62 kB / 452.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.1597, allocations: 1.23 MB / 453.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.1601, allocations: 0.824 MB / 454.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002514/0.1604, allocations: 63.23 kB / 454.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.1605, allocations: 35.42 kB / 454.4 MB, free: 9.164 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1605, allocations: 0 / 454.4 MB, free: 9.164 MB / 318.1 MB Notification: Performance of Templates: time 0.0144/0.1749, allocations: 8.702 MB / 463.1 MB, free: 0.5117 MB / 318.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.makefile (rm -f EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe >> ../files/EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.sim & ./EHPTexamples_latest_EHPTexamples.EV.FirstEVpow -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe 2>&1)