Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_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: "" <> buildModelFMU(EHPTexamples.EV.MBEVdataLF,fileNamePrefix="EHPTexamples_EHPTexamples_EV_MBEVdataLF",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTexamples.EV.MBEVdataLF,fileNamePrefix="EHPTexamples_EHPTexamples_EV_MBEVdataLF",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05612/0.05612, allocations: 8.039 MB / 23.31 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.0006929/0.0006929, allocations: 92.8 kB / 25.88 MB, free: 3.617 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.0008969/0.0008972, allocations: 188.2 kB / 28.56 MB, free: 0.9414 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.349/1.349, allocations: 223.3 MB / 254.4 MB, free: 5.605 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01287/0.01287, allocations: 3.11 MB / 310.4 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004073/0.0004071, allocations: 20.84 kB / 375.5 MB, free: 54.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08462, allocations: 52.98 MB / 428.5 MB, free: 19.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.MBEVdataLF): time 0.006477/0.09112, allocations: 6.311 MB / 434.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00572/0.09689, allocations: 3.398 MB / 438.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.09842, allocations: 27.88 kB / 438.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008918/0.09933, allocations: 282.2 kB / 438.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.1006, allocations: 381.7 kB / 438.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.1023, allocations: 0.8817 MB / 439.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001487/0.1038, allocations: 1.766 MB / 441.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006822/0.1045, allocations: 0.5692 MB / 442.1 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006329/0.1051, allocations: 0.5794 MB / 442.7 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005888/0.1057, allocations: 0.649 MB / 443.4 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.1059, allocations: 72 kB / 443.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004689/0.1063, allocations: 227.8 kB / 443.6 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.1065, allocations: 270.7 kB / 443.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004228/0.107, allocations: 0.6659 MB / 444.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.1082, allocations: 1.903 MB / 446.5 MB, free: 1.938 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1082, allocations: 0 / 446.5 MB, free: 1.938 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1082, allocations: 0 / 446.5 MB, free: 1.938 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.1082, allocations: 4 kB / 446.5 MB, free: 1.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.00251/0.1107, allocations: 1.624 MB / 448.1 MB, free: 248 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1108, allocations: 12.03 kB / 448.1 MB, free: 236 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001804/0.111, allocations: 173.2 kB / 448.3 MB, free: 52 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003259/0.1113, allocations: 163.2 kB / 448.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.1125, allocations: 0.8524 MB / 449.3 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.1126, allocations: 115.9 kB / 449.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001722/0.1128, allocations: 120 kB / 449.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002371/0.1152, allocations: 1.292 MB / 450.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.608e-05/0.1152, allocations: 8 kB / 450.8 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.1153, allocations: 48 kB / 450.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.1154, allocations: 28 kB / 450.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.1174, allocations: 0.9494 MB / 451.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006657/0.124, allocations: 4.205 MB / 456.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.1263, allocations: 1.194 MB / 457.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.1273, allocations: 0.5079 MB / 457.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.226e-05/0.1274, allocations: 13 kB / 457.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001101/0.1285, allocations: 0.5765 MB / 458.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.384e-06/0.1285, allocations: 0 / 458.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=95): time 0.007824/0.1364, allocations: 3.944 MB / 462.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000212/0.1366, allocations: 479.7 kB / 462.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.1377, allocations: 0.8724 MB / 463.6 MB, free: 52 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.1378, allocations: 53.77 kB / 463.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/0.1382, allocations: 0.5465 MB / 464.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.1385, allocations: 331.2 kB / 464.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.1386, allocations: 93.61 kB / 464.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1387, allocations: 341.9 kB / 465 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007795/0.1395, allocations: 385.8 kB / 465.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009879/0.1405, allocations: 0.657 MB / 466 MB, free: 13.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.1422, allocations: 1.028 MB / 467 MB, free: 12.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1422, allocations: 0 / 467 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002827/0.145, allocations: 1.395 MB / 468.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001865/0.1452, allocations: 289.5 kB / 468.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1453, allocations: 4 kB / 468.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005764/0.1458, allocations: 204.7 kB / 468.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007727/0.1466, allocations: 215.7 kB / 469.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009166/0.1476, allocations: 0.8083 MB / 469.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.1486, allocations: 147.9 kB / 470.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.583e-05/0.1487, allocations: 39.98 kB / 470.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.775e-06/0.1487, allocations: 4 kB / 470.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002087/0.1508, allocations: 1.054 MB / 471.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.1508, allocations: 7.984 kB / 471.2 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004653/0.1513, allocations: 193.1 kB / 471.4 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/0.152, allocations: 191.7 kB / 471.6 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007336/0.1527, allocations: 0.7591 MB / 472.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009206/0.1537, allocations: 112 kB / 472.4 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.696e-05/0.1538, allocations: 44 kB / 472.5 MB, free: 6.801 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.0007254/0.1545, allocations: 458.1 kB / 472.9 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.1547, allocations: 114.6 kB / 473 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/0.1574, allocations: 1.208 MB / 474.2 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.1574, allocations: 8 kB / 474.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.1575, allocations: 0 / 474.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.1575, allocations: 3.984 kB / 474.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005281/0.1628, allocations: 2.7 MB / 477 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.1628, allocations: 4 kB / 477 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007851/0.1636, allocations: 179.9 kB / 477.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000555/0.1642, allocations: 204.7 kB / 477.3 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.828e-05/0.1643, allocations: 27.97 kB / 477.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008295/0.1651, allocations: 0.7694 MB / 478.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1651, allocations: 0 / 478.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003481/0.1686, allocations: 1.789 MB / 479.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005247/0.1691, allocations: 287.7 kB / 480.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002269/0.1694, allocations: 28 kB / 480.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009681/0.1703, allocations: 123.8 kB / 480.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.1706, allocations: 84.86 kB / 480.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.383e-05/0.1707, allocations: 39.97 kB / 480.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009417/0.1716, allocations: 0.6123 MB / 481.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1716, allocations: 7.938 kB / 481.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001661/0.1733, allocations: 472 kB / 481.6 MB, free: 13.5 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.005409/0.1787, allocations: 2.982 MB / 484.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003425/0.1821, allocations: 1.712 MB / 486.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.1822, allocations: 4 kB / 486.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.1833, allocations: 0.6187 MB / 486.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.1849, allocations: 235.9 kB / 487.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/0.2035, allocations: 10.92 MB / 498 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007678/0.2043, allocations: 1.109 MB / 499.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007646/0.205, allocations: 159.5 kB / 499.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006443/0.2057, allocations: 463.3 kB / 499.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2057, allocations: 0 / 499.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2165/0.4222, allocations: 27.82 MB / 0.5152 GB, free: 65.79 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.4224, allocations: 245.1 kB / 0.5154 GB, free: 65.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.382/2.805, allocations: 0 / 0.5154 GB, free: 65.54 MB / 366.1 MB (rm -f EHPTexamples_EHPTexamples.EV.MBEVdataLF.pipe ; mkfifo EHPTexamples_EHPTexamples.EV.MBEVdataLF.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.EV.MBEVdataLF.pipe >> ../files/EHPTexamples_EHPTexamples.EV.MBEVdataLF.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTexamples_EHPTexamples_EV_MBEVdataLF_fmu --startTime=0 --stopTime=1400 --timeout=50 --tolerance=0.0001 EHPTexamples_EHPTexamples_EV_MBEVdataLF.fmu > EHPTexamples_EHPTexamples.EV.MBEVdataLF.pipe 2>&1)