Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_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_EHPTexamples.PSD.PSecu3") translateModel(EHPTexamples.PSD.PSecu3,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05948/0.05948, allocations: 8.03 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.000771/0.0007709, allocations: 87.12 kB / 25.56 MB, free: 3.797 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.001294/0.001294, allocations: 188.8 kB / 28.23 MB, free: 1.133 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.49/1.49, allocations: 223.3 MB / 254 MB, free: 5.711 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01193/0.01193, allocations: 3.119 MB / 310 MB, free: 0.8906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004475/0.0004476, allocations: 12 kB / 374.8 MB, free: 68 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3098, allocations: 52.97 MB / 427.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu3): time 0.008723/0.3186, allocations: 8.223 MB / 436 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007413/0.3261, allocations: 3.78 MB / 439.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.3282, allocations: 43.81 kB / 439.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001839/0.3301, allocations: 0.5796 MB / 440.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00355/0.3336, allocations: 0.5982 MB / 441 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004216/0.3379, allocations: 1.127 MB / 442.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004738/0.3426, allocations: 2.516 MB / 444.6 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002781/0.3454, allocations: 1.079 MB / 445.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.3474, allocations: 0.8324 MB / 446.5 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002292/0.3497, allocations: 0.9914 MB / 447.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009997/0.3507, allocations: 100 kB / 447.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.3525, allocations: 247.8 kB / 447.9 MB, free: 344 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001161/0.3537, allocations: 0.5214 MB / 448.4 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.355, allocations: 488.2 kB / 448.9 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005451/0.3605, allocations: 2.747 MB / 451.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.3605, allocations: 0 / 451.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3606, allocations: 8 kB / 451.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001638/0.3607, allocations: 0 / 451.6 MB, free: 12.57 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.005994/0.3667, allocations: 2.761 MB / 454.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3668, allocations: 12.03 kB / 454.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007062/0.3675, allocations: 308.3 kB / 454.7 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003098/0.3706, allocations: 1.464 MB / 456.2 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001787/0.3708, allocations: 189.8 kB / 456.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002937/0.3711, allocations: 219.8 kB / 456.6 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004297/0.3754, allocations: 2.195 MB / 458.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.975e-05/0.3755, allocations: 15.92 kB / 458.8 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000175/0.3757, allocations: 91.94 kB / 458.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.916e-05/0.3757, allocations: 48 kB / 458.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003087/0.3788, allocations: 1.554 MB / 460.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01424/0.3931, allocations: 7.515 MB / 468 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002869/0.396, allocations: 1.363 MB / 469.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.3974, allocations: 0.7192 MB / 470.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.236e-05/0.3975, allocations: 29.28 kB / 470.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001564/0.3991, allocations: 0.8086 MB / 470.9 MB, free: 8.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 2.965e-06/0.3991, allocations: 4 kB / 470.9 MB, free: 8.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=143): time 0.01187/0.411, allocations: 5.803 MB / 476.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003098/0.4113, allocations: 0.6059 MB / 477.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00325/0.4146, allocations: 2.156 MB / 479.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001699/0.4147, allocations: 65.7 kB / 479.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.4159, allocations: 1.088 MB / 480.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004812/0.4164, allocations: 492.8 kB / 481.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.042e-05/0.4165, allocations: 36 kB / 481.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002691/0.4167, allocations: 365.9 kB / 481.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.4179, allocations: 0.5622 MB / 482.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.4194, allocations: 0.9483 MB / 483 MB, free: 12.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.4206, allocations: 0.7405 MB / 483.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.4207, allocations: 0 / 483.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004271/0.4249, allocations: 2.152 MB / 485.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000284/0.4252, allocations: 410.3 kB / 486.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.4253, allocations: 8 kB / 486.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008035/0.4261, allocations: 305.4 kB / 486.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.4271, allocations: 295.6 kB / 486.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.4297, allocations: 2.406 MB / 489.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.4311, allocations: 195.9 kB / 489.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.4313, allocations: 63.98 kB / 489.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.275e-06/0.4313, allocations: 0 / 489.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002962/0.4343, allocations: 1.684 MB / 491.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.4343, allocations: 8 kB / 491.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006408/0.4349, allocations: 268.8 kB / 491.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.436, allocations: 267.6 kB / 491.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/0.438, allocations: 2.292 MB / 494.1 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.4393, allocations: 156 kB / 494.2 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.4394, allocations: 60.14 kB / 494.3 MB, free: 216 kB / 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.001651/0.4411, allocations: 0.7685 MB / 495 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003376/0.4414, allocations: 209.6 kB / 495.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003436/0.4449, allocations: 1.907 MB / 497.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.4449, allocations: 12 kB / 497.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4449, allocations: 8 kB / 497.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.4449, allocations: 7.984 kB / 497.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00689/0.4518, allocations: 4.219 MB / 0.4896 GB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.4519, allocations: 3.953 kB / 0.4896 GB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.4529, allocations: 243.8 kB / 0.4899 GB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007883/0.4537, allocations: 281.5 kB / 0.4901 GB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.725e-05/0.4538, allocations: 39.98 kB / 0.4902 GB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.456, allocations: 2.357 MB / 0.4925 GB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.456, allocations: 0 / 0.4925 GB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00472/0.4607, allocations: 2.721 MB / 0.4951 GB, free: 3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008348/0.4616, allocations: 450.6 kB / 0.4956 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.4618, allocations: 40 kB / 0.4956 GB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.4629, allocations: 179.8 kB / 0.4958 GB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.4632, allocations: 129.1 kB / 0.4959 GB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.535e-05/0.4633, allocations: 51.97 kB / 0.496 GB, free: 2.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001942/0.4652, allocations: 1.518 MB / 0.4974 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4652, allocations: 0 / 0.4974 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.2645/0.7297, allocations: 0.7291 MB / 0.4982 GB, free: 70.79 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.004327/0.7341, allocations: 1.011 MB / 0.4991 GB, free: 70.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009533/0.7437, allocations: 3.026 MB / 0.5021 GB, free: 69.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/0.7437, allocations: 5.281 kB / 0.5021 GB, free: 69.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003468/0.7472, allocations: 1.206 MB / 0.5033 GB, free: 69.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003379/0.7506, allocations: 346.6 kB / 0.5036 GB, free: 68.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/0.7657, allocations: 6.088 MB / 0.5096 GB, free: 65.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.7673, allocations: 1.599 MB / 0.5111 GB, free: 64.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001891/0.7692, allocations: 264.6 kB / 0.5114 GB, free: 64.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005039/0.7697, allocations: 122.7 kB / 0.5115 GB, free: 64.71 MB / 366.1 MB Notification: Performance of SimCode: time 1.583e-06/0.7697, allocations: 0 / 0.5115 GB, free: 64.71 MB / 366.1 MB Notification: Performance of Templates: time 0.0636/0.8333, allocations: 26.95 MB / 0.5378 GB, free: 42.02 MB / 366.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu3.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu3.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu3.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu3.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu3.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu3.pipe 2>&1)