Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_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_EHPTexamples.EV.MBEVdata") translateModel(EHPTexamples.EV.MBEVdata,tolerance=0.0001,outputFormat="empty",numberOfIntervals=28000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.EV.MBEVdata") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05817/0.05817, allocations: 8.035 MB / 23.3 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006432/0.0006432, allocations: 94.66 kB / 25.88 MB, free: 3.355 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.001031/0.001031, allocations: 183.5 kB / 28.56 MB, free: 0.7227 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.35/1.35, allocations: 223.3 MB / 254.4 MB, free: 3.766 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01181/0.01181, allocations: 3.118 MB / 310.4 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004459/0.0004461, allocations: 11.62 kB / 375.5 MB, free: 53.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.08264, allocations: 52.97 MB / 428.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdata): time 0.005156/0.08783, allocations: 6.161 MB / 434.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004099/0.09196, allocations: 3.271 MB / 437.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006352/0.09262, allocations: 27.88 kB / 437.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007053/0.09333, allocations: 242.5 kB / 438.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008035/0.09415, allocations: 349.8 kB / 438.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.09564, allocations: 0.8633 MB / 439.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00111/0.09675, allocations: 1.641 MB / 441 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006102/0.09737, allocations: 0.5493 MB / 441.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004767/0.09786, allocations: 0.5484 MB / 442.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005343/0.0984, allocations: 0.6024 MB / 442.7 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.09852, allocations: 68 kB / 442.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003526/0.09888, allocations: 207.8 kB / 442.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.09909, allocations: 278.8 kB / 443.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003812/0.09948, allocations: 0.6505 MB / 443.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.1006, allocations: 1.833 MB / 445.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1006, allocations: 4 kB / 445.7 MB, free: 2.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1006, allocations: 0 / 445.7 MB, free: 2.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.1006, allocations: 0 / 445.7 MB, free: 2.547 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.002534/0.1032, allocations: 1.593 MB / 447.3 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1032, allocations: 8.031 kB / 447.3 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/0.1035, allocations: 155.2 kB / 447.5 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009691/0.1045, allocations: 0.8362 MB / 448.3 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.1046, allocations: 111.9 kB / 448.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.1048, allocations: 111.9 kB / 448.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/0.1071, allocations: 1.273 MB / 449.8 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/0.1071, allocations: 11.98 kB / 449.8 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.1072, allocations: 44 kB / 449.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.1073, allocations: 24 kB / 449.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.1092, allocations: 0.9179 MB / 450.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007106/0.1163, allocations: 4.052 MB / 454.8 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.1186, allocations: 1.14 MB / 456 MB, free: 7.875 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.1196, allocations: 492.2 kB / 456.4 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.819e-05/0.1197, allocations: 16.64 kB / 456.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001061/0.1207, allocations: 0.5501 MB / 457 MB, free: 6.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 2.265e-06/0.1208, allocations: 0 / 457 MB, free: 6.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.007664/0.1284, allocations: 3.833 MB / 460.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000211/0.1287, allocations: 0.4935 MB / 461.3 MB, free: 2.184 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.1298, allocations: 0.8799 MB / 462.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.527e-05/0.1299, allocations: 45.7 kB / 462.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003968/0.1303, allocations: 0.5386 MB / 462.8 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.1306, allocations: 323.4 kB / 463.1 MB, free: 380 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.1307, allocations: 81.67 kB / 463.2 MB, free: 292 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1308, allocations: 341.9 kB / 463.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007744/0.1316, allocations: 365.8 kB / 463.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009985/0.1326, allocations: 0.6539 MB / 464.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.1344, allocations: 1.024 MB / 465.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1344, allocations: 0 / 465.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002504/0.1369, allocations: 1.258 MB / 466.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001682/0.1371, allocations: 291.5 kB / 467.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.1371, allocations: 4.062 kB / 467.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000575/0.1377, allocations: 212.6 kB / 467.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007607/0.1384, allocations: 215.7 kB / 467.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008973/0.1394, allocations: 0.807 MB / 468.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009883/0.1404, allocations: 147.9 kB / 468.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.657e-05/0.1404, allocations: 39.98 kB / 468.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.096e-06/0.1405, allocations: 4 kB / 468.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001766/0.1422, allocations: 0.9839 MB / 469.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1423, allocations: 4 kB / 469.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004447/0.1427, allocations: 195.7 kB / 469.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.1434, allocations: 187.7 kB / 469.9 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007111/0.1441, allocations: 0.763 MB / 470.7 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009153/0.145, allocations: 108 kB / 470.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-05/0.1451, allocations: 44 kB / 470.8 MB, free: 8.305 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,$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 (105): * Single equations (assignments): 102 * 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.0007768/0.1459, allocations: 457.9 kB / 471.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.146, allocations: 106.7 kB / 471.4 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.1486, allocations: 1.196 MB / 472.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.1486, allocations: 12 kB / 472.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1486, allocations: 3.938 kB / 472.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.1487, allocations: 3.984 kB / 472.6 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004584/0.1532, allocations: 2.64 MB / 475.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.1533, allocations: 0 / 475.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007225/0.154, allocations: 167.8 kB / 475.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005151/0.1545, allocations: 216.7 kB / 475.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/0.1546, allocations: 31.98 kB / 475.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007893/0.1554, allocations: 0.7737 MB / 476.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1554, allocations: 0 / 476.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003218/0.1586, allocations: 1.754 MB / 478.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004291/0.1591, allocations: 275.7 kB / 478.4 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.1593, allocations: 28 kB / 478.4 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008327/0.1601, allocations: 123.9 kB / 478.6 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.1603, allocations: 88.8 kB / 478.6 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.1604, allocations: 35.98 kB / 478.7 MB, free: 208 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009399/0.1613, allocations: 0.6201 MB / 479.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1613, allocations: 0 / 479.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001427/0.1628, allocations: 464 kB / 479.8 MB, free: 15.13 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 (76): * Single equations (assignments): 71 * 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.00182/0.1646, allocations: 0.7423 MB / 480.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002977/0.1676, allocations: 1.689 MB / 482.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1676, allocations: 0 / 482.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.1687, allocations: 0.6186 MB / 482.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.1699, allocations: 215 kB / 483 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/0.1749, allocations: 3.501 MB / 486.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006082/0.1756, allocations: 1.101 MB / 487.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006009/0.1762, allocations: 147.3 kB / 487.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.1764, allocations: 83.41 kB / 487.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1764, allocations: 0 / 487.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of Templates: time 0.02757/0.204, allocations: 18.45 MB / 0.4944 GB, free: 4.879 MB / 366.1 MB make -j1 -f EHPTexamples_EHPTexamples.EV.MBEVdata.makefile (rm -f EHPTexamples_EHPTexamples.EV.MBEVdata.pipe ; mkfifo EHPTexamples_EHPTexamples.EV.MBEVdata.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.EV.MBEVdata.pipe >> ../files/EHPTexamples_EHPTexamples.EV.MBEVdata.sim & ./EHPTexamples_EHPTexamples.EV.MBEVdata -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.EV.MBEVdata.pipe 2>&1)