Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_latest_EHPTexamples.EV.MBEVdata.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.MBEVdata,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.EV.MBEVdata") translateModel(EHPTexamples.EV.MBEVdata,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.EV.MBEVdata") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.07941/0.07941, allocations: 8.036 MB / 23.31 MB, free: 76 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.0006644/0.0006645, allocations: 90.8 kB / 25.87 MB, free: 3.359 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.000879/0.0008792, allocations: 183.7 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.325/1.325, allocations: 223.3 MB / 254.4 MB, free: 3.754 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01279/0.01279, allocations: 3.122 MB / 310.4 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004307/0.0004307, allocations: 12.59 kB / 375.5 MB, free: 53.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08783, allocations: 52.97 MB / 428.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdata): time 0.005439/0.09331, allocations: 6.157 MB / 434.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004932/0.09828, allocations: 3.278 MB / 437.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.09946, allocations: 23.88 kB / 437.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008/0.1003, allocations: 246.5 kB / 438.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001084/0.1014, allocations: 349.8 kB / 438.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.1031, allocations: 0.8516 MB / 439.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.1044, allocations: 1.645 MB / 441 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006511/0.1051, allocations: 0.5609 MB / 441.5 MB, free: 6.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005396/0.1056, allocations: 0.5484 MB / 442.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000616/0.1062, allocations: 0.6025 MB / 442.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.1064, allocations: 68 kB / 442.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004462/0.1068, allocations: 211.8 kB / 443 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002343/0.1071, allocations: 278.8 kB / 443.2 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000429/0.1075, allocations: 0.6466 MB / 443.9 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.1086, allocations: 1.829 MB / 445.7 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.165e-06/0.1086, allocations: 0 / 445.7 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1086, allocations: 4 kB / 445.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.1086, allocations: 0 / 445.7 MB, free: 2.512 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: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.002496/0.1111, allocations: 1.589 MB / 447.3 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1112, allocations: 12.02 kB / 447.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002923/0.1115, allocations: 159.2 kB / 447.5 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.1126, allocations: 0.8362 MB / 448.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.1127, allocations: 107.9 kB / 448.4 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/0.1129, allocations: 119.9 kB / 448.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/0.1152, allocations: 1.265 MB / 449.8 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.1152, allocations: 4 kB / 449.8 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.1153, allocations: 48 kB / 449.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.1154, allocations: 28 kB / 449.9 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.1173, allocations: 0.914 MB / 450.8 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006488/0.1238, allocations: 4.064 MB / 454.8 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.126, allocations: 1.129 MB / 456 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.127, allocations: 496.2 kB / 456.5 MB, free: 7.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.548e-05/0.1271, allocations: 12.64 kB / 456.5 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.1282, allocations: 0.554 MB / 457 MB, free: 6.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 2.756e-06/0.1283, allocations: 0 / 457 MB, free: 6.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.007799/0.1361, allocations: 3.825 MB / 460.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002247/0.1363, allocations: 0.4974 MB / 461.3 MB, free: 2.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.1375, allocations: 0.8799 MB / 462.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-05/0.1375, allocations: 49.64 kB / 462.3 MB, free: 1.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.138, allocations: 0.5348 MB / 462.8 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002438/0.1382, allocations: 319.4 kB / 463.1 MB, free: 352 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.1383, allocations: 85.67 kB / 463.2 MB, free: 260 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1385, allocations: 341.9 kB / 463.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007765/0.1393, allocations: 369.8 kB / 463.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.1403, allocations: 0.6539 MB / 464.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.142, allocations: 1.016 MB / 465.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.1421, allocations: 4 kB / 465.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002446/0.1445, allocations: 1.258 MB / 466.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000207/0.1447, allocations: 287.5 kB / 467.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.1448, allocations: 11.94 kB / 467.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005536/0.1453, allocations: 204.6 kB / 467.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000771/0.1461, allocations: 215.7 kB / 467.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008979/0.147, allocations: 0.807 MB / 468.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.148, allocations: 147.9 kB / 468.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.947e-05/0.1481, allocations: 43.98 kB / 468.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.1481, allocations: 4 kB / 468.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00174/0.1499, allocations: 0.984 MB / 469.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1499, allocations: 4.125 kB / 469.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00044/0.1503, allocations: 191.6 kB / 469.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006636/0.151, allocations: 195.7 kB / 469.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007565/0.1518, allocations: 0.763 MB / 470.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008709/0.1527, allocations: 108 kB / 470.8 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/0.1527, allocations: 39.98 kB / 470.8 MB, free: 8.273 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: mass.s:VARIABLE(start = 0.0 unit = "m" fixed = true ) "Absolute position of center of component (s = flange_a.s + L/2 = flange_b.s - L/2)" type: Real 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 (105): * Single equations (assignments): 102 * 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.0007202/0.1535, allocations: 461.9 kB / 471.3 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.1536, allocations: 110.7 kB / 471.4 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.1563, allocations: 1.188 MB / 472.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.1563, allocations: 11.98 kB / 472.6 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.1563, allocations: 7.938 kB / 472.6 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.1563, allocations: 7.984 kB / 472.6 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004669/0.161, allocations: 2.632 MB / 475.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.161, allocations: 4 kB / 475.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000724/0.1617, allocations: 171.8 kB / 475.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005408/0.1623, allocations: 200.8 kB / 475.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.051e-05/0.1624, allocations: 35.91 kB / 475.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008223/0.1632, allocations: 0.7657 MB / 476.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.1632, allocations: 4.031 kB / 476.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003212/0.1664, allocations: 1.75 MB / 478.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004124/0.1669, allocations: 279.7 kB / 478.4 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.167, allocations: 28 kB / 478.4 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008856/0.1679, allocations: 127.9 kB / 478.6 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.1681, allocations: 84.81 kB / 478.6 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-05/0.1682, allocations: 39.97 kB / 478.7 MB, free: 180 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007942/0.169, allocations: 0.6162 MB / 479.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.169, allocations: 0 / 479.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001268/0.1703, allocations: 464 kB / 479.7 MB, free: 15.11 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 (76): * Single equations (assignments): 71 * 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.001706/0.172, allocations: 0.756 MB / 480.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.1751, allocations: 1.681 MB / 482.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.1751, allocations: 4 kB / 482.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.1762, allocations: 0.6219 MB / 482.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.1776, allocations: 207.1 kB / 483 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005069/0.1827, allocations: 3.51 MB / 486.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000683/0.1834, allocations: 1.097 MB / 487.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00062/0.184, allocations: 143.4 kB / 487.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.1842, allocations: 79.41 kB / 487.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of SimCode: time 2.074e-06/0.1842, allocations: 0 / 487.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of Templates: time 0.02868/0.2129, allocations: 18.46 MB / 0.4944 GB, free: 4.844 MB / 366.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.EV.MBEVdata.makefile (rm -f EHPTexamples_latest_EHPTexamples.EV.MBEVdata.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.EV.MBEVdata.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.EV.MBEVdata.pipe >> ../files/EHPTexamples_latest_EHPTexamples.EV.MBEVdata.sim & ./EHPTexamples_latest_EHPTexamples.EV.MBEVdata -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.EV.MBEVdata.pipe 2>&1)