Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_latest_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_latest_EHPTexamples.PSD.PSecu2PA") translateModel(EHPTexamples.PSD.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.06921/0.06921, allocations: 8.034 MB / 24.34 MB, free: 388 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.001362/0.001362, allocations: 104.7 kB / 26.93 MB, free: 3.098 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.001708/0.001708, allocations: 198.2 kB / 29.63 MB, free: 424 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.356/1.356, allocations: 222.9 MB / 255.1 MB, free: 4.672 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01289/0.01289, allocations: 3.13 MB / 310.1 MB, free: 2.328 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 99.83 kB / 428.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08234/0.08407, allocations: 51.98 MB / 480.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2PA): time 0.01032/0.09443, allocations: 9.342 MB / 490 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006268/0.1007, allocations: 3.985 MB / 493.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007986/0.1015, allocations: 43.81 kB / 494 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.1026, allocations: 0.6796 MB / 494.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001318/0.104, allocations: 0.7491 MB / 495.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002647/0.1067, allocations: 1.549 MB / 497 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002426/0.1091, allocations: 2.894 MB / 499.9 MB, free: 9.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001575/0.1107, allocations: 1.364 MB / 0.4895 GB, free: 7.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.1118, allocations: 1.16 MB / 0.4906 GB, free: 6.602 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.113, allocations: 1.319 MB / 0.4919 GB, free: 5.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003681/0.1134, allocations: 312 kB / 0.4922 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006945/0.1141, allocations: 483.8 kB / 0.4927 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005946/0.1147, allocations: 0.7633 MB / 0.4934 GB, free: 3.734 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.1158, allocations: 1.395 MB / 0.4948 GB, free: 2.332 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003007/0.1188, allocations: 3.637 MB / 0.4983 GB, free: 14.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1188, allocations: 0 / 0.4983 GB, free: 14.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1188, allocations: 0 / 0.4983 GB, free: 14.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.201e-05/0.1189, allocations: 0 / 0.4983 GB, free: 14.68 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.004992/0.1239, allocations: 3.165 MB / 0.5014 GB, free: 11.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1239, allocations: 8.031 kB / 0.5014 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004874/0.1244, allocations: 312.3 kB / 0.5017 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002149/0.1266, allocations: 1.552 MB / 0.5032 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.1267, allocations: 185.7 kB / 0.5034 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000274/0.127, allocations: 215.8 kB / 0.5036 GB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003602/0.1306, allocations: 2.137 MB / 0.5057 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.805e-05/0.1307, allocations: 11.84 kB / 0.5057 GB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001822/0.1309, allocations: 92 kB / 0.5058 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.403e-05/0.1309, allocations: 51.98 kB / 0.5058 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002922/0.1339, allocations: 1.471 MB / 0.5073 GB, free: 5.277 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.1865/0.3204, allocations: 7.42 MB / 0.5145 GB, free: 36.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002815/0.3232, allocations: 1.291 MB / 0.5158 GB, free: 36.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.3245, allocations: 0.6879 MB / 0.5165 GB, free: 36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.008e-05/0.3246, allocations: 24.38 kB / 0.5165 GB, free: 36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001478/0.3261, allocations: 0.78 MB / 0.5172 GB, free: 35.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 4.008e-06/0.3261, allocations: 0.625 kB / 0.5172 GB, free: 35.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=141): time 0.01037/0.3365, allocations: 5.565 MB / 0.5227 GB, free: 33.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.3367, allocations: 0.5797 MB / 0.5233 GB, free: 32.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002813/0.3395, allocations: 2.145 MB / 0.5253 GB, free: 31.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.3396, allocations: 57.95 kB / 0.5254 GB, free: 31.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006956/0.3403, allocations: 1.074 MB / 0.5264 GB, free: 30.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002926/0.3406, allocations: 494.2 kB / 0.5269 GB, free: 30.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004088/0.341, allocations: 273 kB / 0.5272 GB, free: 30.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.639e-05/0.3411, allocations: 302.6 kB / 0.5275 GB, free: 30.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.3422, allocations: 0.545 MB / 0.528 GB, free: 29.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.3435, allocations: 0.9341 MB / 0.5289 GB, free: 29.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005767/0.3493, allocations: 2.884 MB / 0.5317 GB, free: 27.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.3493, allocations: 2.125 kB / 0.5317 GB, free: 27.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003924/0.3532, allocations: 2.116 MB / 0.5338 GB, free: 26.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.565e-05/0.3533, allocations: 122.9 kB / 0.5339 GB, free: 26.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.3533, allocations: 7.672 kB / 0.5339 GB, free: 26.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007713/0.3541, allocations: 289.3 kB / 0.5342 GB, free: 26.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.3551, allocations: 290.5 kB / 0.5345 GB, free: 26.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.3569, allocations: 2.535 MB / 0.537 GB, free: 24.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.3582, allocations: 146.4 kB / 0.5371 GB, free: 24.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.3583, allocations: 63.11 kB / 0.5372 GB, free: 24.11 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.001421/0.3598, allocations: 0.9282 MB / 0.5381 GB, free: 23.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008556/0.3606, allocations: 0.8466 MB / 0.5389 GB, free: 23.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004437/0.3651, allocations: 2.646 MB / 0.5415 GB, free: 21.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.49e-06/0.3651, allocations: 3.906 kB / 0.5415 GB, free: 21.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization_lambda0): time 0.00276/0.3679, allocations: 1.886 MB / 0.5433 GB, free: 20.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.3679, allocations: 127.8 kB / 0.5434 GB, free: 20.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.3679, allocations: 9.609 kB / 0.5434 GB, free: 20.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005782/0.3685, allocations: 281.9 kB / 0.5437 GB, free: 20.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000847/0.3694, allocations: 257.7 kB / 0.544 GB, free: 20.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.3708, allocations: 2.444 MB / 0.5463 GB, free: 17.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.3721, allocations: 152.5 kB / 0.5465 GB, free: 17.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.949e-05/0.3722, allocations: 62.05 kB / 0.5466 GB, free: 17.87 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.0004192/0.3726, allocations: 419.1 kB / 0.547 GB, free: 17.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.3729, allocations: 204.5 kB / 0.5471 GB, free: 17.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00297/0.3758, allocations: 1.835 MB / 0.5489 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.3759, allocations: 7.969 kB / 0.5489 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.3759, allocations: 0 / 0.5489 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005865/0.3765, allocations: 422.5 kB / 0.5493 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002541/0.3767, allocations: 40 kB / 0.5494 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.3779, allocations: 139.9 kB / 0.5495 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.3781, allocations: 121.1 kB / 0.5496 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00405/0.3821, allocations: 2.107 MB / 0.5517 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003525/0.3857, allocations: 2.466 MB / 0.5541 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009826/0.3867, allocations: 0.6505 MB / 0.5547 GB, free: 9.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001473/0.3881, allocations: 1.502 MB / 0.5562 GB, free: 8.387 MB / 382.1 MB Notification: Performance of Backend: time 2.51e-07/0.3881, allocations: 4 kB / 0.5562 GB, free: 8.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006427/0.3946, allocations: 3.709 MB / 0.5598 GB, free: 5.121 MB / 382.1 MB Notification: Performance of SimCode: time 0.005874/0.4005, allocations: 5.491 MB / 0.5652 GB, free: 15.55 MB / 398.1 MB Notification: Performance of Templates: time 0.0523/0.4528, allocations: 34.62 MB / 0.599 GB, free: 13.06 MB / 430.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.makefile (rm -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe >> ../files/EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.sim & ./EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe 2>&1)