Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_EHPTexamples.PSD.PSecu2PA.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.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu2PA") translateModel(EHPTexamples.PSD.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu2PA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04554/0.04554, allocations: 8.039 MB / 24.35 MB, free: 4 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.00094/0.00094, allocations: 109.4 kB / 26.93 MB, free: 2.984 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.001032/0.001032, allocations: 191.3 kB / 29.62 MB, free: 312 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.295/1.295, allocations: 222.9 MB / 255.1 MB, free: 4.695 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01284/0.01284, allocations: 3.134 MB / 310.1 MB, free: 2.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 103.8 kB / 428.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07738/0.07905, allocations: 51.97 MB / 480.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2PA): time 0.01033/0.08942, allocations: 9.335 MB / 490 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005655/0.09509, allocations: 3.985 MB / 493.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005701/0.09568, allocations: 43.81 kB / 494 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.09671, allocations: 0.6835 MB / 494.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001247/0.09799, allocations: 0.7452 MB / 495.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002615/0.1006, allocations: 1.549 MB / 497 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00245/0.1031, allocations: 2.898 MB / 499.9 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001639/0.1047, allocations: 1.36 MB / 0.4895 GB, free: 7.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.1058, allocations: 1.164 MB / 0.4906 GB, free: 6.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.1071, allocations: 1.319 MB / 0.4919 GB, free: 5.246 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003675/0.1074, allocations: 312 kB / 0.4922 GB, free: 4.941 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006504/0.1081, allocations: 483.8 kB / 0.4927 GB, free: 4.469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005946/0.1087, allocations: 0.7633 MB / 0.4934 GB, free: 3.703 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.1098, allocations: 1.395 MB / 0.4948 GB, free: 2.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002976/0.1128, allocations: 3.637 MB / 0.4983 GB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1128, allocations: 0 / 0.4983 GB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1128, allocations: 0 / 0.4983 GB, free: 14.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.682e-05/0.1128, allocations: 0 / 0.4983 GB, free: 14.65 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.004865/0.1177, allocations: 3.165 MB / 0.5014 GB, free: 11.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.1177, allocations: 8.031 kB / 0.5014 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004817/0.1182, allocations: 308.3 kB / 0.5017 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002192/0.1204, allocations: 1.559 MB / 0.5032 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.1206, allocations: 181.6 kB / 0.5034 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002761/0.1209, allocations: 219.8 kB / 0.5036 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003586/0.1245, allocations: 2.137 MB / 0.5057 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.319e-05/0.1245, allocations: 3.906 kB / 0.5057 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001814/0.1247, allocations: 92 kB / 0.5058 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.363e-05/0.1247, allocations: 48 kB / 0.5058 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.1277, allocations: 1.479 MB / 0.5073 GB, free: 5.246 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.1798/0.3075, allocations: 7.42 MB / 0.5145 GB, free: 35.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002713/0.3103, allocations: 1.292 MB / 0.5158 GB, free: 35.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001248/0.3115, allocations: 0.6868 MB / 0.5165 GB, free: 35.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.581e-05/0.3116, allocations: 23.95 kB / 0.5165 GB, free: 35.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001417/0.313, allocations: 0.782 MB / 0.5173 GB, free: 35.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.256e-06/0.3131, allocations: 0 / 0.5173 GB, free: 35.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=141): time 0.0101/0.3232, allocations: 5.561 MB / 0.5227 GB, free: 32.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.3233, allocations: 0.5802 MB / 0.5232 GB, free: 32.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002686/0.326, allocations: 2.147 MB / 0.5253 GB, free: 31.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.3261, allocations: 59.02 kB / 0.5254 GB, free: 31.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006539/0.3268, allocations: 1.07 MB / 0.5264 GB, free: 30.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002855/0.3271, allocations: 496.3 kB / 0.5269 GB, free: 30.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/0.3275, allocations: 272.5 kB / 0.5272 GB, free: 30.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.17e-05/0.3275, allocations: 303.9 kB / 0.5275 GB, free: 29.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.3286, allocations: 0.5438 MB / 0.528 GB, free: 29.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.3299, allocations: 0.9355 MB / 0.5289 GB, free: 28.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005601/0.3355, allocations: 2.888 MB / 0.5317 GB, free: 27.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3356, allocations: 2.75 kB / 0.5317 GB, free: 27.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003813/0.3394, allocations: 2.107 MB / 0.5338 GB, free: 26.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.635e-05/0.3394, allocations: 124 kB / 0.5339 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.3395, allocations: 12.06 kB / 0.5339 GB, free: 26.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007478/0.3402, allocations: 292.2 kB / 0.5342 GB, free: 26.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.3413, allocations: 288.2 kB / 0.5345 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.3431, allocations: 2.529 MB / 0.5369 GB, free: 23.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3443, allocations: 145.9 kB / 0.5371 GB, free: 23.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.3445, allocations: 65.7 kB / 0.5372 GB, free: 23.68 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.001445/0.3459, allocations: 0.9337 MB / 0.5381 GB, free: 23.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008527/0.3468, allocations: 0.8468 MB / 0.5389 GB, free: 22.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004386/0.3512, allocations: 2.643 MB / 0.5415 GB, free: 20.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.769e-06/0.3512, allocations: 3.156 kB / 0.5415 GB, free: 20.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization_lambda0): time 0.002603/0.3538, allocations: 1.89 MB / 0.5433 GB, free: 20 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.3538, allocations: 135.6 kB / 0.5434 GB, free: 19.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3539, allocations: 6.875 kB / 0.5435 GB, free: 19.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005677/0.3544, allocations: 264.5 kB / 0.5437 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000843/0.3553, allocations: 264.2 kB / 0.544 GB, free: 19.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.3566, allocations: 2.45 MB / 0.5464 GB, free: 17.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.3578, allocations: 154.3 kB / 0.5465 GB, free: 17.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.12e-05/0.3579, allocations: 63.03 kB / 0.5466 GB, free: 17.44 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: 33 * Number of states: 0 () * Number of discrete variables: 20 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,gen.limTau.state,mot.limTau.state,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,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 155 * 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.0003408/0.3583, allocations: 414 kB / 0.547 GB, free: 17.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.3585, allocations: 203 kB / 0.5471 GB, free: 16.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002904/0.3615, allocations: 1.839 MB / 0.5489 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.3615, allocations: 7.969 kB / 0.549 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3615, allocations: 3.938 kB / 0.549 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005681/0.3621, allocations: 422.5 kB / 0.5494 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002508/0.3623, allocations: 40 kB / 0.5494 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.3634, allocations: 139.9 kB / 0.5495 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.3636, allocations: 117.1 kB / 0.5496 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004023/0.3677, allocations: 2.104 MB / 0.5517 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003473/0.3712, allocations: 2.47 MB / 0.5541 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009709/0.3721, allocations: 0.6544 MB / 0.5547 GB, free: 9.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001414/0.3736, allocations: 1.506 MB / 0.5562 GB, free: 7.797 MB / 382.1 MB Notification: Performance of Backend: time 9.01e-07/0.3736, allocations: 0 / 0.5562 GB, free: 7.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00613/0.3797, allocations: 3.7 MB / 0.5598 GB, free: 4.555 MB / 382.1 MB Notification: Performance of SimCode: time 0.005954/0.3857, allocations: 5.483 MB / 0.5652 GB, free: 14.98 MB / 398.1 MB Notification: Performance of Templates: time 0.05008/0.4358, allocations: 34.63 MB / 0.599 GB, free: 12.49 MB / 430.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu2PA.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu2PA.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu2PA -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe 2>&1)