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.07284/0.07284, allocations: 8.03 MB / 23.26 MB, free: 24 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.0009659/0.000966, allocations: 100.1 kB / 25.83 MB, free: 3.277 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.001274/0.001275, allocations: 194.8 kB / 28.5 MB, free: 0.6094 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.557/1.557, allocations: 222.9 MB / 253.9 MB, free: 4.941 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01192/0.01192, allocations: 3.123 MB / 309 MB, free: 2.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 95.84 kB / 373.1 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3391, allocations: 51.97 MB / 425.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.004459/0.3436, allocations: 3.32 MB / 428.4 MB, free: 18.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003244/0.3469, allocations: 2.122 MB / 430.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002829/0.3472, allocations: 11.94 kB / 430.6 MB, free: 16.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002981/0.3475, allocations: 83.45 kB / 430.6 MB, free: 16.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003886/0.348, allocations: 127.2 kB / 430.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007931/0.3488, allocations: 374.2 kB / 431.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/0.3492, allocations: 0.6504 MB / 431.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.3495, allocations: 184.4 kB / 432 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.3497, allocations: 275 kB / 432.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003227/0.35, allocations: 266.9 kB / 432.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-05/0.3501, allocations: 59.98 kB / 432.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002598/0.3504, allocations: 155.9 kB / 432.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.3505, allocations: 135.5 kB / 432.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.3507, allocations: 258.7 kB / 433.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005983/0.3513, allocations: 0.6776 MB / 433.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3513, allocations: 0 / 433.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3513, allocations: 0 / 433.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.3513, allocations: 4 kB / 433.8 MB, free: 12.91 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.001252/0.3526, allocations: 0.8468 MB / 434.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3526, allocations: 8.031 kB / 434.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.3528, allocations: 52.38 kB / 434.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.3533, allocations: 384 kB / 435 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.323e-05/0.3533, allocations: 55.27 kB / 435.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.128e-05/0.3534, allocations: 47.94 kB / 435.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007501/0.3542, allocations: 493.5 kB / 435.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.3542, allocations: 7.844 kB / 435.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.279e-05/0.3543, allocations: 16 kB / 435.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3543, allocations: 12 kB / 435.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006429/0.3549, allocations: 355.8 kB / 436 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.3568, allocations: 1.417 MB / 437.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008879/0.3577, allocations: 412.4 kB / 437.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.358, allocations: 153.3 kB / 438 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.065e-05/0.358, allocations: 8.266 kB / 438 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000536/0.3586, allocations: 246.5 kB / 438.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.493e-06/0.3586, allocations: 0 / 438.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.003581/0.3622, allocations: 1.81 MB / 440 MB, free: 6.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.3622, allocations: 162.2 kB / 440.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002914/0.3625, allocations: 324.5 kB / 440.5 MB, free: 5.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.3626, allocations: 37.7 kB / 440.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.3627, allocations: 224.4 kB / 440.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.421e-05/0.3628, allocations: 134.1 kB / 440.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.3629, allocations: 94.14 kB / 441 MB, free: 5.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.363, allocations: 350.8 kB / 441.3 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.3633, allocations: 171 kB / 441.5 MB, free: 4.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003725/0.3637, allocations: 280.5 kB / 441.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005636/0.3643, allocations: 359.8 kB / 442.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3643, allocations: 0 / 442.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001083/0.3654, allocations: 0.5868 MB / 442.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3654, allocations: 14.59 kB / 442.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3654, allocations: 0 / 442.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003925/0.3658, allocations: 164.3 kB / 442.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.3661, allocations: 87.92 kB / 443 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005316/0.3667, allocations: 0.7085 MB / 443.7 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.367, allocations: 59.83 kB / 443.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.367, allocations: 20 kB / 443.8 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003172/0.3674, allocations: 249.2 kB / 444 MB, free: 2.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002572/0.3676, allocations: 240.8 kB / 444.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003648/0.368, allocations: 299.6 kB / 444.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.382e-06/0.368, allocations: 0 / 444.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization_lambda0): time 0.0008445/0.3689, allocations: 0.5051 MB / 445 MB, free: 1.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.3689, allocations: 7.938 kB / 445 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.3689, allocations: 4.219 kB / 445.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003605/0.3693, allocations: 176.7 kB / 445.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.3695, allocations: 63.91 kB / 445.3 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004678/0.3699, allocations: 0.7007 MB / 446 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.3703, allocations: 56.12 kB / 446 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.08e-05/0.3703, allocations: 20.05 kB / 446.1 MB, free: 15.99 MB / 318.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,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,dragF.mode,$PRE.dragF.mode,dragF.locked,dragF.startBackward,$PRE.dragF.startBackward,dragF.startForward,$PRE.dragF.startForward,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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002354/0.3706, allocations: 219.9 kB / 446.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.169e-05/0.3707, allocations: 39.53 kB / 446.3 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.3708, allocations: 56.41 kB / 446.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3708, allocations: 4 kB / 446.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.3708, allocations: 0 / 446.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3708, allocations: 4 kB / 446.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.3729, allocations: 1.195 MB / 447.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.373, allocations: 0 / 447.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.3733, allocations: 79.98 kB / 447.7 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003612/0.3736, allocations: 144.7 kB / 447.8 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.3737, allocations: 11.98 kB / 447.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000644/0.3743, allocations: 0.6733 MB / 448.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3743, allocations: 4.031 kB / 448.5 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.376, allocations: 0.8183 MB / 449.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.3762, allocations: 156.6 kB / 449.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.149e-05/0.3762, allocations: 11.94 kB / 449.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.3766, allocations: 60 kB / 449.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.3768, allocations: 59.78 kB / 449.6 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.3768, allocations: 19.98 kB / 449.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002689/0.3771, allocations: 231.1 kB / 449.8 MB, free: 12.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3771, allocations: 0 / 449.8 MB, free: 12.08 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000714/0.3778, allocations: 184 kB / 450 MB, free: 11.9 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001202/0.379, allocations: 495.4 kB / 450.5 MB, free: 11.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.3806, allocations: 0.6641 MB / 451.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3807, allocations: 0.875 kB / 451.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.3813, allocations: 247.9 kB / 451.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006225/0.3819, allocations: 92.45 kB / 451.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.3842, allocations: 1.179 MB / 452.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.3846, allocations: 0.8162 MB / 453.5 MB, free: 8.531 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002609/0.3849, allocations: 67.23 kB / 453.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.385, allocations: 39.42 kB / 453.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.385, allocations: 0 / 453.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of Templates: time 0.01518/0.4002, allocations: 9.466 MB / 463.1 MB, free: 15.01 MB / 334.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)