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 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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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 main/package.mo): time 0.05633/0.05633, allocations: 8.616 MB / 23.57 MB, free: 4.621 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009346/0.0009346, allocations: 92.02 kB / 26.27 MB, free: 2.883 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.001094/0.001094, allocations: 191.3 kB / 29.08 MB, free: 88 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.35/1.35, allocations: 223.2 MB / 255 MB, free: 3.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01164/0.01164, allocations: 3.12 MB / 311.1 MB, free: 1.562 MB / 238.1 MB Warning: Requested package EHPTlib of version 2.1.0, but this package was already loaded with version . OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0006426/0.0006427, allocations: 15.98 kB / 376 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3144, allocations: 53.11 MB / 429.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.002719/0.3172, allocations: 2.708 MB / 431.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.3191, allocations: 1.454 MB / 433.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002219/0.3193, allocations: 12 kB / 433.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.3197, allocations: 75.52 kB / 433.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003011/0.32, allocations: 147.5 kB / 433.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006222/0.3206, allocations: 311.3 kB / 433.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004021/0.321, allocations: 407.1 kB / 434.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002068/0.3212, allocations: 140.4 kB / 434.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.3214, allocations: 219.2 kB / 434.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.3216, allocations: 215 kB / 434.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.3217, allocations: 24 kB / 434.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.3219, allocations: 111.9 kB / 434.9 MB, free: 14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.255e-05/0.322, allocations: 87.66 kB / 435 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.691e-05/0.3221, allocations: 105.5 kB / 435.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004012/0.3225, allocations: 0.4934 MB / 435.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3225, allocations: 0 / 435.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3225, allocations: 0 / 435.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.3225, allocations: 4 kB / 435.6 MB, free: 13.31 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.3237, allocations: 0.7727 MB / 436.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.3238, allocations: 8.031 kB / 436.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.324, allocations: 59.34 kB / 436.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.3245, allocations: 371 kB / 436.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.958e-05/0.3246, allocations: 58.7 kB / 436.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.436e-05/0.3247, allocations: 36 kB / 436.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007631/0.3254, allocations: 0.4936 MB / 437.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3255, allocations: 4 kB / 437.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/0.3255, allocations: 19.95 kB / 437.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.3255, allocations: 8 kB / 437.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006788/0.3262, allocations: 375.8 kB / 437.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.3282, allocations: 1.464 MB / 439.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009035/0.3291, allocations: 444.2 kB / 439.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.3292, allocations: 4.281 kB / 439.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000469/0.3297, allocations: 262.7 kB / 439.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 2.194e-06/0.3297, allocations: 0 / 439.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.003732/0.3334, allocations: 1.915 MB / 441.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.3335, allocations: 166 kB / 442 MB, free: 6.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.3338, allocations: 316.6 kB / 442.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.3338, allocations: 41.69 kB / 442.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3339, allocations: 220.4 kB / 442.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.119e-05/0.334, allocations: 142 kB / 442.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.3341, allocations: 8 kB / 442.7 MB, free: 5.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.053e-05/0.3341, allocations: 350.8 kB / 443.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.3345, allocations: 177 kB / 443.2 MB, free: 5.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.3348, allocations: 276.7 kB / 443.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.3352, allocations: 167.9 kB / 443.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3352, allocations: 0 / 443.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001111/0.3363, allocations: 0.6066 MB / 444.3 MB, free: 4.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.3365, allocations: 0.7901 MB / 445.1 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3365, allocations: 7.938 kB / 445.1 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003898/0.3369, allocations: 160.8 kB / 445.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.3372, allocations: 83.89 kB / 445.3 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005517/0.3377, allocations: 0.7093 MB / 446 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.3382, allocations: 87.94 kB / 446.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.3382, allocations: 16 kB / 446.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.695e-06/0.3382, allocations: 8 kB / 446.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000817/0.339, allocations: 455.9 kB / 446.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.3391, allocations: 224 / 446.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003127/0.3394, allocations: 167.9 kB / 446.7 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.3396, allocations: 71.84 kB / 446.8 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004651/0.3401, allocations: 0.7007 MB / 447.5 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003283/0.3404, allocations: 63.97 kB / 447.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.3404, allocations: 19.98 kB / 447.6 MB, free: 0.7422 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.0002416/0.3407, allocations: 253.6 kB / 447.8 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.866e-05/0.3408, allocations: 39.53 kB / 447.9 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.3409, allocations: 60.34 kB / 447.9 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3409, allocations: 4 kB / 447.9 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.3409, allocations: 4 kB / 447.9 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3409, allocations: 7.938 kB / 448 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.343, allocations: 1.2 MB / 449.2 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.343, allocations: 4 kB / 449.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.3433, allocations: 83.98 kB / 449.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003481/0.3437, allocations: 144.7 kB / 449.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.3437, allocations: 15.98 kB / 449.4 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000608/0.3443, allocations: 0.6733 MB / 450.1 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3443, allocations: 8.094 kB / 450.1 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.346, allocations: 0.8851 MB / 451 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.3463, allocations: 164.5 kB / 451.1 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.085e-05/0.3463, allocations: 12 kB / 451.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.3467, allocations: 75.94 kB / 451.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.3469, allocations: 67.86 kB / 451.3 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.843e-05/0.3469, allocations: 19.98 kB / 451.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002621/0.3472, allocations: 227.1 kB / 451.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3472, allocations: 0 / 451.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007155/0.3479, allocations: 188 kB / 451.7 MB, free: 12.46 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.001156/0.3491, allocations: 489.5 kB / 452.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3507, allocations: 0.6764 MB / 452.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3507, allocations: 0 / 452.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005777/0.3513, allocations: 256.4 kB / 453.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005067/0.3518, allocations: 80.38 kB / 453.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.354, allocations: 1.234 MB / 454.4 MB, free: 9.879 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.3543, allocations: 0.8318 MB / 455.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002406/0.3546, allocations: 67.23 kB / 455.3 MB, free: 8.953 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.3547, allocations: 35.42 kB / 455.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3547, allocations: 0 / 455.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of Templates: time 0.01413/0.3688, allocations: 8.685 MB / 464 MB, free: 284 kB / 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)