Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_EHPTexamples.PSD.PSecu2.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.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu2") translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05729/0.05729, allocations: 8.029 MB / 23 MB, free: 0.5703 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.0007841/0.0007842, allocations: 91.14 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.001494/0.001494, allocations: 186.1 kB / 28.23 MB, free: 1.129 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.467/1.467, allocations: 223.3 MB / 254 MB, free: 3.949 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.114 MB / 310 MB, free: 2.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004404/0.0004404, allocations: 12 kB / 374.8 MB, free: 1.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2731, allocations: 52.97 MB / 427.8 MB, free: 20.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.007325/0.2804, allocations: 8.148 MB / 435.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005966/0.2864, allocations: 3.773 MB / 439.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.2879, allocations: 35.88 kB / 439.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.289, allocations: 0.5951 MB / 440.3 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.2905, allocations: 0.5865 MB / 440.9 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002699/0.2932, allocations: 1.123 MB / 442 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002708/0.2959, allocations: 2.492 MB / 444.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.2973, allocations: 1.052 MB / 445.6 MB, free: 2.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.2985, allocations: 0.8324 MB / 446.4 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.2997, allocations: 0.9798 MB / 447.4 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002057/0.2999, allocations: 96 kB / 447.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006919/0.3006, allocations: 247.8 kB / 447.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004336/0.301, allocations: 0.5253 MB / 448.2 MB, free: 240 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00053/0.3016, allocations: 476.4 kB / 448.7 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002829/0.3044, allocations: 2.708 MB / 451.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3044, allocations: 0 / 451.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3044, allocations: 8 kB / 451.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.339e-05/0.3045, allocations: 0 / 451.4 MB, free: 13.04 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.005037/0.3095, allocations: 2.732 MB / 454.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3096, allocations: 8.031 kB / 454.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005718/0.3102, allocations: 308.3 kB / 454.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/0.3125, allocations: 1.452 MB / 455.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.3127, allocations: 189.6 kB / 456.1 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003151/0.313, allocations: 211.9 kB / 456.3 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004199/0.3172, allocations: 2.155 MB / 458.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.225e-05/0.3173, allocations: 19.77 kB / 458.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001759/0.3175, allocations: 92 kB / 458.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.674e-05/0.3175, allocations: 48 kB / 458.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003114/0.3206, allocations: 1.514 MB / 460.1 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01359/0.3342, allocations: 7.553 MB / 467.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002898/0.3372, allocations: 1.344 MB / 469 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.3385, allocations: 0.71 MB / 469.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.3387, allocations: 32.95 kB / 469.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001677/0.3403, allocations: 0.8083 MB / 470.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.406e-06/0.3404, allocations: 0 / 470.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01185/0.3522, allocations: 5.764 MB / 476.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000305/0.3525, allocations: 0.6097 MB / 477 MB, free: 2.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00307/0.3556, allocations: 2.144 MB / 479.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001933/0.3558, allocations: 65.69 kB / 479.2 MB, free: 456 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009563/0.3568, allocations: 1.065 MB / 480.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004736/0.3573, allocations: 496.9 kB / 480.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-05/0.3574, allocations: 28 kB / 480.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3575, allocations: 365.9 kB / 481.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.3587, allocations: 0.5544 MB / 481.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.3602, allocations: 0.9547 MB / 482.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.3615, allocations: 0.7366 MB / 483.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.3615, allocations: 8 kB / 483.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.00435/0.3659, allocations: 2.164 MB / 485.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003412/0.3662, allocations: 431.2 kB / 485.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.3663, allocations: 12 kB / 485.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000842/0.3671, allocations: 305.4 kB / 486.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.3682, allocations: 303.5 kB / 486.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.3707, allocations: 2.408 MB / 489 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.3724, allocations: 187.9 kB / 489.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.3726, allocations: 60 kB / 489.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.527e-06/0.3726, allocations: 4 kB / 489.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003621/0.3762, allocations: 1.703 MB / 490.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.164e-05/0.3763, allocations: 8 kB / 490.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008478/0.3772, allocations: 281.8 kB / 491.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.3782, allocations: 263.6 kB / 491.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/0.3808, allocations: 2.281 MB / 493.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.3825, allocations: 151.9 kB / 493.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/0.3827, allocations: 63.98 kB / 493.9 MB, free: 0.9141 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.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: 20 (driver.dummy,$whenCondition1,$PRE.driver.driveCyc.nextTimeEvent,dragForce.free,$PRE.dragForce.startForward,dragForce.startForward,$PRE.dragForce.startBackward,dragForce.startBackward,dragForce.locked,$PRE.dragForce.mode,dragForce.mode,mot.limTau.state,gen.limTau.state,driver.driveCyc.nextTimeEvent,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEventScaled,gen.constPDC.integrator1.local_reset,mot.constPDC.integrator1.local_reset,ice.toKgFuel.local_reset,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 21} Notification: Performance of prepare postOptimizeDAE: time 0.001696/0.3844, allocations: 0.76 MB / 494.7 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006333/0.385, allocations: 201.7 kB / 494.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004084/0.3891, allocations: 1.887 MB / 496.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.3892, allocations: 16 kB / 496.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.3892, allocations: 3.953 kB / 496.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.3892, allocations: 4.078 kB / 496.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008252/0.3975, allocations: 4.194 MB / 0.4893 GB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.3975, allocations: 4 kB / 0.4893 GB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.3986, allocations: 247.8 kB / 0.4895 GB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008417/0.3995, allocations: 273.5 kB / 0.4898 GB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001414/0.3996, allocations: 43.97 kB / 0.4898 GB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002912/0.4025, allocations: 2.354 MB / 0.4921 GB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4026, allocations: 8.062 kB / 0.4921 GB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005323/0.4079, allocations: 2.69 MB / 0.4947 GB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.4091, allocations: 442.7 kB / 0.4952 GB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006119/0.4098, allocations: 47.95 kB / 0.4952 GB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/0.4112, allocations: 163.9 kB / 0.4954 GB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003202/0.4116, allocations: 133 kB / 0.4955 GB, free: 3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.4117, allocations: 47.97 kB / 0.4955 GB, free: 2.953 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002841/0.4146, allocations: 1.506 MB / 0.497 GB, free: 1.457 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4146, allocations: 0 / 0.497 GB, free: 1.457 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003213/0.4178, allocations: 0.7265 MB / 0.4977 GB, free: 0.7305 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (EbatDel,EgenDelM,Eroad,EiceDel,Emot,mass.s,mass.v,ice.inertia.w,ice.w.flange.phi,ice.tokgFuel.y,ice.toKgFuel.y,bat.cBattery.v,bat.C1.v,bat.cDummy.v,ECU.powFilt.y,ECU.genTauFilt.y,mot.constPDC.integrator1.y,gen.constPDC.integrator1.y) * Number of discrete variables: 9 ($whenCondition1,dragForce.startForward,dragForce.startBackward,dragForce.locked,dragForce.mode,mot.limTau.state,gen.limTau.state,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled) * Number of discrete states: 7 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,gen.limTau.state,mot.limTau.state,dragForce.mode,dragForce.startForward,dragForce.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002924/0.4207, allocations: 1.005 MB / 0.4987 GB, free: 164 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006022/0.4268, allocations: 3.007 MB / 0.5016 GB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/0.4268, allocations: 12.25 kB / 0.5016 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002237/0.4291, allocations: 1.198 MB / 0.5028 GB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/0.4316, allocations: 354.2 kB / 0.5031 GB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.443, allocations: 6.059 MB / 0.5091 GB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001964/0.445, allocations: 1.579 MB / 0.5106 GB, free: 3.688 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001601/0.4467, allocations: 260 kB / 0.5108 GB, free: 3.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005197/0.4472, allocations: 127.3 kB / 0.511 GB, free: 3.305 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4472, allocations: 3.938 kB / 0.511 GB, free: 3.301 MB / 382.1 MB Notification: Performance of Templates: time 0.2393/0.6865, allocations: 26.82 MB / 0.5372 GB, free: 73.97 MB / 382.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu2.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu2.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu2.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu2.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu2.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu2.pipe 2>&1)