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.0515/0.0515, allocations: 8.037 MB / 24.34 MB, free: 396 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.0009687/0.0009688, allocations: 107.8 kB / 26.93 MB, free: 3.117 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.001103/0.001103, allocations: 193.1 kB / 29.62 MB, free: 444 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.289/1.289, 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.01308/0.01308, allocations: 3.127 MB / 310.1 MB, free: 2.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 87.86 kB / 428.6 MB, free: 16.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.08161, allocations: 51.98 MB / 480.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.0101/0.09174, allocations: 9.248 MB / 489.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006096/0.09786, allocations: 4.008 MB / 493.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006776/0.09856, allocations: 47.75 kB / 493.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.0996, allocations: 0.668 MB / 494.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.1009, allocations: 0.7531 MB / 495.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002616/0.1035, allocations: 1.584 MB / 496.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002582/0.1061, allocations: 2.878 MB / 499.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.1077, allocations: 1.352 MB / 0.4894 GB, free: 7.812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001196/0.1089, allocations: 1.172 MB / 0.4906 GB, free: 6.637 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.1102, allocations: 1.319 MB / 0.4918 GB, free: 5.312 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003832/0.1106, allocations: 308 kB / 0.4921 GB, free: 5.012 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007115/0.1113, allocations: 483.8 kB / 0.4926 GB, free: 4.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006047/0.112, allocations: 0.7672 MB / 0.4933 GB, free: 3.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.113, allocations: 1.391 MB / 0.4947 GB, free: 2.371 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003104/0.1162, allocations: 3.625 MB / 0.4982 GB, free: 14.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1162, allocations: 0 / 0.4982 GB, free: 14.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1162, allocations: 0 / 0.4982 GB, free: 14.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.904e-05/0.1162, allocations: 0 / 0.4982 GB, free: 14.73 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: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.004959/0.1212, allocations: 3.169 MB / 0.5013 GB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.1212, allocations: 8.031 kB / 0.5013 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005022/0.1217, allocations: 304.4 kB / 0.5016 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002215/0.124, allocations: 1.559 MB / 0.5032 GB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.1241, allocations: 177.6 kB / 0.5033 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.1244, allocations: 215.9 kB / 0.5035 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003662/0.1281, allocations: 2.145 MB / 0.5056 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/0.1281, allocations: 7.906 kB / 0.5056 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/0.1283, allocations: 84 kB / 0.5057 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.393e-05/0.1284, allocations: 51.94 kB / 0.5058 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003044/0.1314, allocations: 1.487 MB / 0.5072 GB, free: 5.312 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.1811/0.3126, allocations: 7.387 MB / 0.5144 GB, free: 36.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002915/0.3155, allocations: 1.264 MB / 0.5157 GB, free: 36.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/0.3169, allocations: 0.6915 MB / 0.5163 GB, free: 36.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.28e-05/0.317, allocations: 19.81 kB / 0.5164 GB, free: 36.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001535/0.3185, allocations: 0.7821 MB / 0.5171 GB, free: 35.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.747e-06/0.3185, allocations: 0 / 0.5171 GB, free: 35.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01046/0.329, allocations: 5.57 MB / 0.5226 GB, free: 33.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.3291, allocations: 0.6392 MB / 0.5232 GB, free: 32.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/0.3318, allocations: 2.135 MB / 0.5253 GB, free: 31.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.3319, allocations: 63.94 kB / 0.5253 GB, free: 31.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000643/0.3326, allocations: 1.062 MB / 0.5264 GB, free: 31.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.3329, allocations: 486 kB / 0.5268 GB, free: 30.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004118/0.3333, allocations: 272.9 kB / 0.5271 GB, free: 30.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.115e-05/0.3333, allocations: 303.1 kB / 0.5274 GB, free: 30.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.3345, allocations: 0.5534 MB / 0.5279 GB, free: 30.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.3358, allocations: 0.9582 MB / 0.5289 GB, free: 29.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005728/0.3416, allocations: 2.879 MB / 0.5317 GB, free: 27.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3416, allocations: 2.75 kB / 0.5317 GB, free: 27.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.003954/0.3456, allocations: 2.12 MB / 0.5337 GB, free: 26.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.299e-05/0.3456, allocations: 124.9 kB / 0.5339 GB, free: 26.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.3456, allocations: 14.84 kB / 0.5339 GB, free: 26.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007245/0.3464, allocations: 280.9 kB / 0.5341 GB, free: 26.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.3474, allocations: 296.8 kB / 0.5344 GB, free: 26.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/0.3492, allocations: 2.561 MB / 0.5369 GB, free: 24.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.3506, allocations: 162.2 kB / 0.5371 GB, free: 24.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.3507, allocations: 66.28 kB / 0.5371 GB, free: 24.16 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.001357/0.352, allocations: 0.9222 MB / 0.538 GB, free: 23.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008749/0.3529, allocations: 0.8498 MB / 0.5389 GB, free: 23.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004371/0.3573, allocations: 2.613 MB / 0.5414 GB, free: 21.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.93e-06/0.3573, allocations: 5.641 kB / 0.5414 GB, free: 21.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=187) (initialization_lambda0): time 0.002595/0.3599, allocations: 1.858 MB / 0.5433 GB, free: 20.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.695e-05/0.36, allocations: 120.7 kB / 0.5434 GB, free: 20.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.36, allocations: 6.938 kB / 0.5434 GB, free: 20.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005695/0.3606, allocations: 272.7 kB / 0.5436 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008406/0.3614, allocations: 263 kB / 0.5439 GB, free: 20.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.3627, allocations: 2.476 MB / 0.5463 GB, free: 17.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.364, allocations: 152.8 kB / 0.5464 GB, free: 17.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.114e-05/0.3641, allocations: 63.8 kB / 0.5465 GB, free: 17.91 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 (159): * Single equations (assignments): 153 * 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.0003604/0.3645, allocations: 423.9 kB / 0.5469 GB, free: 17.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.3647, allocations: 204.4 kB / 0.5471 GB, free: 17.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/0.3677, allocations: 1.838 MB / 0.5489 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.3677, allocations: 3.984 kB / 0.5489 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3677, allocations: 4.922 kB / 0.5489 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005611/0.3683, allocations: 418.6 kB / 0.5493 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002419/0.3685, allocations: 47.98 kB / 0.5494 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.3697, allocations: 147.8 kB / 0.5495 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.3699, allocations: 109.2 kB / 0.5496 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004054/0.3739, allocations: 2.117 MB / 0.5517 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00354/0.3775, allocations: 2.481 MB / 0.5541 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000996/0.3785, allocations: 0.6544 MB / 0.5547 GB, free: 9.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00143/0.3799, allocations: 1.505 MB / 0.5562 GB, free: 8.297 MB / 382.1 MB Notification: Performance of Backend: time 6.02e-07/0.38, allocations: 0 / 0.5562 GB, free: 8.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006234/0.3862, allocations: 3.699 MB / 0.5598 GB, free: 5.047 MB / 382.1 MB Notification: Performance of SimCode: time 0.005588/0.3918, allocations: 5.451 MB / 0.5651 GB, free: 15.53 MB / 398.1 MB Notification: Performance of Templates: time 0.04898/0.4408, allocations: 34.86 MB / 0.5992 GB, free: 12.79 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)