Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.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.MBEVdataLF,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEVdataLF") translateModel(EHPTexamples.EV.MBEVdataLF,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEVdataLF") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.09248/0.09248, allocations: 8.025 MB / 23 MB, free: 0.6133 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.0007445/0.0007444, allocations: 94.64 kB / 25.57 MB, free: 3.68 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.0009396/0.0009396, allocations: 187 kB / 28.23 MB, free: 1.023 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.415/1.415, allocations: 223.3 MB / 254 MB, free: 3.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01194/0.01194, allocations: 3.108 MB / 310 MB, free: 0.6719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004611/0.0004613, allocations: 13.38 kB / 374.8 MB, free: 54.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1354, allocations: 52.98 MB / 427.8 MB, free: 20.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdataLF): time 0.006436/0.1419, allocations: 5.955 MB / 433.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006907/0.1489, allocations: 3.281 MB / 437 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002336/0.1513, allocations: 27.88 kB / 437 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.1527, allocations: 274.3 kB / 437.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001889/0.1546, allocations: 353.7 kB / 437.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002545/0.1571, allocations: 0.7204 MB / 438.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002148/0.1593, allocations: 1.657 MB / 440 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008126/0.1601, allocations: 494.4 kB / 440.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008684/0.161, allocations: 0.5602 MB / 441.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000755/0.1617, allocations: 0.6104 MB / 441.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001327/0.1619, allocations: 72 kB / 441.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006922/0.1626, allocations: 215.8 kB / 442 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002734/0.1629, allocations: 258.9 kB / 442.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003168/0.1632, allocations: 277 kB / 442.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001304/0.1645, allocations: 1.543 MB / 444 MB, free: 4.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1645, allocations: 0 / 444 MB, free: 4.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1645, allocations: 0 / 444 MB, free: 4.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.1645, allocations: 0 / 444 MB, free: 4.137 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: 283 * Number of variables: 283 Notification: Performance of Generate backend data structure: time 0.002823/0.1674, allocations: 1.642 MB / 445.7 MB, free: 2.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.1674, allocations: 8.031 kB / 445.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003738/0.1678, allocations: 166.1 kB / 445.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.1689, allocations: 0.8168 MB / 446.7 MB, free: 1.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.169, allocations: 111.9 kB / 446.8 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.1692, allocations: 127.9 kB / 446.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/0.1714, allocations: 1.283 MB / 448.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.745e-05/0.1715, allocations: 3.953 kB / 448.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.1716, allocations: 51.94 kB / 448.2 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.1716, allocations: 28 kB / 448.3 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.1735, allocations: 0.9416 MB / 449.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00708/0.1806, allocations: 4.205 MB / 453.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.1831, allocations: 1.188 MB / 454.6 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.1842, allocations: 0.5108 MB / 455.1 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.827e-05/0.1843, allocations: 13 kB / 455.1 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.1854, allocations: 0.5726 MB / 455.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 3.026e-06/0.1854, allocations: 0 / 455.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=95): time 0.008461/0.1939, allocations: 3.919 MB / 459.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002431/0.1942, allocations: 491.6 kB / 460.1 MB, free: 3.375 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.1956, allocations: 0.8686 MB / 461 MB, free: 2.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.1957, allocations: 45.7 kB / 461 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005097/0.1962, allocations: 0.5465 MB / 461.5 MB, free: 1.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003473/0.1966, allocations: 327.3 kB / 461.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.403e-05/0.1966, allocations: 20 kB / 461.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1968, allocations: 341.9 kB / 462.2 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007677/0.1976, allocations: 381.8 kB / 462.6 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009883/0.1986, allocations: 0.6492 MB / 463.2 MB, free: 80 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008955/0.1995, allocations: 486.2 kB / 463.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1995, allocations: 0 / 463.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002614/0.2021, allocations: 1.309 MB / 465 MB, free: 14.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002409/0.2024, allocations: 285.7 kB / 465.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.2024, allocations: 4 kB / 465.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006372/0.203, allocations: 232.5 kB / 465.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008113/0.2038, allocations: 215.7 kB / 465.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009204/0.2048, allocations: 0.8121 MB / 466.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.2058, allocations: 144 kB / 466.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.091e-05/0.2059, allocations: 36 kB / 466.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.206, allocations: 4 kB / 466.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002559/0.2085, allocations: 1.031 MB / 467.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.2086, allocations: 4.5 kB / 467.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006631/0.2092, allocations: 196.7 kB / 468 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008715/0.2101, allocations: 187.7 kB / 468.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008542/0.211, allocations: 0.7629 MB / 468.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.2121, allocations: 120 kB / 469 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.763e-05/0.2122, allocations: 36 kB / 469.1 MB, free: 10.07 MB / 334.1 MB 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 (109): * Single equations (assignments): 106 * 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.0009975/0.2132, allocations: 450 kB / 469.5 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/0.2134, allocations: 110.9 kB / 469.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002732/0.2161, allocations: 1.204 MB / 470.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.2161, allocations: 12 kB / 470.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.2162, allocations: 0 / 470.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.2162, allocations: 7.922 kB / 470.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004962/0.2211, allocations: 2.696 MB / 473.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.832e-06/0.2212, allocations: 0 / 473.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008718/0.2221, allocations: 179.9 kB / 473.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005185/0.2226, allocations: 200.7 kB / 473.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.922e-05/0.2227, allocations: 23.98 kB / 473.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008218/0.2235, allocations: 0.7709 MB / 474.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.2235, allocations: 3.938 kB / 474.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/0.2269, allocations: 1.785 MB / 476.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008049/0.2277, allocations: 291.6 kB / 476.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.2279, allocations: 28 kB / 476.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008448/0.2287, allocations: 119.9 kB / 476.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/0.229, allocations: 92.83 kB / 477 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.374e-05/0.2291, allocations: 43.97 kB / 477.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001153/0.2303, allocations: 0.6123 MB / 477.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2303, allocations: 0 / 477.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001995/0.2323, allocations: 472 kB / 478.1 MB, free: 0.7852 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 (80): * Single equations (assignments): 75 * 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.00235/0.2347, allocations: 0.7512 MB / 478.9 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003539/0.2382, allocations: 1.705 MB / 480.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.2383, allocations: 0 / 480.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.2394, allocations: 0.6221 MB / 481.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.2408, allocations: 235.4 kB / 481.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005639/0.2464, allocations: 3.427 MB / 484.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007452/0.2472, allocations: 1.101 MB / 486 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008763/0.2481, allocations: 163.5 kB / 486.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002385/0.2483, allocations: 79.41 kB / 486.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of SimCode: time 1.242e-06/0.2483, allocations: 0 / 486.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of Templates: time 0.03297/0.2813, allocations: 18.08 MB / 0.4925 GB, free: 6.91 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.makefile (rm -f EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe ; mkfifo EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe >> ../files/EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.sim & ./EHPTexamples_main_EHPTexamples.EV.MBEVdataLF -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.EV.MBEVdataLF.pipe 2>&1)