Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt.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.SHEVpowerFilt,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt") translateModel(EHPTexamples.SHEV.SHEVpowerFilt,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04252/0.04252, allocations: 8.017 MB / 24.16 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.0009502/0.0009503, allocations: 107.8 kB / 26.73 MB, free: 3.289 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.001276/0.001276, allocations: 184 kB / 29.4 MB, free: 0.6211 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.269/1.269, allocations: 222.9 MB / 254.8 MB, free: 4.855 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01231/0.01231, allocations: 3.118 MB / 309.9 MB, free: 2.43 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 91.86 kB / 374.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1723, allocations: 51.97 MB / 426.2 MB, free: 21.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.SHEV.SHEVpowerFilt): time 0.00769/0.18, allocations: 10.02 MB / 436.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.1856, allocations: 4.441 MB / 440.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009136/0.1865, allocations: 47.81 kB / 440.7 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00084/0.1874, allocations: 0.496 MB / 441.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001109/0.1886, allocations: 0.6826 MB / 441.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002607/0.1912, allocations: 1.893 MB / 443.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001962/0.1932, allocations: 3.189 MB / 447 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001378/0.1945, allocations: 1.348 MB / 448.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.1957, allocations: 1.18 MB / 449.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.1969, allocations: 1.256 MB / 450.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003671/0.1972, allocations: 348 kB / 451.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007556/0.198, allocations: 0.5311 MB / 451.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005297/0.1985, allocations: 0.7283 MB / 452.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.1996, allocations: 1.384 MB / 453.7 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002865/0.2024, allocations: 3.677 MB / 457.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2024, allocations: 7.984 kB / 457.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2025, allocations: 0 / 457.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.409e-05/0.2025, allocations: 0 / 457.4 MB, free: 6.121 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: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.004572/0.2071, allocations: 2.993 MB / 460.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2071, allocations: 8.031 kB / 460.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004959/0.2076, allocations: 289.4 kB / 460.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/0.2095, allocations: 1.458 MB / 462.2 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.2097, allocations: 181.6 kB / 462.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002682/0.2099, allocations: 207.9 kB / 462.5 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003461/0.2134, allocations: 2.231 MB / 464.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.589e-05/0.2135, allocations: 0 / 464.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001625/0.2136, allocations: 88 kB / 464.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.245e-05/0.2137, allocations: 48 kB / 464.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002972/0.2166, allocations: 1.584 MB / 466.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009954/0.2266, allocations: 7.767 MB / 474.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/0.2293, allocations: 1.718 MB / 476 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/0.2306, allocations: 0.7086 MB / 476.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.523e-05/0.2307, allocations: 16.94 kB / 476.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001435/0.2321, allocations: 0.8176 MB / 477.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 2.625e-06/0.2321, allocations: 3.938 kB / 477.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.009864/0.242, allocations: 5.391 MB / 482.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002678/0.2423, allocations: 0.7314 MB / 483.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001948/0.2442, allocations: 1.588 MB / 485.2 MB, free: 9.297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.2444, allocations: 65.69 kB / 485.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006997/0.2451, allocations: 0.9653 MB / 486.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003391/0.2454, allocations: 481.1 kB / 486.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004139/0.2458, allocations: 279.4 kB / 487 MB, free: 7.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.873e-05/0.2459, allocations: 301.1 kB / 487.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.2471, allocations: 0.567 MB / 487.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.2485, allocations: 0.9906 MB / 488.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005777/0.2543, allocations: 2.958 MB / 491.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.2543, allocations: 4 kB / 491.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003529/0.2578, allocations: 1.929 MB / 493.8 MB, free: 344 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.792e-05/0.2579, allocations: 126.7 kB / 493.9 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.2579, allocations: 11.94 kB / 493.9 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005366/0.2585, allocations: 209.9 kB / 494.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.2596, allocations: 331.6 kB / 494.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001746/0.2614, allocations: 2.269 MB / 496.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.2627, allocations: 159.9 kB / 496.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.2628, allocations: 59.98 kB / 496.9 MB, free: 12.99 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.mBiceT.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 powFilt.y:VARIABLE(flow=false start = powFilt.y_start fixed = true ) "Connector of Real output signal" 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 Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001491/0.2643, allocations: 0.8718 MB / 497.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001082/0.2654, allocations: 0.8735 MB / 498.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004716/0.2701, allocations: 2.666 MB / 0.4896 GB, free: 8.219 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.014e-06/0.2701, allocations: 7.938 kB / 0.4896 GB, free: 8.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization_lambda0): time 0.002861/0.273, allocations: 1.722 MB / 0.4912 GB, free: 6.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.228e-05/0.2731, allocations: 118.8 kB / 0.4914 GB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.2731, allocations: 16.3 kB / 0.4914 GB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004834/0.2736, allocations: 205.6 kB / 0.4916 GB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009379/0.2745, allocations: 291.5 kB / 0.4919 GB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.2764, allocations: 2.252 MB / 0.4941 GB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.2777, allocations: 155.9 kB / 0.4942 GB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.486e-05/0.2778, allocations: 52 kB / 0.4942 GB, free: 3.18 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.mBiceT.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 powFilt.y:VARIABLE(flow=false start = powFilt.y_start fixed = true ) "Connector of Real output signal" 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 19 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,drive.limTau.state,genset.gen.limTau.state,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,dragForce.mode,$PRE.dragForce.mode,dragForce.locked,dragForce.startBackward,$PRE.dragForce.startBackward,dragForce.startForward,$PRE.dragForce.startForward,drive.constPDC.integrator1.local_reset,genset.toGrams.local_reset,genset.gen.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 160 * 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.0005393/0.2783, allocations: 441.8 kB / 0.4947 GB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003052/0.2787, allocations: 177.9 kB / 0.4948 GB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/0.2822, allocations: 1.722 MB / 0.4965 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/0.2822, allocations: 11.91 kB / 0.4965 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2822, allocations: 0 / 0.4965 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000686/0.2829, allocations: 402.8 kB / 0.4969 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/0.2831, allocations: 36 kB / 0.497 GB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.2842, allocations: 159.8 kB / 0.4971 GB, free: 168 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.2844, allocations: 109.2 kB / 0.4972 GB, free: 60 kB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004075/0.2885, allocations: 2.038 MB / 0.4992 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004276/0.2928, allocations: 2.528 MB / 0.5017 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001189/0.294, allocations: 0.6824 MB / 0.5023 GB, free: 10.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001518/0.2955, allocations: 1.111 MB / 0.5034 GB, free: 9.566 MB / 382.1 MB Notification: Performance of Backend: time 2.41e-07/0.2955, allocations: 0 / 0.5034 GB, free: 9.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007184/0.3027, allocations: 3.632 MB / 0.507 GB, free: 6.316 MB / 382.1 MB Notification: Performance of SimCode: time 0.006547/0.3093, allocations: 4.675 MB / 0.5115 GB, free: 1.547 MB / 382.1 MB Notification: Performance of Templates: time 0.193/0.5023, allocations: 34.36 MB / 0.5451 GB, free: 66.52 MB / 382.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt.makefile (rm -f EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt.pipe ; mkfifo EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt.pipe >> ../files/EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt.sim & ./EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.SHEV.SHEVpowerFilt.pipe 2>&1)