Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.EV.MBEVdata.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.MBEVdata,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEVdata") translateModel(EHPTexamples.EV.MBEVdata,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.MBEVdata") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05826/0.05826, allocations: 8.027 MB / 23.01 MB, free: 0.5469 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.0007839/0.0007841, allocations: 94.38 kB / 25.57 MB, free: 3.688 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.001073/0.001073, allocations: 187.6 kB / 28.23 MB, free: 1.031 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.429/1.429, allocations: 223.3 MB / 254 MB, free: 5.746 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01205/0.01205, allocations: 3.11 MB / 310 MB, free: 0.8789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005121/0.0005121, allocations: 12 kB / 374.8 MB, free: 52 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3677, allocations: 52.97 MB / 427.8 MB, free: 20.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdata): time 0.006727/0.3745, allocations: 5.818 MB / 433.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006434/0.381, allocations: 3.148 MB / 436.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.3824, allocations: 27.88 kB / 436.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008073/0.3832, allocations: 238.5 kB / 437 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001072/0.3843, allocations: 341.7 kB / 437.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.3862, allocations: 0.6889 MB / 438 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.3876, allocations: 1.575 MB / 439.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006348/0.3882, allocations: 478 kB / 440.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005294/0.3887, allocations: 0.5253 MB / 440.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006495/0.3894, allocations: 0.5832 MB / 441.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.3895, allocations: 68 kB / 441.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004645/0.39, allocations: 183.9 kB / 441.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.3903, allocations: 274.8 kB / 441.7 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002107/0.3905, allocations: 265 kB / 441.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.3915, allocations: 1.481 MB / 443.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3916, allocations: 0 / 443.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3916, allocations: 0 / 443.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.3916, allocations: 0 / 443.4 MB, free: 4.809 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.002621/0.3942, allocations: 1.604 MB / 445 MB, free: 3.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.3943, allocations: 16.03 kB / 445 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002997/0.3946, allocations: 158.1 kB / 445.2 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.3956, allocations: 0.8051 MB / 446 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.3958, allocations: 111.9 kB / 446.1 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.3959, allocations: 111.9 kB / 446.2 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.3979, allocations: 1.257 MB / 447.5 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/0.398, allocations: 11.92 kB / 447.5 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.3981, allocations: 44 kB / 447.5 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.3981, allocations: 31.94 kB / 447.6 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.3999, allocations: 0.9063 MB / 448.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006366/0.4063, allocations: 4.06 MB / 452.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002153/0.4085, allocations: 1.129 MB / 453.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009469/0.4095, allocations: 499.2 kB / 454.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.848e-05/0.4095, allocations: 12.64 kB / 454.1 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.4107, allocations: 0.5501 MB / 454.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 3.296e-06/0.4107, allocations: 0 / 454.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.007885/0.4186, allocations: 3.81 MB / 458.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002868/0.4189, allocations: 0.4935 MB / 459 MB, free: 4.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.4202, allocations: 0.8759 MB / 459.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.544e-05/0.4203, allocations: 49.7 kB / 459.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004688/0.4208, allocations: 0.527 MB / 460.5 MB, free: 3.023 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000268/0.4211, allocations: 319.4 kB / 460.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.081e-05/0.4211, allocations: 20 kB / 460.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4213, allocations: 345.9 kB / 461.1 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000718/0.422, allocations: 365.8 kB / 461.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009888/0.423, allocations: 0.6383 MB / 462.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008127/0.4238, allocations: 458.3 kB / 462.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.4238, allocations: 4 kB / 462.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002844/0.4267, allocations: 1.34 MB / 463.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002199/0.4269, allocations: 289.6 kB / 464.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.427, allocations: 4 kB / 464.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006137/0.4276, allocations: 228.7 kB / 464.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007586/0.4283, allocations: 215.7 kB / 464.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009332/0.4293, allocations: 0.8042 MB / 465.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.4303, allocations: 144 kB / 465.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.659e-05/0.4304, allocations: 43.98 kB / 465.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.4304, allocations: 4 kB / 465.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001873/0.4323, allocations: 1.023 MB / 466.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4323, allocations: 7.984 kB / 466.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004546/0.4328, allocations: 188.8 kB / 466.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006446/0.4335, allocations: 183.7 kB / 467 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007884/0.4343, allocations: 0.7708 MB / 467.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000852/0.4351, allocations: 112 kB / 467.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.7e-05/0.4352, allocations: 36 kB / 467.9 MB, free: 11.23 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: mass.s:VARIABLE(start = 0.0 unit = "m" fixed = true ) "Absolute position of center of component (s = flange_a.s + L/2 = flange_b.s - L/2)" type: Real 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.0008701/0.4361, allocations: 472.9 kB / 468.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.4363, allocations: 102.9 kB / 468.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002508/0.4388, allocations: 1.195 MB / 469.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.4388, allocations: 11.94 kB / 469.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.4388, allocations: 3.953 kB / 469.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4388, allocations: 3.984 kB / 469.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004969/0.4438, allocations: 2.632 MB / 472.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.4438, allocations: 0 / 472.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007428/0.4446, allocations: 183.9 kB / 472.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000548/0.4452, allocations: 199.2 kB / 472.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.246e-05/0.4452, allocations: 27.98 kB / 472.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009404/0.4462, allocations: 0.767 MB / 473.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.4462, allocations: 8.016 kB / 473.5 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.4499, allocations: 1.727 MB / 475.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008308/0.4507, allocations: 295.7 kB / 475.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.4509, allocations: 24 kB / 475.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000822/0.4517, allocations: 124 kB / 475.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/0.452, allocations: 96.83 kB / 475.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.4521, allocations: 39.98 kB / 475.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.4531, allocations: 0.6122 MB / 476.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4531, allocations: 0 / 476.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001695/0.4548, allocations: 468 kB / 476.9 MB, free: 2.066 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.002012/0.4569, allocations: 0.7384 MB / 477.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003413/0.4603, allocations: 1.67 MB / 479.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.4603, allocations: 0 / 479.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.4615, allocations: 0.6182 MB / 479.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.4633, allocations: 222.1 kB / 480.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006078/0.4694, allocations: 3.362 MB / 483.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007658/0.4702, allocations: 1.097 MB / 484.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008403/0.471, allocations: 147.3 kB / 484.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.4713, allocations: 79.42 kB / 484.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4713, allocations: 4 kB / 484.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Templates: time 0.03211/0.5034, allocations: 17.9 MB / 0.4909 GB, free: 8.527 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.EV.MBEVdata.makefile (rm -f EHPTexamples_main_EHPTexamples.EV.MBEVdata.pipe ; mkfifo EHPTexamples_main_EHPTexamples.EV.MBEVdata.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.EV.MBEVdata.pipe >> ../files/EHPTexamples_main_EHPTexamples.EV.MBEVdata.sim & ./EHPTexamples_main_EHPTexamples.EV.MBEVdata -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.EV.MBEVdata.pipe 2>&1)