Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu3.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.PSecu3,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu3") translateModel(EHPTexamples.PSD.PSecu3,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.06559/0.06559, allocations: 8.028 MB / 23 MB, free: 0.5469 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.0009929/0.0009928, allocations: 95.77 kB / 25.57 MB, free: 3.742 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.001727/0.001727, allocations: 189 kB / 28.23 MB, free: 1.086 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: 3.965 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.012/0.012, allocations: 3.115 MB / 310 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000524/0.0005241, allocations: 11.22 kB / 374.8 MB, free: 53.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1265, allocations: 52.98 MB / 427.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu3): time 0.007649/0.1342, allocations: 8.21 MB / 436 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006864/0.1411, allocations: 3.778 MB / 439.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002022/0.1432, allocations: 39.88 kB / 439.8 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.1445, allocations: 0.5873 MB / 440.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001878/0.1464, allocations: 0.5905 MB / 441 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002906/0.1493, allocations: 1.126 MB / 442.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004293/0.1536, allocations: 2.516 MB / 444.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001786/0.1554, allocations: 1.087 MB / 445.7 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.1568, allocations: 0.8324 MB / 446.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00111/0.158, allocations: 0.9911 MB / 447.5 MB, free: 472 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.1582, allocations: 100 kB / 447.6 MB, free: 372 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000716/0.1589, allocations: 247.8 kB / 447.9 MB, free: 124 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005615/0.1595, allocations: 0.5293 MB / 448.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007256/0.1602, allocations: 488.2 kB / 448.9 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003237/0.1635, allocations: 2.743 MB / 451.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.1635, allocations: 0 / 451.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1635, allocations: 0 / 451.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.092e-05/0.1636, allocations: 0 / 451.6 MB, free: 12.36 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.00626/0.1699, allocations: 2.773 MB / 454.4 MB, free: 9.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.1699, allocations: 12.03 kB / 454.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007173/0.1707, allocations: 312.3 kB / 454.7 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002505/0.1732, allocations: 1.448 MB / 456.2 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.1734, allocations: 193.8 kB / 456.3 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.1737, allocations: 227.7 kB / 456.6 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004128/0.1778, allocations: 2.196 MB / 458.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.275e-05/0.1779, allocations: 4 kB / 458.8 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/0.1781, allocations: 88 kB / 458.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.266e-05/0.1781, allocations: 55.94 kB / 458.9 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00321/0.1813, allocations: 1.554 MB / 460.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01279/0.1941, allocations: 7.508 MB / 468 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/0.197, allocations: 1.369 MB / 469.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.1983, allocations: 0.7192 MB / 470.1 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.547e-05/0.1984, allocations: 17.3 kB / 470.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/0.1999, allocations: 0.8282 MB / 470.9 MB, free: 8.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 3.276e-06/0.1999, allocations: 0 / 470.9 MB, free: 8.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=143): time 0.0117/0.2116, allocations: 5.805 MB / 476.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004617/0.2121, allocations: 0.602 MB / 477.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00375/0.2159, allocations: 2.152 MB / 479.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003811/0.2163, allocations: 61.7 kB / 479.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.2174, allocations: 1.092 MB / 480.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007198/0.2181, allocations: 496.8 kB / 481.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.473e-05/0.2182, allocations: 40 kB / 481.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002888/0.2185, allocations: 361.9 kB / 481.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.2197, allocations: 0.5622 MB / 482.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.2216, allocations: 0.9522 MB / 483 MB, free: 11.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.2231, allocations: 0.7405 MB / 483.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.2231, allocations: 0 / 483.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.005032/0.2281, allocations: 2.156 MB / 485.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004331/0.2286, allocations: 404.5 kB / 486.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.2286, allocations: 15.88 kB / 486.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.2297, allocations: 301.4 kB / 486.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.2309, allocations: 303.6 kB / 486.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002646/0.2335, allocations: 2.394 MB / 489.3 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002329/0.2359, allocations: 195.9 kB / 489.5 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/0.2362, allocations: 56 kB / 489.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.2362, allocations: 4 kB / 489.6 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003784/0.24, allocations: 1.688 MB / 491.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/0.2401, allocations: 11.98 kB / 491.3 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007943/0.2409, allocations: 261.8 kB / 491.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009535/0.2419, allocations: 263.6 kB / 491.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002354/0.2442, allocations: 2.299 MB / 494.1 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.2459, allocations: 152 kB / 494.2 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.246, allocations: 60 kB / 494.3 MB, free: 0 / 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: 30 * Number of states: 0 () * Number of discrete variables: 21 (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,$PRE.ECU.hysteresis.y,ECU.hysteresis.y,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) * 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.001753/0.2478, allocations: 0.7725 MB / 495 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004619/0.2483, allocations: 205.6 kB / 495.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.252, allocations: 1.911 MB / 497.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/0.252, allocations: 12 kB / 497.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.252, allocations: 0 / 497.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.597e-05/0.252, allocations: 7.969 kB / 497.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007352/0.2594, allocations: 4.219 MB / 0.4896 GB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.2594, allocations: 4 kB / 0.4896 GB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.2605, allocations: 251.8 kB / 0.4899 GB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007319/0.2612, allocations: 273.5 kB / 0.4901 GB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.2613, allocations: 39.97 kB / 0.4902 GB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/0.2637, allocations: 2.365 MB / 0.4925 GB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.2637, allocations: 0 / 0.4925 GB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/0.2686, allocations: 2.729 MB / 0.4952 GB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.2697, allocations: 442.6 kB / 0.4956 GB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002399/0.27, allocations: 40 kB / 0.4956 GB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.271, allocations: 175.9 kB / 0.4958 GB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.2713, allocations: 129.1 kB / 0.4959 GB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.2714, allocations: 55.92 kB / 0.496 GB, free: 1.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002162/0.2736, allocations: 1.51 MB / 0.4974 GB, free: 440 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2736, allocations: 4 kB / 0.4974 GB, free: 436 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.2747/0.5483, allocations: 0.7319 MB / 0.4982 GB, free: 70.67 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 17 (EbatDel,EgenDelM,Eroad,EiceDel,Emot,mass.s,mass.v,ice.inertia.w,ice.w.flange.phi,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: 10 ($whenCondition1,dragForce.startForward,dragForce.startBackward,dragForce.locked,dragForce.mode,ECU.hysteresis.y,mot.limTau.state,gen.limTau.state,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled) * Number of discrete states: 8 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,ECU.hysteresis.y,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 (117): * Single equations (assignments): 109 * 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.003107/0.5514, allocations: 1.004 MB / 0.4991 GB, free: 70.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007588/0.559, allocations: 3.025 MB / 0.5021 GB, free: 69.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/0.5591, allocations: 2.406 kB / 0.5021 GB, free: 69.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002395/0.5615, allocations: 1.209 MB / 0.5033 GB, free: 68.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.5644, allocations: 347.6 kB / 0.5036 GB, free: 68.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/0.5764, allocations: 6.094 MB / 0.5096 GB, free: 65.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.5777, allocations: 1.601 MB / 0.5111 GB, free: 64.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001501/0.5792, allocations: 268.6 kB / 0.5114 GB, free: 64.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/0.5796, allocations: 120.7 kB / 0.5115 GB, free: 64.58 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5796, allocations: 0 / 0.5115 GB, free: 64.58 MB / 366.1 MB Notification: Performance of Templates: time 0.0399/0.6195, allocations: 26.96 MB / 0.5378 GB, free: 41.83 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu3.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu3.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe 2>&1)