Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_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_EHPTexamples.PSD.PSecu1") translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.07287/0.07287, allocations: 8.027 MB / 23.01 MB, free: 0.6133 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.0007448/0.0007447, allocations: 95 kB / 25.56 MB, free: 3.688 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.001356/0.001356, allocations: 183.9 kB / 28.23 MB, free: 1.027 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.424/1.424, 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.01196/0.01196, allocations: 3.111 MB / 310 MB, free: 2.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000454/0.0004541, allocations: 15.98 kB / 374.8 MB, free: 1.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2643, allocations: 52.98 MB / 427.8 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.007644/0.2719, allocations: 8.064 MB / 435.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007085/0.2791, allocations: 3.786 MB / 439.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001842/0.281, allocations: 43.81 kB / 439.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.2822, allocations: 0.5796 MB / 440.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00169/0.2839, allocations: 0.5944 MB / 440.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003201/0.2871, allocations: 1.156 MB / 442 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003486/0.2906, allocations: 2.48 MB / 444.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.2922, allocations: 1.033 MB / 445.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.2935, allocations: 0.8286 MB / 446.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.2946, allocations: 0.9836 MB / 447.3 MB, free: 1.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.2948, allocations: 96 kB / 447.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007171/0.2956, allocations: 251.8 kB / 447.7 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005074/0.2961, allocations: 0.5292 MB / 448.2 MB, free: 336 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005024/0.2966, allocations: 472.4 kB / 448.7 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002941/0.2995, allocations: 2.704 MB / 451.4 MB, free: 13.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.409e-05/0.2996, allocations: 4 kB / 451.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.2996, allocations: 0 / 451.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.685e-05/0.2996, allocations: 0 / 451.4 MB, free: 13.14 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.005289/0.3049, allocations: 2.725 MB / 454.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.305, allocations: 8.031 kB / 454.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000615/0.3056, allocations: 304.3 kB / 454.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.3078, allocations: 1.452 MB / 455.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/0.308, allocations: 181.6 kB / 456 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002904/0.3083, allocations: 215.8 kB / 456.2 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00406/0.3124, allocations: 2.165 MB / 458.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.61e-05/0.3125, allocations: 0 / 458.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001875/0.3127, allocations: 95.97 kB / 458.5 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.356e-05/0.3127, allocations: 48 kB / 458.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003197/0.3159, allocations: 1.534 MB / 460.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01236/0.3283, allocations: 7.525 MB / 467.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003019/0.3314, allocations: 1.332 MB / 468.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.3329, allocations: 0.7163 MB / 469.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.333, allocations: 24.97 kB / 469.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001685/0.3347, allocations: 0.8176 MB / 470.5 MB, free: 9.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 4.718e-06/0.3347, allocations: 0 / 470.5 MB, free: 9.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.01207/0.3468, allocations: 5.787 MB / 476.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000299/0.3471, allocations: 0.6271 MB / 476.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/0.3505, allocations: 2.135 MB / 479 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001724/0.3507, allocations: 57.7 kB / 479.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009195/0.3516, allocations: 1.065 MB / 480.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004258/0.3521, allocations: 485 kB / 480.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.542e-05/0.3522, allocations: 32 kB / 480.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3523, allocations: 361.9 kB / 481 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.3535, allocations: 0.5661 MB / 481.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.3549, allocations: 0.9789 MB / 482.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.3562, allocations: 0.7483 MB / 483.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.283e-06/0.3563, allocations: 4 kB / 483.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004284/0.3606, allocations: 2.187 MB / 485.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003223/0.3609, allocations: 427 kB / 485.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.3609, allocations: 8 kB / 485.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009843/0.3619, allocations: 305.4 kB / 486.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.363, allocations: 307.6 kB / 486.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/0.3657, allocations: 2.428 MB / 488.9 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.3675, allocations: 199.8 kB / 489.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.3676, allocations: 67.98 kB / 489.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.3676, allocations: 4 kB / 489.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003102/0.3708, allocations: 1.684 MB / 490.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.3708, allocations: 8 kB / 490.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00067/0.3715, allocations: 269.8 kB / 491.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000932/0.3724, allocations: 267.6 kB / 491.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.3744, allocations: 2.323 MB / 493.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.376, allocations: 144.1 kB / 493.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.3762, allocations: 63.98 kB / 494 MB, free: 0.8828 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.001678/0.3778, allocations: 0.7572 MB / 494.7 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003824/0.3782, allocations: 209.7 kB / 494.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003548/0.3818, allocations: 1.898 MB / 496.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.3818, allocations: 12 kB / 496.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3818, allocations: 7.984 kB / 496.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.3819, allocations: 3.984 kB / 496.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007548/0.3894, allocations: 4.19 MB / 0.4893 GB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.3894, allocations: 0 / 0.4893 GB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.3905, allocations: 251.8 kB / 0.4895 GB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008149/0.3914, allocations: 275.6 kB / 0.4898 GB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.3915, allocations: 39.97 kB / 0.4898 GB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002462/0.394, allocations: 2.389 MB / 0.4922 GB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.394, allocations: 0 / 0.4922 GB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005142/0.3991, allocations: 2.717 MB / 0.4948 GB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/0.4005, allocations: 442.6 kB / 0.4952 GB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006542/0.4012, allocations: 40 kB / 0.4953 GB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.4027, allocations: 175.9 kB / 0.4954 GB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003071/0.403, allocations: 121.1 kB / 0.4956 GB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.4032, allocations: 59.97 kB / 0.4956 GB, free: 2.852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002941/0.4061, allocations: 1.501 MB / 0.4971 GB, free: 1.359 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4061, allocations: 3.938 kB / 0.4971 GB, free: 1.355 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003055/0.4092, allocations: 0.7148 MB / 0.4978 GB, free: 0.6406 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 (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.002912/0.4121, allocations: 1.014 MB / 0.4988 GB, free: 60 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005629/0.4178, allocations: 3.019 MB / 0.5017 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.4178, allocations: 4 kB / 0.5017 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002045/0.4198, allocations: 1.186 MB / 0.5029 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/0.422, allocations: 360.2 kB / 0.5032 GB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009779/0.4318, allocations: 6.04 MB / 0.5091 GB, free: 5.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001261/0.4331, allocations: 1.579 MB / 0.5107 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001258/0.4344, allocations: 259.9 kB / 0.5109 GB, free: 3.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.4347, allocations: 119.4 kB / 0.511 GB, free: 3.246 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4347, allocations: 0 / 0.511 GB, free: 3.246 MB / 382.1 MB Notification: Performance of Templates: time 0.2607/0.6955, allocations: 26.98 MB / 0.5374 GB, free: 72.46 MB / 382.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu1.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu1.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu1.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu1.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu1.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu1.pipe 2>&1)