Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4/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/package.mo) Running command: translateModel(EHPTexamples.SHEV.SHEV_OO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO") translateModel(EHPTexamples.SHEV.SHEV_OO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4/package.mo): time 0.05375/0.05375, allocations: 8.036 MB / 24.34 MB, free: 412 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.0009358/0.0009358, allocations: 112.1 kB / 26.93 MB, free: 3.121 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.001072/0.001072, allocations: 203.9 kB / 29.63 MB, free: 448 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.292/1.292, allocations: 222.9 MB / 255.1 MB, free: 4.688 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01303/0.01303, allocations: 3.127 MB / 310.1 MB, free: 2.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 96.22 kB / 427.6 MB, free: 17.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07868/0.08048, allocations: 51.97 MB / 479.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.SHEV.SHEV_OO): time 0.01203/0.09256, allocations: 10.42 MB / 490 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008058/0.1006, allocations: 4.574 MB / 494.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.1023, allocations: 55.81 kB / 494.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.104, allocations: 0.5933 MB / 495.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002458/0.1065, allocations: 0.7565 MB / 496 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004093/0.1106, allocations: 1.99 MB / 498 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004094/0.1147, allocations: 3.408 MB / 0.4896 GB, free: 7.758 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002145/0.1169, allocations: 1.424 MB / 0.491 GB, free: 6.273 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001665/0.1186, allocations: 1.269 MB / 0.4922 GB, free: 5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001868/0.1205, allocations: 1.369 MB / 0.4936 GB, free: 3.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005453/0.121, allocations: 368 kB / 0.4939 GB, free: 3.266 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001004/0.122, allocations: 0.5701 MB / 0.4945 GB, free: 2.695 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006276/0.1227, allocations: 0.7945 MB / 0.4953 GB, free: 1.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001328/0.124, allocations: 1.493 MB / 0.4967 GB, free: 408 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004238/0.1283, allocations: 4.056 MB / 0.5007 GB, free: 12.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.892e-06/0.1283, allocations: 0 / 0.5007 GB, free: 12.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1283, allocations: 4 kB / 0.5007 GB, free: 12.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.537e-05/0.1283, allocations: 4 kB / 0.5007 GB, free: 12.32 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.005773/0.1341, allocations: 3.291 MB / 0.5039 GB, free: 8.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.1342, allocations: 8.031 kB / 0.5039 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007831/0.135, allocations: 326.2 kB / 0.5042 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/0.1376, allocations: 1.653 MB / 0.5058 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.1378, allocations: 193.8 kB / 0.506 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002871/0.138, allocations: 216 kB / 0.5062 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003923/0.142, allocations: 2.368 MB / 0.5085 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.351e-05/0.142, allocations: 3.953 kB / 0.5085 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001857/0.1422, allocations: 99.94 kB / 0.5086 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.792e-05/0.1423, allocations: 48 kB / 0.5087 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003392/0.1457, allocations: 1.675 MB / 0.5103 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.193/0.3387, allocations: 8.095 MB / 0.5182 GB, free: 36.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003417/0.3421, allocations: 1.975 MB / 0.5202 GB, free: 35.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.3435, allocations: 0.7435 MB / 0.5209 GB, free: 34.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.413e-05/0.3436, allocations: 23.94 kB / 0.5209 GB, free: 34.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001559/0.3451, allocations: 0.8509 MB / 0.5217 GB, free: 34.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=135): time 3.036e-06/0.3452, allocations: 3.344 kB / 0.5217 GB, free: 34.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01084/0.356, allocations: 5.677 MB / 0.5273 GB, free: 31.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.3562, allocations: 0.7874 MB / 0.528 GB, free: 30.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002393/0.3586, allocations: 1.909 MB / 0.5299 GB, free: 29.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.3587, allocations: 64.97 kB / 0.53 GB, free: 29.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006649/0.3594, allocations: 1.077 MB / 0.531 GB, free: 29.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002878/0.3597, allocations: 0.5165 MB / 0.5315 GB, free: 28.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004416/0.3601, allocations: 283.6 kB / 0.5318 GB, free: 28.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.266e-05/0.3601, allocations: 306.4 kB / 0.5321 GB, free: 28.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.3613, allocations: 0.5973 MB / 0.5327 GB, free: 28.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.3628, allocations: 1.052 MB / 0.5337 GB, free: 27.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005769/0.3685, allocations: 3.059 MB / 0.5367 GB, free: 25.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.3686, allocations: 3.969 kB / 0.5367 GB, free: 25.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003442/0.372, allocations: 2.039 MB / 0.5387 GB, free: 24.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.322e-05/0.3721, allocations: 122.6 kB / 0.5388 GB, free: 24.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3721, allocations: 7.875 kB / 0.5388 GB, free: 24.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004848/0.3726, allocations: 211 kB / 0.539 GB, free: 24.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.3738, allocations: 345.9 kB / 0.5393 GB, free: 24.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.3751, allocations: 2.253 MB / 0.5415 GB, free: 21.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.3765, allocations: 185 kB / 0.5417 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.3766, allocations: 60.42 kB / 0.5418 GB, free: 21.87 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: mass.s:VARIABLE(start = 0.0 unit = "m" fixed = true ) "Absolute position of center of component (s = flange_a.s + L/2 = flange_b.s - L/2)" type: Real genset.mbIce.inertia.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" type: Real mass.v:VARIABLE(start = 0.0 unit = "m/s" fixed = true ) "Absolute velocity of component" type: Real battery.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real ems.powFilt.y:VARIABLE(flow=false start = ems.powFilt.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001463/0.378, allocations: 0.9454 MB / 0.5427 GB, free: 21.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009111/0.379, allocations: 0.923 MB / 0.5436 GB, free: 20.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004301/0.3833, allocations: 2.721 MB / 0.5463 GB, free: 18.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.859e-06/0.3833, allocations: 2.938 kB / 0.5463 GB, free: 18.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=192) (initialization_lambda0): time 0.002605/0.3859, allocations: 1.796 MB / 0.548 GB, free: 16.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.386, allocations: 126.8 kB / 0.5481 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.386, allocations: 9.219 kB / 0.5481 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004333/0.3864, allocations: 212.7 kB / 0.5483 GB, free: 16.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009357/0.3874, allocations: 295.5 kB / 0.5486 GB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.3886, allocations: 2.256 MB / 0.5508 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.3899, allocations: 168.4 kB / 0.551 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.15e-05/0.39, allocations: 60 kB / 0.551 GB, free: 13.62 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: mass.s:VARIABLE(start = 0.0 unit = "m" fixed = true ) "Absolute position of center of component (s = flange_a.s + L/2 = flange_b.s - L/2)" type: Real genset.mbIce.inertia.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" type: Real mass.v:VARIABLE(start = 0.0 unit = "m/s" fixed = true ) "Absolute velocity of component" type: Real battery.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real ems.powFilt.y:VARIABLE(flow=false start = ems.powFilt.y_start fixed = true ) "Connector of Real output signal" 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: 21 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,$PRE.ems.powHyst.y,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,genset.gen.limTau.state,ems.powHyst.y,drive.limTau.state,dragForce.mode,$PRE.dragForce.mode,dragForce.locked,dragForce.startBackward,$PRE.dragForce.startBackward,dragForce.startForward,$PRE.dragForce.startForward,genset.toGrams.local_reset,genset.gen.constPDC.integrator1.local_reset,drive.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (173): * Single equations (assignments): 167 * 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004552/0.3905, allocations: 428 kB / 0.5515 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002636/0.3908, allocations: 215.8 kB / 0.5517 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00325/0.394, allocations: 1.837 MB / 0.5535 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.3941, allocations: 7.922 kB / 0.5535 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3941, allocations: 4 kB / 0.5535 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005253/0.3946, allocations: 447.6 kB / 0.5539 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/0.3948, allocations: 43.98 kB / 0.5539 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.396, allocations: 167.8 kB / 0.5541 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.3962, allocations: 121.1 kB / 0.5542 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003732/0.3999, allocations: 2.103 MB / 0.5563 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003837/0.4038, allocations: 2.669 MB / 0.5589 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001102/0.4049, allocations: 0.7325 MB / 0.5596 GB, free: 4.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001423/0.4063, allocations: 1.323 MB / 0.5609 GB, free: 3.379 MB / 382.1 MB Notification: Performance of Backend: time 1.062e-06/0.4063, allocations: 0 / 0.5609 GB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006746/0.4131, allocations: 3.894 MB / 0.5647 GB, free: 15.98 MB / 398.1 MB Notification: Performance of SimCode: time 0.006704/0.4198, allocations: 5.038 MB / 0.5696 GB, free: 10.88 MB / 398.1 MB Notification: Performance of Templates: time 0.0548/0.4746, allocations: 37.22 MB / 0.6059 GB, free: 5.785 MB / 430.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.makefile (rm -f EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe >> ../files/EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.sim & ./EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.SHEV.SHEV_OO.pipe 2>&1)