Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_EHPTexamples.PSD.PSecu1.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.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu1") translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.0437/0.0437, allocations: 8.351 MB / 24.66 MB, free: 112 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.001002/0.001002, allocations: 110 kB / 27.32 MB, free: 2.723 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.002019/0.002019, allocations: 191.1 kB / 30.09 MB, free: 6.508 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.31/1.31, allocations: 222.9 MB / 255.6 MB, free: 4.273 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01305/0.01305, allocations: 3.126 MB / 310.7 MB, free: 1.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 95.84 kB / 429.4 MB, free: 16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08151/0.08328, allocations: 52.05 MB / 481.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.01045/0.09376, allocations: 9.472 MB / 490.9 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006547/0.1003, allocations: 4.051 MB / 495 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009928/0.1013, allocations: 43.81 kB / 495 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.1026, allocations: 0.707 MB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001465/0.1041, allocations: 0.7881 MB / 496.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003/0.1071, allocations: 1.615 MB / 498.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002828/0.1099, allocations: 2.929 MB / 0.4893 GB, free: 8.246 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001635/0.1116, allocations: 1.364 MB / 0.4906 GB, free: 6.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.1128, allocations: 1.184 MB / 0.4918 GB, free: 5.645 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.1142, allocations: 1.366 MB / 0.4931 GB, free: 4.273 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003568/0.1146, allocations: 312 kB / 0.4934 GB, free: 3.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006904/0.1153, allocations: 483.8 kB / 0.4939 GB, free: 3.496 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006198/0.1159, allocations: 0.7983 MB / 0.4947 GB, free: 2.695 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.1171, allocations: 1.422 MB / 0.4961 GB, free: 1.266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003478/0.1206, allocations: 3.705 MB / 0.4997 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1206, allocations: 4 kB / 0.4997 GB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1206, allocations: 0 / 0.4997 GB, free: 13.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.18e-05/0.1207, allocations: 0 / 0.4997 GB, free: 13.54 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: 508 * Number of variables: 508 Notification: Performance of Generate backend data structure: time 0.005215/0.1259, allocations: 3.334 MB / 0.5029 GB, free: 10.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1259, allocations: 8.031 kB / 0.5029 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005313/0.1265, allocations: 333.9 kB / 0.5033 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002224/0.1287, allocations: 1.617 MB / 0.5048 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.1289, allocations: 185.7 kB / 0.505 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002686/0.1292, allocations: 219.8 kB / 0.5052 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003504/0.1327, allocations: 2.132 MB / 0.5073 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.13e-05/0.1327, allocations: 4 kB / 0.5073 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/0.1329, allocations: 88 kB / 0.5074 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.512e-05/0.133, allocations: 48 kB / 0.5074 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/0.136, allocations: 1.475 MB / 0.5089 GB, free: 3.898 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.187/0.323, allocations: 7.341 MB / 0.5161 GB, free: 35.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.3255, allocations: 1.249 MB / 0.5173 GB, free: 35.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.3268, allocations: 0.6826 MB / 0.5179 GB, free: 35.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-05/0.3269, allocations: 19.2 kB / 0.518 GB, free: 35.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001427/0.3283, allocations: 0.7811 MB / 0.5187 GB, free: 35.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 2.936e-06/0.3284, allocations: 0 / 0.5187 GB, free: 35.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01076/0.3391, allocations: 5.605 MB / 0.5242 GB, free: 32.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.3393, allocations: 0.6043 MB / 0.5248 GB, free: 31.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002936/0.3422, allocations: 2.339 MB / 0.5271 GB, free: 30.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.3424, allocations: 61.25 kB / 0.5271 GB, free: 30.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007355/0.3431, allocations: 1.126 MB / 0.5282 GB, free: 29.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003018/0.3434, allocations: 0.5016 MB / 0.5287 GB, free: 29.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004241/0.3439, allocations: 270.9 kB / 0.529 GB, free: 29.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.563e-05/0.3439, allocations: 301.7 kB / 0.5293 GB, free: 28.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.345, allocations: 0.5447 MB / 0.5298 GB, free: 28.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.3464, allocations: 0.9263 MB / 0.5307 GB, free: 28.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00597/0.3524, allocations: 2.866 MB / 0.5335 GB, free: 26.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.3524, allocations: 5.484 kB / 0.5335 GB, free: 26.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003824/0.3562, allocations: 2.057 MB / 0.5355 GB, free: 25.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.813e-05/0.3563, allocations: 126.5 kB / 0.5356 GB, free: 25.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3563, allocations: 4.047 kB / 0.5356 GB, free: 25.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007562/0.3571, allocations: 283.6 kB / 0.5359 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.3581, allocations: 286.7 kB / 0.5362 GB, free: 25.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.3597, allocations: 2.492 MB / 0.5386 GB, free: 22.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.3611, allocations: 150.3 kB / 0.5388 GB, free: 22.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.3612, allocations: 58.98 kB / 0.5388 GB, free: 22.86 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.001472/0.3627, allocations: 0.9533 MB / 0.5397 GB, free: 22.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009017/0.3636, allocations: 0.8217 MB / 0.5405 GB, free: 21.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00464/0.3683, allocations: 2.646 MB / 0.5431 GB, free: 20.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.071e-06/0.3683, allocations: 3.375 kB / 0.5431 GB, free: 20.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=185) (initialization_lambda0): time 0.002888/0.3712, allocations: 1.889 MB / 0.545 GB, free: 19.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/0.3712, allocations: 122.4 kB / 0.5451 GB, free: 19.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3712, allocations: 7.781 kB / 0.5451 GB, free: 19.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006718/0.3719, allocations: 278.3 kB / 0.5454 GB, free: 19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008727/0.3728, allocations: 255.9 kB / 0.5456 GB, free: 18.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/0.3743, allocations: 2.5 MB / 0.5481 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.3757, allocations: 145.4 kB / 0.5482 GB, free: 16.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.271e-05/0.3758, allocations: 56 kB / 0.5482 GB, free: 16.51 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: 19 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 151 * 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.0004113/0.3762, allocations: 419.2 kB / 0.5486 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002798/0.3765, allocations: 224.1 kB / 0.5489 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003019/0.3795, allocations: 1.833 MB / 0.5506 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.3795, allocations: 11.97 kB / 0.5507 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3795, allocations: 1.312 kB / 0.5507 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000545/0.3801, allocations: 446.3 kB / 0.5511 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/0.3803, allocations: 40 kB / 0.5511 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.3815, allocations: 139.8 kB / 0.5513 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.3817, allocations: 115.8 kB / 0.5514 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003965/0.3857, allocations: 2.058 MB / 0.5534 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003619/0.3893, allocations: 2.489 MB / 0.5558 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001004/0.3903, allocations: 0.6427 MB / 0.5564 GB, free: 7.922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001729/0.3921, allocations: 1.645 MB / 0.558 GB, free: 6.254 MB / 382.1 MB Notification: Performance of Backend: time 3.71e-07/0.3921, allocations: 0 / 0.558 GB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006432/0.3985, allocations: 3.665 MB / 0.5616 GB, free: 3.02 MB / 382.1 MB Notification: Performance of SimCode: time 0.006553/0.4051, allocations: 5.692 MB / 0.5672 GB, free: 13.25 MB / 398.1 MB Notification: Performance of Templates: time 0.05331/0.4584, allocations: 35.13 MB / 0.6015 GB, free: 10.24 MB / 430.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu1.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu1.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu1.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu1.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu1.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu1.pipe 2>&1)