Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_EHPTexamples.PSD.PSecu3.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.PSD.PSecu3,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu3") translateModel(EHPTexamples.PSD.PSecu3,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.06771/0.06771, allocations: 8.354 MB / 24.66 MB, free: 144 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.001347/0.001348, allocations: 98.81 kB / 27.32 MB, free: 2.754 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.001792/0.001792, allocations: 183.1 kB / 30.09 MB, free: 6.543 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 255.6 MB, free: 4.297 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01285/0.01285, allocations: 3.121 MB / 310.7 MB, free: 1.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 99.83 kB / 429.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.08536, allocations: 52.05 MB / 481.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu3): time 0.0112/0.0966, allocations: 9.632 MB / 491.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007256/0.1039, allocations: 4.059 MB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001578/0.1055, allocations: 43.81 kB / 495.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.1072, allocations: 0.7108 MB / 495.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00244/0.1097, allocations: 0.7997 MB / 496.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003603/0.1133, allocations: 1.591 MB / 498.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004037/0.1174, allocations: 2.984 MB / 0.4895 GB, free: 8.055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002222/0.1196, allocations: 1.424 MB / 0.4909 GB, free: 6.582 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001811/0.1215, allocations: 1.222 MB / 0.4921 GB, free: 5.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001932/0.1234, allocations: 1.385 MB / 0.4935 GB, free: 3.965 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007455/0.1242, allocations: 320 kB / 0.4938 GB, free: 3.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.1254, allocations: 0.492 MB / 0.4942 GB, free: 3.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009208/0.1263, allocations: 0.8139 MB / 0.495 GB, free: 2.344 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.1283, allocations: 1.465 MB / 0.4965 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004455/0.1328, allocations: 3.786 MB / 0.5002 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1328, allocations: 0 / 0.5002 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.1328, allocations: 0 / 0.5002 GB, free: 13.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.268e-05/0.1329, allocations: 0 / 0.5002 GB, free: 13.07 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: 530 * Number of variables: 530 Notification: Performance of Generate backend data structure: time 0.005429/0.1383, allocations: 3.404 MB / 0.5035 GB, free: 9.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1384, allocations: 8.031 kB / 0.5035 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005417/0.1389, allocations: 337.9 kB / 0.5038 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002315/0.1412, allocations: 1.637 MB / 0.5054 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.1414, allocations: 185.8 kB / 0.5056 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002808/0.1417, allocations: 227.9 kB / 0.5058 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003632/0.1453, allocations: 2.192 MB / 0.5079 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.115e-05/0.1454, allocations: 0 / 0.5079 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001775/0.1456, allocations: 92 kB / 0.508 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.613e-05/0.1456, allocations: 59.94 kB / 0.5081 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003059/0.1487, allocations: 1.503 MB / 0.5096 GB, free: 3.133 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.1965/0.3452, allocations: 7.51 MB / 0.5169 GB, free: 35.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.348, allocations: 1.308 MB / 0.5182 GB, free: 35.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.3494, allocations: 0.6934 MB / 0.5189 GB, free: 35.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-05/0.3495, allocations: 25.92 kB / 0.5189 GB, free: 35.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001526/0.351, allocations: 0.7891 MB / 0.5196 GB, free: 35.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=135): time 3.938e-06/0.351, allocations: 0 / 0.5196 GB, free: 35.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01104/0.3621, allocations: 5.658 MB / 0.5252 GB, free: 32.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.3622, allocations: 0.5802 MB / 0.5257 GB, free: 31.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/0.3654, allocations: 2.36 MB / 0.528 GB, free: 30.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001917/0.3656, allocations: 64.34 kB / 0.5281 GB, free: 30.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008201/0.3664, allocations: 1.161 MB / 0.5292 GB, free: 29.58 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003391/0.3668, allocations: 0.5182 MB / 0.5297 GB, free: 29.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004292/0.3672, allocations: 274.7 kB / 0.53 GB, free: 29.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.903e-05/0.3672, allocations: 306.9 kB / 0.5303 GB, free: 28.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.3684, allocations: 0.5446 MB / 0.5308 GB, free: 28.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/0.3697, allocations: 0.9191 MB / 0.5317 GB, free: 27.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005954/0.3757, allocations: 2.904 MB / 0.5346 GB, free: 26.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.3757, allocations: 2.812 kB / 0.5346 GB, free: 26.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003782/0.3795, allocations: 2.079 MB / 0.5366 GB, free: 25.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.092e-05/0.3796, allocations: 125.7 kB / 0.5367 GB, free: 25.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.3796, allocations: 4.75 kB / 0.5367 GB, free: 25.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007238/0.3803, allocations: 290.3 kB / 0.537 GB, free: 25.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.3814, allocations: 291 kB / 0.5373 GB, free: 25.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/0.3829, allocations: 2.462 MB / 0.5397 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.3844, allocations: 142.9 kB / 0.5398 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.3845, allocations: 62.45 kB / 0.5399 GB, free: 22.7 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: bat.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real bat.cDummy.v:VARIABLE(start = bat.EBatteryMin + bat.SOCInit * (bat.EBatteryMax - bat.EBatteryMin) unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001655/0.3862, allocations: 0.9763 MB / 0.5408 GB, free: 22.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009501/0.3872, allocations: 0.8485 MB / 0.5417 GB, free: 21.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004723/0.3919, allocations: 2.688 MB / 0.5443 GB, free: 19.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.791e-06/0.3919, allocations: 3.562 kB / 0.5443 GB, free: 19.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization_lambda0): time 0.003051/0.395, allocations: 1.937 MB / 0.5462 GB, free: 18.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.395, allocations: 129.3 kB / 0.5463 GB, free: 18.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.395, allocations: 11.94 kB / 0.5463 GB, free: 18.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006586/0.3957, allocations: 273.5 kB / 0.5466 GB, free: 18.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008835/0.3966, allocations: 270.1 kB / 0.5468 GB, free: 17.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.398, allocations: 2.464 MB / 0.5492 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.3994, allocations: 148.7 kB / 0.5494 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.611e-05/0.3995, allocations: 63.05 kB / 0.5494 GB, free: 15.14 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: bat.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real bat.cDummy.v:VARIABLE(start = bat.EBatteryMin + bat.SOCInit * (bat.EBatteryMax - bat.EBatteryMin) unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 21 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,$PRE.ECU.hysteresis.y,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,gen.limTau.state,mot.limTau.state,ECU.hysteresis.y,dragForce.mode,$PRE.dragForce.mode,dragForce.locked,dragForce.startBackward,$PRE.dragForce.startBackward,dragForce.startForward,$PRE.dragForce.startForward,gen.constPDC.integrator1.local_reset,mot.constPDC.integrator1.local_reset,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 157 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0004557/0.4, allocations: 425.5 kB / 0.5498 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003029/0.4003, allocations: 226.5 kB / 0.5501 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003048/0.4034, allocations: 1.854 MB / 0.5519 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.4034, allocations: 7.969 kB / 0.5519 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4034, allocations: 0 / 0.5519 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005824/0.404, allocations: 451.5 kB / 0.5523 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.4043, allocations: 40 kB / 0.5523 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.4055, allocations: 143.8 kB / 0.5525 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.4057, allocations: 121.1 kB / 0.5526 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003924/0.4097, allocations: 2.071 MB / 0.5546 GB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003666/0.4134, allocations: 2.52 MB / 0.5571 GB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001016/0.4144, allocations: 0.6584 MB / 0.5577 GB, free: 6.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001746/0.4161, allocations: 1.662 MB / 0.5593 GB, free: 4.762 MB / 382.1 MB Notification: Performance of Backend: time 4.91e-07/0.4162, allocations: 0 / 0.5593 GB, free: 4.762 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00684/0.423, allocations: 3.707 MB / 0.563 GB, free: 1.492 MB / 382.1 MB Notification: Performance of SimCode: time 0.007628/0.4306, allocations: 5.761 MB / 0.5686 GB, free: 11.65 MB / 398.1 MB Notification: Performance of Templates: time 0.05348/0.4842, allocations: 35.56 MB / 0.6033 GB, free: 8.219 MB / 430.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu3.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu3.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu3.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu3.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu3.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu3.pipe 2>&1)