Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO.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.SHEV.SHEV_OO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO") translateModel(EHPTexamples.SHEV.SHEV_OO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.03911/0.03911, allocations: 8.009 MB / 24.15 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.0009403/0.0009404, allocations: 103.8 kB / 26.72 MB, free: 3.281 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.001197/0.001197, allocations: 191.9 kB / 29.42 MB, free: 0.6016 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 254.8 MB, free: 4.797 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01243/0.01243, allocations: 3.116 MB / 309.9 MB, free: 2.395 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 87.84 kB / 374.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.183, allocations: 51.97 MB / 426.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.SHEV.SHEV_OO): time 0.008393/0.1914, allocations: 10.4 MB / 436.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006885/0.1983, allocations: 4.569 MB / 441.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001787/0.2001, allocations: 51.81 kB / 441.2 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.2013, allocations: 0.6012 MB / 441.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001631/0.203, allocations: 0.7486 MB / 442.6 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002944/0.2059, allocations: 1.975 MB / 444.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002545/0.2085, allocations: 3.361 MB / 447.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.2102, allocations: 1.44 MB / 449.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/0.2115, allocations: 1.254 MB / 450.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.2128, allocations: 1.369 MB / 452 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003996/0.2132, allocations: 368 kB / 452.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008164/0.214, allocations: 0.5661 MB / 452.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005883/0.2146, allocations: 0.7984 MB / 453.7 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.2158, allocations: 1.489 MB / 455.2 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003222/0.219, allocations: 3.965 MB / 459.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.219, allocations: 0 / 459.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2191, allocations: 0 / 459.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.609e-05/0.2191, allocations: 0 / 459.2 MB, free: 4.348 MB / 318.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.004964/0.2241, allocations: 3.208 MB / 462.4 MB, free: 1.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.2241, allocations: 12.03 kB / 462.4 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006334/0.2248, allocations: 308.5 kB / 462.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.227, allocations: 1.601 MB / 464.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.2271, allocations: 189.8 kB / 464.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002768/0.2274, allocations: 215.9 kB / 464.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003767/0.2312, allocations: 2.36 MB / 467 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.729e-05/0.2313, allocations: 11.88 kB / 467 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/0.2314, allocations: 99.94 kB / 467.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-05/0.2315, allocations: 48 kB / 467.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003167/0.2347, allocations: 1.671 MB / 468.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01098/0.2457, allocations: 8.179 MB / 477 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003565/0.2492, allocations: 1.981 MB / 479 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/0.2512, allocations: 0.7348 MB / 479.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.2513, allocations: 25.28 kB / 479.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002228/0.2536, allocations: 0.8555 MB / 480.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=135): time 6.693e-06/0.2536, allocations: 0 / 480.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=145): time 0.01431/0.2679, allocations: 5.64 MB / 486.3 MB, free: 8.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003359/0.2683, allocations: 0.7855 MB / 487.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/0.2708, allocations: 1.916 MB / 489 MB, free: 5.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001428/0.2709, allocations: 57.7 kB / 489 MB, free: 5.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008118/0.2717, allocations: 1.064 MB / 490.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003748/0.2721, allocations: 492.9 kB / 490.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004417/0.2726, allocations: 291.4 kB / 490.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.509e-05/0.2727, allocations: 305.1 kB / 491.2 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.2739, allocations: 0.6021 MB / 491.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001551/0.2754, allocations: 1.051 MB / 492.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006072/0.2815, allocations: 3.071 MB / 495.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/0.2816, allocations: 4 kB / 495.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003833/0.2854, allocations: 2.03 MB / 497.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.527e-05/0.2855, allocations: 126.7 kB / 498 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.2855, allocations: 8 kB / 498 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005441/0.2861, allocations: 205.8 kB / 498.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.2873, allocations: 343.5 kB / 498.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.2891, allocations: 2.26 MB / 0.4891 GB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.2906, allocations: 175.8 kB / 0.4893 GB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.2907, allocations: 67.97 kB / 0.4893 GB, free: 8.648 MB / 366.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.001646/0.2924, allocations: 0.9411 MB / 0.4903 GB, free: 7.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001142/0.2935, allocations: 0.922 MB / 0.4912 GB, free: 6.613 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004933/0.2984, allocations: 2.728 MB / 0.4938 GB, free: 3.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.762e-06/0.2985, allocations: 0 / 0.4938 GB, free: 3.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization_lambda0): time 0.003101/0.3016, allocations: 1.784 MB / 0.4956 GB, free: 1.855 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.295e-05/0.3017, allocations: 123.9 kB / 0.4957 GB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3017, allocations: 8 kB / 0.4957 GB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004935/0.3022, allocations: 212.6 kB / 0.4959 GB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.3032, allocations: 295.6 kB / 0.4962 GB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.305, allocations: 2.263 MB / 0.4984 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.3064, allocations: 164.4 kB / 0.4985 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.3065, allocations: 60 kB / 0.4986 GB, free: 14.55 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.0005371/0.307, allocations: 439.9 kB / 0.499 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.3073, allocations: 197.7 kB / 0.4992 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003619/0.311, allocations: 1.848 MB / 0.501 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.311, allocations: 7.969 kB / 0.501 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.311, allocations: 0 / 0.501 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006275/0.3116, allocations: 438.6 kB / 0.5014 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.3119, allocations: 44 kB / 0.5015 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.313, allocations: 167.8 kB / 0.5016 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002492/0.3133, allocations: 129.1 kB / 0.5018 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004201/0.3175, allocations: 2.104 MB / 0.5038 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004597/0.3221, allocations: 2.66 MB / 0.5064 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001298/0.3234, allocations: 0.7286 MB / 0.5071 GB, free: 5.594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001835/0.3253, allocations: 1.327 MB / 0.5084 GB, free: 4.273 MB / 382.1 MB Notification: Performance of Backend: time 6.01e-07/0.3253, allocations: 0 / 0.5084 GB, free: 4.273 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008116/0.3334, allocations: 3.877 MB / 0.5122 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of SimCode: time 0.1567/0.4901, allocations: 5.017 MB / 0.5171 GB, free: 86.64 MB / 382.1 MB Notification: Performance of Templates: time 0.04307/0.5332, allocations: 36.67 MB / 0.5529 GB, free: 59.56 MB / 382.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO.makefile (rm -f EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO.pipe ; mkfifo EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO.pipe >> ../files/EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO.sim & ./EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.SHEV.SHEV_OO.pipe 2>&1)