Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.EV.MBEV.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.MBEV,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEV") translateModel(EHPTexamples.EV.MBEV,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.07926/0.07926, allocations: 8.027 MB / 23.01 MB, free: 0.6094 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.0007547/0.0007548, allocations: 91.02 kB / 25.56 MB, free: 3.688 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.0008439/0.000844, allocations: 183.9 kB / 28.23 MB, free: 1.027 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.433/1.433, allocations: 223.3 MB / 254 MB, free: 3.973 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01803/0.01803, allocations: 3.121 MB / 310 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004589/0.0004593, allocations: 11.09 kB / 374.8 MB, free: 53.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.133, allocations: 52.98 MB / 427.8 MB, free: 20.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEV): time 0.006681/0.1397, allocations: 5.726 MB / 433.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007056/0.1468, allocations: 3.038 MB / 436.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.1486, allocations: 19.94 kB / 436.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009193/0.1495, allocations: 218.6 kB / 436.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001206/0.1507, allocations: 325.8 kB / 437.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.1527, allocations: 0.6913 MB / 437.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001534/0.1542, allocations: 1.54 MB / 439.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006671/0.1549, allocations: 470 kB / 439.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006085/0.1555, allocations: 0.5213 MB / 440.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006058/0.1561, allocations: 0.5755 MB / 440.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1562, allocations: 64 kB / 440.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003968/0.1566, allocations: 191.9 kB / 441.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002327/0.1569, allocations: 266.9 kB / 441.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.1571, allocations: 265 kB / 441.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.1582, allocations: 1.465 MB / 443.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.1582, allocations: 0 / 443.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1582, allocations: 0 / 443.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.162e-05/0.1583, allocations: 0 / 443.1 MB, free: 4.926 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.002582/0.1608, allocations: 1.577 MB / 444.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.1609, allocations: 8.031 kB / 444.7 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003223/0.1612, allocations: 158.2 kB / 444.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.1623, allocations: 0.7896 MB / 445.6 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.442e-05/0.1624, allocations: 111.9 kB / 445.7 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.1626, allocations: 115.9 kB / 445.9 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.1645, allocations: 1.257 MB / 447.1 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/0.1645, allocations: 11.89 kB / 447.1 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.795e-05/0.1646, allocations: 48 kB / 447.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.1646, allocations: 28 kB / 447.2 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.1663, allocations: 0.9023 MB / 448.1 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006866/0.1732, allocations: 4.06 MB / 452.2 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.1754, allocations: 1.125 MB / 453.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009694/0.1764, allocations: 496.1 kB / 453.8 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.951e-05/0.1765, allocations: 20.64 kB / 453.8 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.1776, allocations: 0.5384 MB / 454.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 2.966e-06/0.1777, allocations: 0 / 454.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.007529/0.1852, allocations: 3.81 MB / 458.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002361/0.1855, allocations: 0.5013 MB / 458.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.1866, allocations: 0.8406 MB / 459.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-05/0.1867, allocations: 45.7 kB / 459.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004182/0.1871, allocations: 0.5154 MB / 460 MB, free: 3.246 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002601/0.1874, allocations: 319.4 kB / 460.4 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-05/0.1875, allocations: 20 kB / 460.4 MB, free: 2.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1876, allocations: 341.9 kB / 460.7 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007194/0.1884, allocations: 381.8 kB / 461.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009431/0.1893, allocations: 0.6306 MB / 461.7 MB, free: 1.457 MB / 318.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: mass.v = $START.mass.v ($START.dragF.v = $START.mass.v) Notification: Performance of analyzeInitialSystem (initialization): time 0.002596/0.1919, allocations: 1.124 MB / 462.8 MB, free: 300 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1919, allocations: 0 / 462.8 MB, free: 300 kB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002513/0.1944, allocations: 1.274 MB / 464.1 MB, free: 15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002419/0.1947, allocations: 285.7 kB / 464.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1947, allocations: 4 kB / 464.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005659/0.1953, allocations: 227.1 kB / 464.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006998/0.196, allocations: 203.8 kB / 464.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009201/0.1969, allocations: 0.8175 MB / 465.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009154/0.1979, allocations: 144 kB / 465.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-05/0.198, allocations: 36 kB / 465.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.198, allocations: 4 kB / 465.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001795/0.1998, allocations: 0.996 MB / 466.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.1998, allocations: 11.95 kB / 466.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004493/0.2003, allocations: 187.2 kB / 467 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/0.2009, allocations: 179.7 kB / 467.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007286/0.2016, allocations: 0.7631 MB / 467.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008585/0.2025, allocations: 111.9 kB / 468.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-05/0.2026, allocations: 40 kB / 468.1 MB, free: 10.87 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: mass.v = $START.mass.v. 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,$whenCondition1,$PRE.driver.driveCyc.nextTimeEvent,dragF.free,driver.driveCyc.nextTimeEvent,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEventScaled,eleDrive.limTau.state,$PRE.dragF.startForward,dragF.startForward,$PRE.dragF.startBackward,dragF.startBackward,dragF.locked,$PRE.dragF.mode,dragF.mode,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 (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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0007684/0.2033, allocations: 457.9 kB / 468.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.2035, allocations: 98.88 kB / 468.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002411/0.2059, allocations: 1.187 MB / 469.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.206, allocations: 11.94 kB / 469.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.206, allocations: 0 / 469.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.206, allocations: 8.062 kB / 469.8 MB, free: 9.062 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004523/0.2105, allocations: 2.686 MB / 472.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2105, allocations: 0 / 472.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007204/0.2113, allocations: 175.9 kB / 472.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004988/0.2118, allocations: 200.6 kB / 472.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.58e-05/0.2119, allocations: 27.98 kB / 472.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007684/0.2126, allocations: 0.773 MB / 473.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2126, allocations: 0 / 473.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003047/0.2157, allocations: 1.731 MB / 475.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005143/0.2162, allocations: 279.7 kB / 475.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.2164, allocations: 28 kB / 475.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007381/0.2171, allocations: 123.9 kB / 475.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.2173, allocations: 100.8 kB / 475.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.148e-05/0.2174, allocations: 35.97 kB / 476 MB, free: 2.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008633/0.2183, allocations: 0.5888 MB / 476.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2183, allocations: 4 kB / 476.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001429/0.2197, allocations: 468 kB / 477 MB, free: 1.691 MB / 334.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 (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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001748/0.2215, allocations: 0.7361 MB / 477.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003155/0.2247, allocations: 1.676 MB / 479.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.2247, allocations: 0 / 479.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.2257, allocations: 0.619 MB / 480.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.227, allocations: 214.3 kB / 480.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005337/0.2323, allocations: 3.301 MB / 483.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007177/0.2331, allocations: 1.09 MB / 484.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007999/0.2339, allocations: 147.2 kB / 484.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.2341, allocations: 83.34 kB / 484.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.2341, allocations: 0 / 484.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of Templates: time 0.0304/0.2645, allocations: 17.77 MB / 0.4909 GB, free: 8.359 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.EV.MBEV.makefile (rm -f EHPTexamples_main_EHPTexamples.EV.MBEV.pipe ; mkfifo EHPTexamples_main_EHPTexamples.EV.MBEV.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.EV.MBEV.pipe >> ../files/EHPTexamples_main_EHPTexamples.EV.MBEV.sim & ./EHPTexamples_main_EHPTexamples.EV.MBEV -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.EV.MBEV.pipe 2>&1)