Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.EV.FirstEVpow.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.EV.FirstEVpow,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.FirstEVpow") translateModel(EHPTexamples.EV.FirstEVpow,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.EV.FirstEVpow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.07149/0.07149, allocations: 8.032 MB / 23 MB, free: 0.5664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008966/0.0008968, allocations: 94.91 kB / 25.56 MB, free: 3.793 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.00125/0.00125, allocations: 185.4 kB / 28.23 MB, free: 1.133 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.501/1.501, allocations: 223.3 MB / 254 MB, free: 5.707 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01195/0.01195, allocations: 3.121 MB / 310 MB, free: 0.8945 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005349/0.0005354, allocations: 16 kB / 374.8 MB, free: 68 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.293, allocations: 52.97 MB / 427.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.003763/0.2968, allocations: 2.813 MB / 430.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003346/0.3002, allocations: 2.028 MB / 432.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002954/0.3005, allocations: 8 kB / 432.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.3009, allocations: 75.47 kB / 432.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003255/0.3012, allocations: 127.2 kB / 432.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007144/0.302, allocations: 311.8 kB / 433.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004953/0.3025, allocations: 0.5762 MB / 433.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.3027, allocations: 132.4 kB / 433.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000234/0.303, allocations: 231.1 kB / 434 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/0.3033, allocations: 223 kB / 434.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.856e-05/0.3033, allocations: 24 kB / 434.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.3036, allocations: 123.9 kB / 434.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.349e-05/0.3036, allocations: 91.64 kB / 434.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.1e-05/0.3037, allocations: 113.4 kB / 434.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003809/0.3041, allocations: 0.4973 MB / 435.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3041, allocations: 3.938 kB / 435.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3041, allocations: 3.984 kB / 435.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.3041, allocations: 0 / 435.1 MB, free: 13.14 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001219/0.3054, allocations: 0.7649 MB / 435.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3054, allocations: 12.03 kB / 435.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.3056, allocations: 59.28 kB / 436 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004505/0.3061, allocations: 371.1 kB / 436.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.018e-05/0.3062, allocations: 54.7 kB / 436.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.3062, allocations: 44 kB / 436.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007768/0.307, allocations: 0.4936 MB / 436.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.307, allocations: 0 / 436.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.3071, allocations: 19.95 kB / 436.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3071, allocations: 8 kB / 436.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006906/0.3078, allocations: 375.8 kB / 437.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.3098, allocations: 1.468 MB / 438.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009429/0.3108, allocations: 445.7 kB / 439.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.3111, allocations: 169.3 kB / 439.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.3112, allocations: 8.234 kB / 439.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000498/0.3117, allocations: 258.2 kB / 439.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 2.304e-06/0.3117, allocations: 0 / 439.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.004031/0.3158, allocations: 1.907 MB / 441.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.782e-05/0.3159, allocations: 166 kB / 441.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.3162, allocations: 328.5 kB / 442 MB, free: 5.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.3163, allocations: 37.7 kB / 442.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.3165, allocations: 220.4 kB / 442.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.13e-05/0.3166, allocations: 142 kB / 442.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.3166, allocations: 8 kB / 442.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3167, allocations: 350.8 kB / 442.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.3171, allocations: 169 kB / 442.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003711/0.3174, allocations: 292.6 kB / 443.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.3178, allocations: 160 kB / 443.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3178, allocations: 0 / 443.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001137/0.3189, allocations: 0.6027 MB / 444 MB, free: 3.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.394e-05/0.319, allocations: 148 kB / 444.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.319, allocations: 4 kB / 444.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000401/0.3194, allocations: 160.8 kB / 444.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.3197, allocations: 91.88 kB / 444.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005334/0.3203, allocations: 0.7155 MB / 445.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003592/0.3206, allocations: 76 kB / 445.2 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.3207, allocations: 16 kB / 445.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.158e-06/0.3207, allocations: 7.938 kB / 445.2 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008251/0.3215, allocations: 467.9 kB / 445.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.3215, allocations: 0 / 445.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.3219, allocations: 168.9 kB / 445.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.3221, allocations: 67.91 kB / 445.9 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004924/0.3226, allocations: 0.7046 MB / 446.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.3229, allocations: 60 kB / 446.6 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.021e-05/0.3229, allocations: 16 kB / 446.6 MB, free: 1.074 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 14 (driver.dummy,$whenCondition1,$PRE.driver.driveCyc.nextTimeEvent,$PRE.dragF.startForward,dragF.startForward,$PRE.dragF.startBackward,dragF.startBackward,dragF.locked,$PRE.dragF.mode,dragF.mode,driver.driveCyc.nextTimeEvent,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEventScaled,dragF.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002459/0.3232, allocations: 265.5 kB / 446.9 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.3232, allocations: 43.52 kB / 446.9 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.3234, allocations: 48.41 kB / 447 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3234, allocations: 4 kB / 447 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/0.3234, allocations: 8 kB / 447 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3234, allocations: 0 / 447 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.3256, allocations: 1.208 MB / 448.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3256, allocations: 0 / 448.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.3259, allocations: 79.98 kB / 448.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003626/0.3263, allocations: 144.7 kB / 448.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.082e-05/0.3264, allocations: 23.94 kB / 448.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007846/0.3272, allocations: 0.6655 MB / 449.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3272, allocations: 4.031 kB / 449.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.3289, allocations: 0.8489 MB / 450 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.3291, allocations: 164.5 kB / 450.1 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-05/0.3292, allocations: 12 kB / 450.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003969/0.3296, allocations: 79.98 kB / 450.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.3298, allocations: 63.88 kB / 450.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.3298, allocations: 19.98 kB / 450.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.3301, allocations: 231.1 kB / 450.5 MB, free: 13.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3301, allocations: 0 / 450.5 MB, free: 13.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007101/0.3308, allocations: 180 kB / 450.7 MB, free: 12.85 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (dragF.s,dragF.v) * Number of discrete variables: 7 ($whenCondition1,dragF.startForward,dragF.startBackward,dragF.locked,dragF.mode,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled) * Number of discrete states: 5 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,dragF.mode,dragF.startForward,dragF.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001235/0.3321, allocations: 493.3 kB / 451.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.3338, allocations: 0.6806 MB / 451.9 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3338, allocations: 0 / 451.9 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.3344, allocations: 256 kB / 452.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007618/0.3351, allocations: 92 kB / 452.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.3375, allocations: 1.234 MB / 453.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.338, allocations: 0.8201 MB / 454.3 MB, free: 9.406 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002642/0.3383, allocations: 55.25 kB / 454.3 MB, free: 9.352 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.3384, allocations: 39.42 kB / 454.4 MB, free: 9.312 MB / 318.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3384, allocations: 4 kB / 454.4 MB, free: 9.309 MB / 318.1 MB Notification: Performance of Templates: time 0.01434/0.3527, allocations: 8.691 MB / 463.1 MB, free: 0.6602 MB / 318.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.EV.FirstEVpow.makefile (rm -f EHPTexamples_main_EHPTexamples.EV.FirstEVpow.pipe ; mkfifo EHPTexamples_main_EHPTexamples.EV.FirstEVpow.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.EV.FirstEVpow.pipe >> ../files/EHPTexamples_main_EHPTexamples.EV.FirstEVpow.sim & ./EHPTexamples_main_EHPTexamples.EV.FirstEVpow -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.EV.FirstEVpow.pipe 2>&1)