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 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.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 main/package.mo): time 0.05494/0.05494, allocations: 8.61 MB / 23.56 MB, free: 4.613 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.0009796/0.0009796, allocations: 92.61 kB / 26.26 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.001382/0.001382, allocations: 183.8 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.316/1.316, allocations: 223.2 MB / 254.9 MB, free: 3.258 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01166/0.01166, allocations: 3.117 MB / 311.1 MB, free: 1.594 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.0004139/0.000414, allocations: 16 kB / 376 MB, free: 0.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2415, allocations: 53.12 MB / 429.1 MB, free: 19.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEV): time 0.005132/0.2467, allocations: 5.432 MB / 434.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004443/0.2511, allocations: 2.458 MB / 437 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009699/0.2522, allocations: 27.88 kB / 437 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006564/0.2528, allocations: 202.7 kB / 437.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001067/0.2539, allocations: 394.8 kB / 437.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.2556, allocations: 0.6835 MB / 438.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.257, allocations: 1.039 MB / 439.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005627/0.2575, allocations: 485.9 kB / 439.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005008/0.258, allocations: 0.5059 MB / 440.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004686/0.2585, allocations: 0.5561 MB / 440.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.2586, allocations: 64 kB / 440.9 MB, free: 8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004017/0.259, allocations: 175.9 kB / 441.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.2593, allocations: 259 kB / 441.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.2594, allocations: 269 kB / 441.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.2605, allocations: 1.469 MB / 443.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2605, allocations: 0 / 443.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2605, allocations: 4 kB / 443.1 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.626e-05/0.2605, allocations: 4 kB / 443.1 MB, free: 5.824 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.002877/0.2634, allocations: 1.577 MB / 444.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.2635, allocations: 8.031 kB / 444.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003911/0.2639, allocations: 158.2 kB / 444.8 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.2651, allocations: 0.7973 MB / 445.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.2652, allocations: 111.9 kB / 445.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.2653, allocations: 115.9 kB / 445.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/0.2672, allocations: 1.249 MB / 447.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.223e-05/0.2672, allocations: 4 kB / 447.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.2674, allocations: 55.98 kB / 447.2 MB, free: 1.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.2674, allocations: 28 kB / 447.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.2689, allocations: 0.9023 MB / 448.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006647/0.2756, allocations: 4.056 MB / 452.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002204/0.2778, allocations: 1.134 MB / 453.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.2779, allocations: 16.66 kB / 453.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001034/0.2789, allocations: 0.5423 MB / 453.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 2.675e-06/0.2789, allocations: 0 / 453.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.007481/0.2864, allocations: 3.887 MB / 457.7 MB, free: 6.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002215/0.2867, allocations: 0.4935 MB / 458.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.2878, allocations: 0.8446 MB / 459.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.323e-05/0.2879, allocations: 49.7 kB / 459.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.2883, allocations: 0.5191 MB / 459.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002406/0.2885, allocations: 327.3 kB / 460 MB, free: 4.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.104e-05/0.2886, allocations: 20 kB / 460 MB, free: 4.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2887, allocations: 345.9 kB / 460.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007479/0.2895, allocations: 365.8 kB / 460.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009196/0.2904, allocations: 0.6422 MB / 461.3 MB, free: 2.73 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.002557/0.293, allocations: 1.11 MB / 462.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.293, allocations: 0 / 462.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002395/0.2954, allocations: 1.277 MB / 463.7 MB, free: 288 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007471/0.2962, allocations: 1.891 MB / 465.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.2962, allocations: 4 kB / 465.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005601/0.2968, allocations: 212.7 kB / 465.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007256/0.2975, allocations: 215.7 kB / 466 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008391/0.2983, allocations: 0.8085 MB / 466.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009557/0.2993, allocations: 144 kB / 467 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.752e-05/0.2994, allocations: 43.98 kB / 467 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.2994, allocations: 4 kB / 467 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001706/0.3011, allocations: 0.9919 MB / 468 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3011, allocations: 4 kB / 468 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004096/0.3016, allocations: 188.9 kB / 468.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006071/0.3022, allocations: 183.7 kB / 468.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006533/0.3028, allocations: 0.7656 MB / 469.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007894/0.3036, allocations: 119.9 kB / 469.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.3037, allocations: 35.98 kB / 469.3 MB, free: 10.46 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.0005925/0.3043, allocations: 454.1 kB / 469.7 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.3045, allocations: 102.8 kB / 469.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.3069, allocations: 1.187 MB / 471 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3069, allocations: 8 kB / 471 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3069, allocations: 0 / 471 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.3069, allocations: 7.969 kB / 471 MB, free: 8.664 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.004403/0.3113, allocations: 2.686 MB / 473.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.3113, allocations: 8.109 kB / 473.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006965/0.312, allocations: 171.9 kB / 473.9 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004785/0.3125, allocations: 204.6 kB / 474.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-05/0.3126, allocations: 23.98 kB / 474.1 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007536/0.3134, allocations: 0.7729 MB / 474.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3134, allocations: 0 / 474.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003252/0.3166, allocations: 1.788 MB / 476.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005741/0.3172, allocations: 279.7 kB / 477 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001631/0.3174, allocations: 31.98 kB / 477 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007885/0.3182, allocations: 123.9 kB / 477.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.3184, allocations: 104.7 kB / 477.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.929e-05/0.3185, allocations: 31.98 kB / 477.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007991/0.3193, allocations: 0.6005 MB / 477.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3193, allocations: 0 / 477.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001325/0.3206, allocations: 468 kB / 478.3 MB, free: 1.195 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.001678/0.3223, allocations: 0.7454 MB / 479 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003137/0.3255, allocations: 1.67 MB / 480.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.3255, allocations: 0 / 480.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.3265, allocations: 0.6182 MB / 481.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.3276, allocations: 193.5 kB / 481.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005459/0.3331, allocations: 3.305 MB / 484.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007019/0.3338, allocations: 1.113 MB / 485.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007779/0.3346, allocations: 143.2 kB / 486.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.3348, allocations: 83.41 kB / 486.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3348, allocations: 3.938 kB / 486.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of Templates: time 0.02882/0.3637, allocations: 17.79 MB / 0.4921 GB, free: 7.828 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)