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.08044/0.08044, allocations: 8.031 MB / 24.17 MB, free: 4.859 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.001359/0.001359, allocations: 109.3 kB / 26.74 MB, free: 3.062 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.002128/0.002129, allocations: 198.1 kB / 29.43 MB, free: 388 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.457/1.457, allocations: 222.9 MB / 254.9 MB, free: 4.797 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01443/0.01443, allocations: 3.121 MB / 309.9 MB, free: 2.406 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 95.83 kB / 374.3 MB, free: 1.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2927, allocations: 51.97 MB / 426.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdataLF): time 0.007764/0.3005, allocations: 6.829 MB / 433.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006484/0.307, allocations: 3.485 MB / 436.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001558/0.3086, allocations: 27.88 kB / 436.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.3097, allocations: 333.4 kB / 436.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001585/0.3114, allocations: 456.6 kB / 437.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002236/0.3136, allocations: 0.9833 MB / 438.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002036/0.3157, allocations: 1.899 MB / 440.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008624/0.3165, allocations: 0.6603 MB / 440.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009249/0.3175, allocations: 0.728 MB / 441.6 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008393/0.3183, allocations: 0.7662 MB / 442.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000208/0.3185, allocations: 192 kB / 442.6 MB, free: 5.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007763/0.3193, allocations: 347.8 kB / 442.9 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.3196, allocations: 394.7 kB / 443.3 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005747/0.3202, allocations: 0.7814 MB / 444.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.3222, allocations: 2.029 MB / 446.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.3222, allocations: 0 / 446.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.3222, allocations: 0 / 446.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.518e-05/0.3223, allocations: 4 kB / 446.1 MB, free: 1.477 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.003386/0.3257, allocations: 1.877 MB / 448 MB, free: 15.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3257, allocations: 8.031 kB / 448 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004833/0.3262, allocations: 167 kB / 448.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.3276, allocations: 0.8563 MB / 449 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.3277, allocations: 116 kB / 449.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/0.3279, allocations: 115.9 kB / 449.2 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002314/0.3302, allocations: 1.277 MB / 450.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.973e-05/0.3303, allocations: 11.91 kB / 450.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.3304, allocations: 48 kB / 450.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-05/0.3305, allocations: 28 kB / 450.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.3324, allocations: 0.9065 MB / 451.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007207/0.3396, allocations: 4.119 MB / 455.6 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00232/0.3419, allocations: 1.13 MB / 456.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.343, allocations: 497.2 kB / 457.2 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.732e-05/0.3431, allocations: 17 kB / 457.3 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001133/0.3442, allocations: 0.5453 MB / 457.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 5.31e-06/0.3443, allocations: 0 / 457.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=95): time 0.008409/0.3527, allocations: 3.767 MB / 461.6 MB, free: 1.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002368/0.3529, allocations: 475.7 kB / 462 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.3543, allocations: 0.8803 MB / 462.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.3544, allocations: 53.7 kB / 463 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005289/0.355, allocations: 0.5349 MB / 463.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002901/0.3553, allocations: 331.2 kB / 463.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003047/0.3556, allocations: 190.5 kB / 464 MB, free: 14.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3557, allocations: 345.9 kB / 464.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007669/0.3565, allocations: 376.7 kB / 464.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000987/0.3575, allocations: 0.6375 MB / 465.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.3592, allocations: 0.9809 MB / 466.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3592, allocations: 3.938 kB / 466.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002957/0.3622, allocations: 1.336 MB / 467.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.477e-05/0.3622, allocations: 63.41 kB / 467.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3623, allocations: 4 kB / 467.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006055/0.3629, allocations: 203.4 kB / 467.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008024/0.3637, allocations: 215.6 kB / 468.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009183/0.3646, allocations: 0.7904 MB / 468.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.3657, allocations: 108 kB / 469 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.399e-05/0.3658, allocations: 43.98 kB / 469.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001089/0.3669, allocations: 0.5293 MB / 469.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008064/0.3677, allocations: 0.575 MB / 470.2 MB, free: 8.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001252/0.369, allocations: 0.8796 MB / 471.1 MB, free: 7.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.547e-06/0.369, allocations: 0 / 471.1 MB, free: 7.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=126) (initialization_lambda0): time 0.002323/0.3714, allocations: 1.16 MB / 472.2 MB, free: 6.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.086e-05/0.3714, allocations: 67.39 kB / 472.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3714, allocations: 8.062 kB / 472.3 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.3719, allocations: 188.9 kB / 472.5 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006897/0.3726, allocations: 191.7 kB / 472.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007303/0.3734, allocations: 0.7656 MB / 473.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.3745, allocations: 108.2 kB / 473.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.588e-05/0.3746, allocations: 43.98 kB / 473.6 MB, free: 4.723 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,$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 (109): * Single equations (assignments): 106 * 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.0005163/0.3751, allocations: 318.5 kB / 473.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.3753, allocations: 110.7 kB / 474 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00245/0.3778, allocations: 1.145 MB / 475.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.3778, allocations: 11.94 kB / 475.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3778, allocations: 0 / 475.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.3778, allocations: 7.984 kB / 475.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004716/0.3826, allocations: 2.625 MB / 477.8 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.3826, allocations: 3.938 kB / 477.8 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007861/0.3834, allocations: 171.9 kB / 478 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000518/0.3839, allocations: 195.2 kB / 478.2 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.204e-05/0.384, allocations: 32 kB / 478.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008184/0.3849, allocations: 0.7553 MB / 478.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3849, allocations: 3.938 kB / 479 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/0.3882, allocations: 1.703 MB / 480.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006859/0.3889, allocations: 271.8 kB / 480.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001863/0.3891, allocations: 39.92 kB / 481 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008383/0.3899, allocations: 91.91 kB / 481 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.3902, allocations: 88.88 kB / 481.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.327e-05/0.3903, allocations: 39.97 kB / 481.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008804/0.3912, allocations: 0.6201 MB / 481.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3912, allocations: 0 / 481.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001492/0.3927, allocations: 472 kB / 482.3 MB, free: 11.84 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 (80): * Single equations (assignments): 75 * 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.001882/0.3946, allocations: 0.7437 MB / 483 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00334/0.3979, allocations: 1.677 MB / 484.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.398, allocations: 4 kB / 484.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.3991, allocations: 0.5992 MB / 485.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.4005, allocations: 265.5 kB / 485.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005348/0.4059, allocations: 2.842 MB / 488.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007422/0.4067, allocations: 1.109 MB / 489.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003861/0.4071, allocations: 91.34 kB / 489.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4071, allocations: 4 kB / 489.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of Templates: time 0.03362/0.4407, allocations: 21.44 MB / 0.499 GB, free: 15.28 MB / 382.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)