Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.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.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2PA") translateModel(EHPTexamples.PSD.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2PA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.06182/0.06182, allocations: 8.03 MB / 23.01 MB, free: 0.5977 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.001009/0.001009, allocations: 91 kB / 25.56 MB, free: 3.684 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.001312/0.001312, allocations: 187.9 kB / 28.23 MB, free: 1.02 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.551/1.551, allocations: 223.3 MB / 254 MB, free: 3.973 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01217/0.01217, allocations: 3.112 MB / 310 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.0004811, allocations: 19.22 kB / 374.8 MB, free: 53.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1337, allocations: 52.97 MB / 427.8 MB, free: 20.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2PA): time 0.01298/0.1468, allocations: 8.136 MB / 435.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.1585, allocations: 3.774 MB / 439.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002862/0.1614, allocations: 39.88 kB / 439.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.1636, allocations: 0.5796 MB / 440.3 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003474/0.1672, allocations: 0.6059 MB / 440.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005269/0.1724, allocations: 1.119 MB / 442 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005037/0.1775, allocations: 2.492 MB / 444.5 MB, free: 3.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003108/0.1807, allocations: 1.042 MB / 445.6 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002308/0.183, allocations: 0.8324 MB / 446.4 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002235/0.1853, allocations: 0.972 MB / 447.4 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007655/0.1861, allocations: 99.94 kB / 447.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001498/0.1876, allocations: 255.8 kB / 447.7 MB, free: 300 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.1887, allocations: 0.5175 MB / 448.2 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001408/0.1901, allocations: 480.3 kB / 448.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006087/0.1963, allocations: 2.704 MB / 451.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1963, allocations: 0 / 451.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.072e-06/0.1963, allocations: 0 / 451.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001578/0.1965, allocations: 3.938 kB / 451.4 MB, free: 12.58 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.01019/0.2067, allocations: 2.725 MB / 454.1 MB, free: 9.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.2068, allocations: 16.03 kB / 454.1 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/0.2083, allocations: 304.3 kB / 454.4 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005843/0.2142, allocations: 1.448 MB / 455.9 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/0.2146, allocations: 189.6 kB / 456.1 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008048/0.2154, allocations: 215.8 kB / 456.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009499/0.225, allocations: 2.159 MB / 458.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.2251, allocations: 4 kB / 458.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004757/0.2256, allocations: 84 kB / 458.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.902e-05/0.2257, allocations: 52 kB / 458.6 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006949/0.2327, allocations: 1.526 MB / 460.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02292/0.2557, allocations: 7.549 MB / 467.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002975/0.2587, allocations: 1.349 MB / 469 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/0.2601, allocations: 0.7111 MB / 469.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.2603, allocations: 16.98 kB / 469.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001662/0.2619, allocations: 0.8083 MB / 470.5 MB, free: 8.965 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.807e-06/0.262, allocations: 0 / 470.5 MB, free: 8.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01209/0.2741, allocations: 5.764 MB / 476.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003149/0.2744, allocations: 0.5769 MB / 476.9 MB, free: 2.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004098/0.2785, allocations: 2.136 MB / 479 MB, free: 124 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002967/0.2789, allocations: 69.62 kB / 479.1 MB, free: 48 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.2801, allocations: 1.069 MB / 480.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006846/0.2808, allocations: 496.9 kB / 480.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.2809, allocations: 32 kB / 480.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.2811, allocations: 361.9 kB / 481 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.2826, allocations: 0.5544 MB / 481.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.2843, allocations: 0.9577 MB / 482.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.2858, allocations: 0.7327 MB / 483.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.2858, allocations: 0 / 483.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004636/0.2905, allocations: 2.171 MB / 485.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003494/0.2908, allocations: 427.3 kB / 485.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.2909, allocations: 8 kB / 485.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009047/0.2918, allocations: 309.4 kB / 486.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.2929, allocations: 303.6 kB / 486.5 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002499/0.2954, allocations: 2.406 MB / 488.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.2971, allocations: 187.9 kB / 489.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/0.2973, allocations: 60 kB / 489.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.2974, allocations: 7.984 kB / 489.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00333/0.3007, allocations: 1.696 MB / 490.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.3007, allocations: 8 kB / 490.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006993/0.3015, allocations: 279.8 kB / 491.1 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009525/0.3024, allocations: 267.6 kB / 491.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.3046, allocations: 2.277 MB / 493.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.3061, allocations: 152 kB / 493.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.3063, allocations: 63.98 kB / 493.9 MB, free: 0.5234 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.001581/0.3079, allocations: 0.7678 MB / 494.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005449/0.3084, allocations: 205.6 kB / 494.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.3125, allocations: 1.883 MB / 496.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.3125, allocations: 16 kB / 496.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.3125, allocations: 7.953 kB / 496.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.3125, allocations: 7.969 kB / 496.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008609/0.3212, allocations: 4.159 MB / 0.4892 GB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.3212, allocations: 4 kB / 0.4892 GB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.3223, allocations: 247.8 kB / 0.4894 GB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000765/0.3231, allocations: 275.5 kB / 0.4897 GB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.3233, allocations: 43.97 kB / 0.4897 GB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.3256, allocations: 2.359 MB / 0.492 GB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3257, allocations: 4.031 kB / 0.492 GB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005112/0.3308, allocations: 2.686 MB / 0.4946 GB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.3319, allocations: 450.6 kB / 0.4951 GB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000473/0.3324, allocations: 43.95 kB / 0.4951 GB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.3338, allocations: 163.9 kB / 0.4953 GB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.334, allocations: 125.1 kB / 0.4954 GB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.3342, allocations: 51.98 kB / 0.4954 GB, free: 2.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002537/0.3367, allocations: 1.498 MB / 0.4969 GB, free: 1.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3367, allocations: 0 / 0.4969 GB, free: 1.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002986/0.3397, allocations: 0.7226 MB / 0.4976 GB, free: 380 kB / 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.1922/0.532, allocations: 1.027 MB / 0.4986 GB, free: 72.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007242/0.5393, allocations: 3.006 MB / 0.5015 GB, free: 71.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/0.5393, allocations: 5.109 kB / 0.5015 GB, free: 71.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002165/0.5415, allocations: 1.198 MB / 0.5027 GB, free: 70.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/0.5438, allocations: 343.5 kB / 0.503 GB, free: 70.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008966/0.5528, allocations: 6.066 MB / 0.509 GB, free: 67.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.5539, allocations: 1.58 MB / 0.5105 GB, free: 66.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001206/0.5551, allocations: 258.8 kB / 0.5107 GB, free: 66.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/0.5554, allocations: 116.5 kB / 0.5109 GB, free: 66.35 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.5555, allocations: 0 / 0.5109 GB, free: 66.35 MB / 366.1 MB Notification: Performance of Templates: time 0.04093/0.5964, allocations: 26.7 MB / 0.5369 GB, free: 43.5 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu2PA -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe 2>&1)