Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_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_EHPTexamples.EV.MBEV") translateModel(EHPTexamples.EV.MBEV,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.EV.MBEV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05307/0.05307, allocations: 8.037 MB / 23.31 MB, free: 68 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.0007085/0.0007089, allocations: 86.92 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.0009611/0.0009614, allocations: 190.8 kB / 28.57 MB, free: 0.7188 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.321/1.321, allocations: 223.3 MB / 254.4 MB, free: 3.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01209/0.01209, allocations: 3.117 MB / 310.4 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.0004339, allocations: 15.66 kB / 375.4 MB, free: 53.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09112, allocations: 52.98 MB / 428.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEV): time 0.005261/0.09643, allocations: 6.075 MB / 434.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004415/0.1009, allocations: 3.138 MB / 437.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000904/0.1018, allocations: 27.88 kB / 437.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007293/0.1025, allocations: 210.7 kB / 437.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1038, allocations: 349.8 kB / 438.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.1054, allocations: 0.8407 MB / 439.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.1069, allocations: 1.633 MB / 440.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000734/0.1077, allocations: 0.553 MB / 441.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006495/0.1083, allocations: 0.5329 MB / 441.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005349/0.1089, allocations: 0.5947 MB / 442.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.109, allocations: 68 kB / 442.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003638/0.1094, allocations: 211.8 kB / 442.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.1096, allocations: 278.8 kB / 442.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004024/0.11, allocations: 0.6349 MB / 443.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.1111, allocations: 1.81 MB / 445.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1111, allocations: 0 / 445.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1111, allocations: 0 / 445.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.1111, allocations: 0 / 445.4 MB, free: 2.895 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.002408/0.1135, allocations: 1.565 MB / 446.9 MB, free: 1.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.1136, allocations: 12.03 kB / 446.9 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002569/0.1138, allocations: 151.2 kB / 447.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008836/0.1147, allocations: 0.8244 MB / 447.9 MB, free: 236 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.548e-05/0.1148, allocations: 115.9 kB / 448 MB, free: 112 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.115, allocations: 111.9 kB / 448.1 MB, free: 0 / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002211/0.1172, allocations: 1.269 MB / 449.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.42e-05/0.1172, allocations: 4 kB / 449.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.1173, allocations: 48 kB / 449.5 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/0.1174, allocations: 28 kB / 449.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.1193, allocations: 0.914 MB / 450.4 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006324/0.1256, allocations: 4.048 MB / 454.4 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/0.1279, allocations: 1.136 MB / 455.6 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.1289, allocations: 0.4884 MB / 456.1 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.064e-05/0.129, allocations: 12.64 kB / 456.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.13, allocations: 0.5538 MB / 456.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 2.295e-06/0.1301, allocations: 0 / 456.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.007954/0.138, allocations: 3.82 MB / 460.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001948/0.1382, allocations: 0.4935 MB / 460.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.1393, allocations: 0.8407 MB / 461.8 MB, free: 1.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.562e-05/0.1394, allocations: 49.69 kB / 461.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003885/0.1398, allocations: 0.5152 MB / 462.4 MB, free: 1.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.1401, allocations: 323.4 kB / 462.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1402, allocations: 85.67 kB / 462.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1403, allocations: 345.9 kB / 463.1 MB, free: 412 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007533/0.1411, allocations: 365.8 kB / 463.4 MB, free: 48 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009815/0.1421, allocations: 0.6539 MB / 464.1 MB, free: 15.28 MB / 334.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.003945/0.146, allocations: 1.951 MB / 466 MB, free: 13.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.1461, allocations: 4 kB / 466.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002762/0.1488, allocations: 1.352 MB / 467.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001762/0.149, allocations: 291.4 kB / 467.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.149, allocations: 7.938 kB / 467.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005253/0.1496, allocations: 204.7 kB / 467.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007333/0.1503, allocations: 211.7 kB / 468.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009127/0.1512, allocations: 0.8032 MB / 468.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.1523, allocations: 144 kB / 469 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.222e-05/0.1523, allocations: 47.97 kB / 469.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.1524, allocations: 4 kB / 469.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001865/0.1542, allocations: 1.031 MB / 470.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.1543, allocations: 4 kB / 470.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.1547, allocations: 191.2 kB / 470.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006021/0.1553, allocations: 183.7 kB / 470.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007015/0.156, allocations: 0.7669 MB / 471.3 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008841/0.1569, allocations: 112 kB / 471.4 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.84e-05/0.157, allocations: 39.98 kB / 471.4 MB, free: 7.664 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,$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.0007084/0.1577, allocations: 453.9 kB / 471.9 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.1579, allocations: 106.7 kB / 472 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002525/0.1604, allocations: 1.195 MB / 473.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.1604, allocations: 8 kB / 473.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1604, allocations: 3.938 kB / 473.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.1605, allocations: 7.969 kB / 473.2 MB, free: 5.852 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.004528/0.165, allocations: 2.671 MB / 475.8 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.165, allocations: 0 / 475.8 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007192/0.1657, allocations: 171.9 kB / 476 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005171/0.1663, allocations: 204.6 kB / 476.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.641e-05/0.1663, allocations: 35.92 kB / 476.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007849/0.1671, allocations: 0.7697 MB / 477 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1672, allocations: 8.094 kB / 477 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003226/0.1704, allocations: 1.738 MB / 478.8 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004353/0.1708, allocations: 279.9 kB / 479 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.171, allocations: 28 kB / 479.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008547/0.1719, allocations: 123.9 kB / 479.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.172, allocations: 88.8 kB / 479.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.984e-05/0.1721, allocations: 40.03 kB / 479.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007565/0.1729, allocations: 0.5967 MB / 479.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1729, allocations: 0 / 479.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001258/0.1742, allocations: 471.9 kB / 480.4 MB, free: 14.47 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.001729/0.1759, allocations: 0.733 MB / 481.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003157/0.1791, allocations: 1.688 MB / 482.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.1791, allocations: 5.625 kB / 482.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.1802, allocations: 0.6178 MB / 483.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.1816, allocations: 213.5 kB / 483.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006709/0.1883, allocations: 3.453 MB / 487.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009928/0.1894, allocations: 1.09 MB / 488.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000967/0.1904, allocations: 143.2 kB / 488.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002327/0.1906, allocations: 79.41 kB / 488.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of SimCode: time 1.273e-06/0.1906, allocations: 0 / 488.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of Templates: time 0.03259/0.2232, allocations: 18.31 MB / 0.4948 GB, free: 4.438 MB / 366.1 MB make -j1 -f EHPTexamples_EHPTexamples.EV.MBEV.makefile (rm -f EHPTexamples_EHPTexamples.EV.MBEV.pipe ; mkfifo EHPTexamples_EHPTexamples.EV.MBEV.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.EV.MBEV.pipe >> ../files/EHPTexamples_EHPTexamples.EV.MBEV.sim & ./EHPTexamples_EHPTexamples.EV.MBEV -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.EV.MBEV.pipe 2>&1)