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 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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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 main/package.mo): time 0.05083/0.05083, allocations: 8.618 MB / 23.58 MB, free: 4.609 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008536/0.0008536, allocations: 88.02 kB / 26.27 MB, free: 2.871 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.0009727/0.0009733, allocations: 187.2 kB / 29.08 MB, free: 76 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.2 MB / 254.9 MB, free: 3.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01217/0.01217, allocations: 3.126 MB / 311.1 MB, free: 1.559 MB / 238.1 MB Warning: Requested package EHPTlib of version 2.1.0, but this package was already loaded with version . OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.000429/0.0004291, allocations: 15.98 kB / 376 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2559, allocations: 53.11 MB / 429.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdataLF): time 0.005066/0.261, allocations: 5.664 MB / 434.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004022/0.265, allocations: 2.687 MB / 437.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008352/0.2659, allocations: 23.88 kB / 437.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006833/0.2666, allocations: 262.5 kB / 437.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009279/0.2675, allocations: 430.6 kB / 438.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.2691, allocations: 0.7184 MB / 438.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.2703, allocations: 1.125 MB / 440 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005623/0.2708, allocations: 494.4 kB / 440.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004796/0.2713, allocations: 0.5525 MB / 441 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004788/0.2718, allocations: 0.5988 MB / 441.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.2719, allocations: 68 kB / 441.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004503/0.2724, allocations: 195.8 kB / 441.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002069/0.2726, allocations: 263 kB / 442.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.2728, allocations: 280.9 kB / 442.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.2738, allocations: 1.531 MB / 444 MB, free: 4.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2738, allocations: 0 / 444 MB, free: 4.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2739, allocations: 0 / 444 MB, free: 4.934 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.2739, allocations: 0 / 444 MB, free: 4.934 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.002619/0.2765, allocations: 1.643 MB / 445.6 MB, free: 3.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.2765, allocations: 8.031 kB / 445.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002953/0.2768, allocations: 166.1 kB / 445.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000998/0.2778, allocations: 0.8168 MB / 446.6 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.49e-05/0.2779, allocations: 119.9 kB / 446.7 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.2781, allocations: 115.9 kB / 446.8 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/0.2799, allocations: 1.277 MB / 448.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.212e-05/0.28, allocations: 4 kB / 448.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.2801, allocations: 51.95 kB / 448.2 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.2801, allocations: 31.94 kB / 448.2 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001794/0.2819, allocations: 0.9416 MB / 449.1 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006571/0.2885, allocations: 4.201 MB / 453.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002322/0.2909, allocations: 1.184 MB / 454.5 MB, free: 9.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.249e-05/0.2909, allocations: 12.98 kB / 454.5 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.2921, allocations: 0.5649 MB / 455.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.686e-06/0.2921, allocations: 0 / 455.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=95): time 0.008168/0.3003, allocations: 4.009 MB / 459.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002221/0.3005, allocations: 483.6 kB / 459.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.3017, allocations: 0.8686 MB / 460.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.3018, allocations: 49.7 kB / 460.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.3023, allocations: 0.5504 MB / 461 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/0.3026, allocations: 331.3 kB / 461.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.534e-05/0.3027, allocations: 24 kB / 461.4 MB, free: 2.762 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3028, allocations: 341.9 kB / 461.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007978/0.3036, allocations: 381.8 kB / 462.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.3047, allocations: 0.6492 MB / 462.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008918/0.3056, allocations: 478.3 kB / 463.2 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3056, allocations: 0 / 463.2 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002633/0.3083, allocations: 1.309 MB / 464.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007429/0.309, allocations: 1.887 MB / 466.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.309, allocations: 11.98 kB / 466.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006247/0.3097, allocations: 220.7 kB / 466.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008176/0.3105, allocations: 223.6 kB / 466.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009349/0.3114, allocations: 0.8044 MB / 467.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.3125, allocations: 140 kB / 467.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.808e-05/0.3126, allocations: 43.98 kB / 467.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.3126, allocations: 4 kB / 467.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001894/0.3145, allocations: 1.039 MB / 468.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.3145, allocations: 4 kB / 468.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004297/0.315, allocations: 193 kB / 469.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006651/0.3157, allocations: 187.7 kB / 469.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006599/0.3163, allocations: 0.7653 MB / 470 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009287/0.3173, allocations: 108 kB / 470.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.018e-05/0.3173, allocations: 43.98 kB / 470.2 MB, free: 9.605 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.0006685/0.318, allocations: 454 kB / 470.6 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.3182, allocations: 106.8 kB / 470.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/0.3206, allocations: 1.208 MB / 471.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3206, allocations: 8 kB / 471.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3206, allocations: 0 / 471.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.3206, allocations: 11.97 kB / 471.9 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004635/0.3253, allocations: 2.696 MB / 474.6 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3253, allocations: 3.938 kB / 474.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007978/0.3261, allocations: 183.9 kB / 474.8 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000536/0.3266, allocations: 196.7 kB / 475 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.159e-05/0.3267, allocations: 31.98 kB / 475 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007867/0.3275, allocations: 0.7631 MB / 475.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3275, allocations: 0 / 475.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003409/0.331, allocations: 1.831 MB / 477.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000518/0.3315, allocations: 283.6 kB / 477.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002101/0.3317, allocations: 28 kB / 477.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000902/0.3326, allocations: 127.9 kB / 478.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.3328, allocations: 100.8 kB / 478.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.646e-05/0.3329, allocations: 35.98 kB / 478.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008554/0.3338, allocations: 0.6044 MB / 478.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3338, allocations: 0 / 478.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001596/0.3354, allocations: 480 kB / 479.3 MB, free: 252 kB / 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.001934/0.3373, allocations: 0.7455 MB / 480 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.3409, allocations: 1.713 MB / 481.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.3409, allocations: 4.125 kB / 481.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.3421, allocations: 0.6217 MB / 482.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.3434, allocations: 212.4 kB / 482.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005948/0.3494, allocations: 3.419 MB / 486 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.3504, allocations: 1.125 MB / 487.1 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008413/0.3513, allocations: 163.5 kB / 487.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/0.3516, allocations: 79.41 kB / 487.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3516, allocations: 4 kB / 487.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of Templates: time 0.02986/0.3814, allocations: 18.03 MB / 0.4935 GB, free: 6.422 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)