Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.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.SHEV.SHEV_OO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO") translateModel(EHPTexamples.SHEV.SHEV_OO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.07421/0.07421, allocations: 8.356 MB / 24.66 MB, free: 160 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.001416/0.001416, allocations: 97.94 kB / 27.32 MB, free: 2.773 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.001108/0.001108, allocations: 186.2 kB / 30.09 MB, free: 12 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.31/1.31, allocations: 222.9 MB / 255.6 MB, free: 4.293 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.0129/0.0129, allocations: 3.124 MB / 310.7 MB, free: 1.938 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 91.86 kB / 428.3 MB, free: 17.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0824/0.08415, allocations: 52.04 MB / 480.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.SHEV.SHEV_OO): time 0.01245/0.09662, allocations: 10.65 MB / 491 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007939/0.1046, allocations: 4.644 MB / 495.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.1062, allocations: 51.81 kB / 495.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001753/0.108, allocations: 0.8117 MB / 496.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002421/0.1104, allocations: 0.889 MB / 497.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003994/0.1145, allocations: 2.005 MB / 499.4 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004078/0.1185, allocations: 3.525 MB / 0.4912 GB, free: 6.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002032/0.1206, allocations: 1.577 MB / 0.4927 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.1222, allocations: 1.332 MB / 0.494 GB, free: 3.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001571/0.1238, allocations: 1.51 MB / 0.4955 GB, free: 1.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00043/0.1242, allocations: 376 kB / 0.4958 GB, free: 1.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009285/0.1251, allocations: 0.5701 MB / 0.4964 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007546/0.1259, allocations: 0.9152 MB / 0.4973 GB, free: 32 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001497/0.1274, allocations: 1.64 MB / 0.4989 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004732/0.1322, allocations: 4.46 MB / 0.5032 GB, free: 9.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1322, allocations: 0 / 0.5032 GB, free: 9.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1322, allocations: 0 / 0.5032 GB, free: 9.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.596e-05/0.1323, allocations: 4 kB / 0.5033 GB, free: 9.902 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 542 * Number of variables: 542 Notification: Performance of Generate backend data structure: time 0.006638/0.1389, allocations: 3.709 MB / 0.5069 GB, free: 6.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.139, allocations: 8.031 kB / 0.5069 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006683/0.1396, allocations: 373.6 kB / 0.5072 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.1425, allocations: 1.933 MB / 0.5091 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.1427, allocations: 193.9 kB / 0.5093 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002974/0.143, allocations: 220 kB / 0.5095 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0042/0.1472, allocations: 2.403 MB / 0.5119 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.685e-05/0.1473, allocations: 7.953 kB / 0.5119 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/0.1475, allocations: 95.94 kB / 0.512 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.763e-05/0.1475, allocations: 56 kB / 0.512 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1892/0.3367, allocations: 1.693 MB / 0.5137 GB, free: 38.61 MB / 382.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 preOpt removeSimpleEquations (simulation): time 0.01179/0.3485, allocations: 8.681 MB / 0.5221 GB, free: 34.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003633/0.3522, allocations: 1.999 MB / 0.5241 GB, free: 33.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.3536, allocations: 0.7445 MB / 0.5248 GB, free: 32.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.859e-05/0.3537, allocations: 28.2 kB / 0.5249 GB, free: 32.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001735/0.3555, allocations: 0.8635 MB / 0.5257 GB, free: 32.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=137): time 3.517e-06/0.3555, allocations: 3.906 kB / 0.5257 GB, free: 32.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=147): time 0.01122/0.3667, allocations: 5.83 MB / 0.5314 GB, free: 29.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.3669, allocations: 0.7825 MB / 0.5322 GB, free: 28.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.3701, allocations: 2.808 MB / 0.5349 GB, free: 27.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.3703, allocations: 67.47 kB / 0.535 GB, free: 27.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007453/0.371, allocations: 1.273 MB / 0.5362 GB, free: 26.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.3713, allocations: 0.5179 MB / 0.5367 GB, free: 25.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004222/0.3718, allocations: 298.8 kB / 0.537 GB, free: 25.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.589e-05/0.3718, allocations: 309.1 kB / 0.5373 GB, free: 25.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.373, allocations: 0.6034 MB / 0.5379 GB, free: 24.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.3743, allocations: 1.081 MB / 0.5389 GB, free: 23.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005714/0.38, allocations: 3.107 MB / 0.542 GB, free: 21.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.38, allocations: 1.344 kB / 0.542 GB, free: 21.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003703/0.3838, allocations: 2.099 MB / 0.544 GB, free: 20.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.86e-05/0.3838, allocations: 118.6 kB / 0.5441 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3838, allocations: 7.906 kB / 0.5441 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004971/0.3843, allocations: 220.1 kB / 0.5444 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3856, allocations: 344.3 kB / 0.5447 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.3869, allocations: 2.27 MB / 0.5469 GB, free: 18.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.3884, allocations: 175.9 kB / 0.5471 GB, free: 17.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.3886, allocations: 64.97 kB / 0.5471 GB, free: 17.85 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 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 genset.mbIce.w.flange.phi:VARIABLE(flow=false unit = "rad" fixed = true ) "Absolute rotation angle of flange" type: Real mass.v:VARIABLE(start = 0.0 unit = "m/s" fixed = true ) "Absolute velocity of component" type: Real battery.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real battery.cDummy.v:VARIABLE(start = battery.EBatteryMin + battery.SOCInit * (battery.EBatteryMax - battery.EBatteryMin) unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real ems.powFilt.y:VARIABLE(flow=false start = ems.powFilt.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001608/0.3902, allocations: 1.11 MB / 0.5482 GB, free: 16.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009822/0.3912, allocations: 0.9411 MB / 0.5491 GB, free: 15.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00443/0.3956, allocations: 2.789 MB / 0.5519 GB, free: 12.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.04e-06/0.3956, allocations: 4 kB / 0.5519 GB, free: 12.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.002764/0.3984, allocations: 1.851 MB / 0.5537 GB, free: 10.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.224e-05/0.3985, allocations: 126.8 kB / 0.5538 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3985, allocations: 8 kB / 0.5538 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004453/0.3989, allocations: 209.7 kB / 0.554 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009549/0.3999, allocations: 296.3 kB / 0.5543 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.4012, allocations: 2.272 MB / 0.5565 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.4027, allocations: 164.4 kB / 0.5567 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.565e-05/0.4028, allocations: 63.98 kB / 0.5567 GB, free: 7.441 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 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 genset.mbIce.w.flange.phi:VARIABLE(flow=false unit = "rad" fixed = true ) "Absolute rotation angle of flange" type: Real mass.v:VARIABLE(start = 0.0 unit = "m/s" fixed = true ) "Absolute velocity of component" type: Real battery.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real battery.cDummy.v:VARIABLE(start = battery.EBatteryMin + battery.SOCInit * (battery.EBatteryMax - battery.EBatteryMin) unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real ems.powFilt.y:VARIABLE(flow=false start = ems.powFilt.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 22 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,$PRE.ems.powHyst.y,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,genset.gen.limTau.state,ems.powHyst.y,drive.limTau.state,dragForce.mode,$PRE.dragForce.mode,dragForce.locked,dragForce.startBackward,$PRE.dragForce.startBackward,dragForce.startForward,$PRE.dragForce.startForward,genset.toGrams.local_reset,genset.mbIce.tokgFuel.local_reset,genset.gen.constPDC.integrator1.local_reset,drive.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 172 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004879/0.4033, allocations: 461.1 kB / 0.5572 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003218/0.4036, allocations: 254.4 kB / 0.5574 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.4071, allocations: 1.9 MB / 0.5593 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.4071, allocations: 11.97 kB / 0.5593 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.4071, allocations: 0 / 0.5593 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006364/0.4077, allocations: 0.4955 MB / 0.5597 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/0.408, allocations: 48 kB / 0.5598 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.4093, allocations: 167.8 kB / 0.56 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.4095, allocations: 117.1 kB / 0.5601 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003915/0.4134, allocations: 2.127 MB / 0.5621 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004393/0.4178, allocations: 2.742 MB / 0.5648 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001349/0.4192, allocations: 0.7325 MB / 0.5655 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002661/0.4218, allocations: 1.993 MB / 0.5675 GB, free: 12.22 MB / 398.1 MB Notification: Performance of Backend: time 3.71e-07/0.4219, allocations: 2.188 kB / 0.5675 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008019/0.4299, allocations: 3.989 MB / 0.5714 GB, free: 8.723 MB / 398.1 MB Notification: Performance of SimCode: time 0.008469/0.4384, allocations: 5.814 MB / 0.5771 GB, free: 2.848 MB / 398.1 MB Notification: Performance of Templates: time 0.06313/0.5015, allocations: 39.57 MB / 0.6157 GB, free: 11.4 MB / 446.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.makefile (rm -f EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe >> ../files/EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.sim & ./EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe 2>&1)