Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_latest_EHPTexamples.PSD.PSecu1.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.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu1") translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05251/0.05251, allocations: 8.026 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.0006947/0.0006948, allocations: 94.64 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.001021/0.001021, allocations: 190.5 kB / 28.24 MB, free: 1.023 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.413/1.413, allocations: 223.3 MB / 254 MB, free: 5.691 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.0123/0.0123, allocations: 3.114 MB / 310 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004578/0.0004579, allocations: 16 kB / 374.8 MB, free: 32 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2726, allocations: 52.97 MB / 427.8 MB, free: 20.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.009831/0.2825, allocations: 8.072 MB / 435.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.2928, allocations: 3.787 MB / 439.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002555/0.2954, allocations: 43.81 kB / 439.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001983/0.2974, allocations: 0.5796 MB / 440.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003187/0.3006, allocations: 0.5905 MB / 440.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003902/0.3045, allocations: 1.15 MB / 442 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004041/0.3086, allocations: 2.496 MB / 444.5 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002231/0.3108, allocations: 1.033 MB / 445.5 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001669/0.3125, allocations: 0.8324 MB / 446.3 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.3142, allocations: 0.9798 MB / 447.3 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006794/0.3149, allocations: 100 kB / 447.4 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/0.3162, allocations: 247.8 kB / 447.7 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007223/0.3169, allocations: 0.5215 MB / 448.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009509/0.3179, allocations: 472.3 kB / 448.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003362/0.3212, allocations: 2.708 MB / 451.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.3212, allocations: 0 / 451.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3213, allocations: 0 / 451.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001811/0.3214, allocations: 0 / 451.4 MB, free: 12.81 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: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.006197/0.3277, allocations: 2.728 MB / 454.1 MB, free: 10 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3277, allocations: 8.031 kB / 454.1 MB, free: 9.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009709/0.3287, allocations: 304.3 kB / 454.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003479/0.3322, allocations: 1.456 MB / 455.8 MB, free: 8.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/0.3324, allocations: 177.6 kB / 456 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003172/0.3327, allocations: 211.8 kB / 456.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004191/0.3369, allocations: 2.169 MB / 458.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.943e-05/0.337, allocations: 3.984 kB / 458.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001737/0.3372, allocations: 88 kB / 458.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.861e-05/0.3372, allocations: 48 kB / 458.5 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002947/0.3402, allocations: 1.534 MB / 460.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.3531, allocations: 7.521 MB / 467.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.356, allocations: 1.329 MB / 468.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.3574, allocations: 0.7202 MB / 469.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.72e-05/0.3576, allocations: 16.98 kB / 469.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001719/0.3593, allocations: 0.8215 MB / 470.5 MB, free: 9.211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 4.98e-06/0.3593, allocations: 0 / 470.5 MB, free: 9.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.01409/0.3734, allocations: 5.783 MB / 476.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004045/0.3739, allocations: 0.6388 MB / 476.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005709/0.3796, allocations: 2.124 MB / 479 MB, free: 280 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002822/0.3799, allocations: 61.7 kB / 479.1 MB, free: 212 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001555/0.3815, allocations: 1.065 MB / 480.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008069/0.3823, allocations: 481 kB / 480.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.3825, allocations: 36 kB / 480.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002485/0.3827, allocations: 365.9 kB / 481 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.3845, allocations: 0.5622 MB / 481.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0021/0.3866, allocations: 0.9711 MB / 482.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.3885, allocations: 0.7638 MB / 483.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.3886, allocations: 7.938 kB / 483.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.006324/0.3949, allocations: 2.175 MB / 485.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006524/0.3956, allocations: 435.2 kB / 485.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/0.3956, allocations: 8 kB / 485.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.397, allocations: 313.4 kB / 486.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.3986, allocations: 303.6 kB / 486.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003161/0.4018, allocations: 2.426 MB / 488.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.4035, allocations: 199.9 kB / 489.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.4037, allocations: 63.98 kB / 489.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.4037, allocations: 4 kB / 489.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003815/0.4075, allocations: 1.684 MB / 490.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/0.4075, allocations: 8 kB / 490.9 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000947/0.4085, allocations: 265.8 kB / 491.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.4098, allocations: 263.6 kB / 491.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002658/0.4125, allocations: 2.331 MB / 493.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/0.4146, allocations: 144 kB / 493.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/0.4147, allocations: 67.97 kB / 494 MB, free: 0.5508 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 (159): * Single equations (assignments): 153 * 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.002159/0.4169, allocations: 0.7643 MB / 494.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006735/0.4176, allocations: 201.6 kB / 494.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005205/0.4228, allocations: 1.895 MB / 496.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.262e-05/0.4229, allocations: 12 kB / 496.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.4229, allocations: 4 kB / 496.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.4229, allocations: 3.984 kB / 496.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.4335, allocations: 4.197 MB / 0.4893 GB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.4335, allocations: 0 / 0.4893 GB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/0.4347, allocations: 251.8 kB / 0.4895 GB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000748/0.4355, allocations: 273.5 kB / 0.4898 GB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.4356, allocations: 35.97 kB / 0.4898 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002442/0.4381, allocations: 2.396 MB / 0.4922 GB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4381, allocations: 0 / 0.4922 GB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005445/0.4435, allocations: 2.709 MB / 0.4948 GB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/0.4449, allocations: 442.6 kB / 0.4952 GB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002748/0.4452, allocations: 43.94 kB / 0.4953 GB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4463, allocations: 171.9 kB / 0.4954 GB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002967/0.4466, allocations: 133.1 kB / 0.4956 GB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.4468, allocations: 48.06 kB / 0.4956 GB, free: 2.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002214/0.449, allocations: 1.501 MB / 0.4971 GB, free: 1.035 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.449, allocations: 0 / 0.4971 GB, free: 1.035 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002532/0.4515, allocations: 0.7265 MB / 0.4978 GB, free: 316 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 (113): * Single equations (assignments): 105 * 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.2213/0.6728, allocations: 1.01 MB / 0.4988 GB, free: 72.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006929/0.6798, allocations: 3.011 MB / 0.5017 GB, free: 71.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/0.6798, allocations: 5.969 kB / 0.5017 GB, free: 71.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002121/0.682, allocations: 1.194 MB / 0.5029 GB, free: 70.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/0.6843, allocations: 348.6 kB / 0.5032 GB, free: 70.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009504/0.6938, allocations: 6.035 MB / 0.5091 GB, free: 67.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.695, allocations: 1.58 MB / 0.5107 GB, free: 66.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001248/0.6963, allocations: 262.2 kB / 0.5109 GB, free: 66.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004232/0.6967, allocations: 119.5 kB / 0.511 GB, free: 66.54 MB / 366.1 MB Notification: Performance of SimCode: time 3.417e-06/0.6967, allocations: 0 / 0.511 GB, free: 66.54 MB / 366.1 MB Notification: Performance of Templates: time 0.04301/0.7397, allocations: 26.99 MB / 0.5374 GB, free: 43.22 MB / 366.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.PSD.PSecu1.makefile (rm -f EHPTexamples_latest_EHPTexamples.PSD.PSecu1.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.PSD.PSecu1.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.PSD.PSecu1.pipe >> ../files/EHPTexamples_latest_EHPTexamples.PSD.PSecu1.sim & ./EHPTexamples_latest_EHPTexamples.PSD.PSecu1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.PSD.PSecu1.pipe 2>&1)