Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_latest_EHPTexamples.PSD.PSecu2.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.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu2") translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04559/0.04559, allocations: 8.041 MB / 24.35 MB, free: 0 / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 106.1 kB / 26.93 MB, free: 2.969 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.001194/0.001194, allocations: 187.3 kB / 29.63 MB, free: 292 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.327/1.327, allocations: 222.9 MB / 255.1 MB, free: 4.684 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01339/0.01339, allocations: 3.119 MB / 310.1 MB, free: 2.305 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 91.86 kB / 428.6 MB, free: 16.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08148/0.08318, allocations: 51.98 MB / 480.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.01065/0.09386, allocations: 9.335 MB / 490 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006922/0.1008, allocations: 3.981 MB / 493.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.1023, allocations: 43.81 kB / 494 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.1039, allocations: 0.6836 MB / 494.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.1062, allocations: 0.7452 MB / 495.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003357/0.1095, allocations: 1.557 MB / 497 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003619/0.1132, allocations: 2.898 MB / 499.9 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002234/0.1154, allocations: 1.36 MB / 0.4895 GB, free: 7.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001678/0.1171, allocations: 1.164 MB / 0.4906 GB, free: 6.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001765/0.1189, allocations: 1.327 MB / 0.4919 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006232/0.1195, allocations: 311.9 kB / 0.4922 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.1206, allocations: 487.8 kB / 0.4927 GB, free: 4.457 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008372/0.1214, allocations: 0.7633 MB / 0.4934 GB, free: 3.691 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001712/0.1231, allocations: 1.403 MB / 0.4948 GB, free: 2.281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003692/0.1268, allocations: 3.641 MB / 0.4983 GB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1269, allocations: 0 / 0.4983 GB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1269, allocations: 0 / 0.4983 GB, free: 14.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.127, allocations: 0 / 0.4983 GB, free: 14.63 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.00627/0.1333, allocations: 3.175 MB / 0.5014 GB, free: 11.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1333, allocations: 8.031 kB / 0.5015 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006703/0.134, allocations: 308.3 kB / 0.5017 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002586/0.1366, allocations: 1.555 MB / 0.5033 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/0.1368, allocations: 181.7 kB / 0.5034 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000277/0.137, allocations: 219.8 kB / 0.5037 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003724/0.1408, allocations: 2.137 MB / 0.5057 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.343e-05/0.1409, allocations: 15.84 kB / 0.5058 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000258/0.1411, allocations: 92 kB / 0.5058 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.304e-05/0.1412, allocations: 48 kB / 0.5059 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003028/0.1442, allocations: 1.475 MB / 0.5073 GB, free: 5.207 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.1958/0.34, allocations: 7.422 MB / 0.5146 GB, free: 36.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003353/0.3434, allocations: 1.288 MB / 0.5158 GB, free: 36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001396/0.3448, allocations: 0.687 MB / 0.5165 GB, free: 35.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.642e-05/0.345, allocations: 24.77 kB / 0.5165 GB, free: 35.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001652/0.3466, allocations: 0.7853 MB / 0.5173 GB, free: 35.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 4.619e-06/0.3466, allocations: 0 / 0.5173 GB, free: 35.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=141): time 0.01134/0.358, allocations: 5.564 MB / 0.5227 GB, free: 33.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.3582, allocations: 0.6056 MB / 0.5233 GB, free: 32.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.3611, allocations: 2.154 MB / 0.5254 GB, free: 31.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001683/0.3613, allocations: 59.45 kB / 0.5255 GB, free: 31.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007206/0.362, allocations: 1.072 MB / 0.5265 GB, free: 30.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003144/0.3623, allocations: 492.6 kB / 0.527 GB, free: 30.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000409/0.3628, allocations: 272.7 kB / 0.5273 GB, free: 30.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.826e-05/0.3628, allocations: 303.1 kB / 0.5275 GB, free: 30.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.3639, allocations: 0.5462 MB / 0.5281 GB, free: 29.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.3652, allocations: 0.9401 MB / 0.529 GB, free: 29.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005587/0.3708, allocations: 2.893 MB / 0.5318 GB, free: 27.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.3709, allocations: 1.375 kB / 0.5318 GB, free: 27.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.0041/0.375, allocations: 2.115 MB / 0.5339 GB, free: 26.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.951e-05/0.375, allocations: 126.1 kB / 0.534 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.3751, allocations: 12.16 kB / 0.534 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007446/0.3758, allocations: 278.8 kB / 0.5343 GB, free: 26.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000997/0.3768, allocations: 302.3 kB / 0.5346 GB, free: 26.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.3786, allocations: 2.518 MB / 0.537 GB, free: 24.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.38, allocations: 145.4 kB / 0.5372 GB, free: 24.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.3801, allocations: 66.41 kB / 0.5372 GB, free: 24.04 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.001452/0.3815, allocations: 0.9318 MB / 0.5381 GB, free: 23.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008478/0.3824, allocations: 0.8441 MB / 0.539 GB, free: 22.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004393/0.3868, allocations: 2.651 MB / 0.5416 GB, free: 21.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.298e-06/0.3868, allocations: 3.844 kB / 0.5416 GB, free: 21.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization_lambda0): time 0.002733/0.3895, allocations: 1.886 MB / 0.5434 GB, free: 20.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.998e-05/0.3896, allocations: 124.8 kB / 0.5435 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3896, allocations: 13.84 kB / 0.5435 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005663/0.3902, allocations: 262.4 kB / 0.5438 GB, free: 20.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008489/0.391, allocations: 267 kB / 0.544 GB, free: 20.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.3924, allocations: 2.453 MB / 0.5464 GB, free: 17.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/0.3937, allocations: 145.8 kB / 0.5466 GB, free: 17.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.58e-05/0.3938, allocations: 63.61 kB / 0.5466 GB, free: 17.79 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.000429/0.3943, allocations: 423.1 kB / 0.547 GB, free: 17.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.3945, allocations: 202.9 kB / 0.5472 GB, free: 17.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/0.3975, allocations: 1.844 MB / 0.549 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.3975, allocations: 11.97 kB / 0.549 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3975, allocations: 0 / 0.549 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005776/0.3981, allocations: 422.5 kB / 0.5495 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.3983, allocations: 40 kB / 0.5495 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.3994, allocations: 135.9 kB / 0.5496 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.3996, allocations: 113.1 kB / 0.5497 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00396/0.4036, allocations: 2.116 MB / 0.5518 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003443/0.4071, allocations: 2.469 MB / 0.5542 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000963/0.408, allocations: 0.6505 MB / 0.5548 GB, free: 9.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001477/0.4095, allocations: 1.513 MB / 0.5563 GB, free: 8.16 MB / 382.1 MB Notification: Performance of Backend: time 2.31e-07/0.4095, allocations: 0 / 0.5563 GB, free: 8.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006287/0.4158, allocations: 3.701 MB / 0.5599 GB, free: 4.918 MB / 382.1 MB Notification: Performance of SimCode: time 0.005755/0.4216, allocations: 5.476 MB / 0.5653 GB, free: 15.36 MB / 398.1 MB Notification: Performance of Templates: time 0.05277/0.4744, allocations: 34.76 MB / 0.5992 GB, free: 12.73 MB / 430.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2.makefile (rm -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe >> ../files/EHPTexamples_latest_EHPTexamples.PSD.PSecu2.sim & ./EHPTexamples_latest_EHPTexamples.PSD.PSecu2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe 2>&1)