Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo) Running command: translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2") translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.05568/0.05568, allocations: 8.616 MB / 23.57 MB, free: 4.617 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007859/0.0007858, allocations: 88.02 kB / 26.27 MB, free: 2.883 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.001561/0.001561, allocations: 187.4 kB / 29.08 MB, free: 88 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 254.9 MB, free: 5.02 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 / 311.1 MB, free: 1.82 MB / 238.1 MB Warning: Requested package EHPTlib of version 2.1.0, but this package was already loaded with version . OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0004209/0.000421, allocations: 12 kB / 376 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2012, allocations: 53.13 MB / 429.1 MB, free: 20 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.007162/0.2084, allocations: 7.593 MB / 436.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005193/0.2136, allocations: 3.119 MB / 439.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.2148, allocations: 39.81 kB / 439.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008948/0.2157, allocations: 0.5562 MB / 440.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001323/0.217, allocations: 0.6856 MB / 441.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002333/0.2194, allocations: 1.099 MB / 442.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002049/0.2214, allocations: 1.649 MB / 443.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.2225, allocations: 1.039 MB / 444.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007698/0.2233, allocations: 0.8054 MB / 445.7 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007363/0.224, allocations: 0.9293 MB / 446.6 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.2242, allocations: 96 kB / 446.7 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004647/0.2247, allocations: 215.9 kB / 446.9 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000328/0.225, allocations: 0.5137 MB / 447.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002951/0.2253, allocations: 472.3 kB / 447.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.2273, allocations: 2.685 MB / 450.6 MB, free: 14.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.2273, allocations: 0 / 450.6 MB, free: 14.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2273, allocations: 4 kB / 450.6 MB, free: 14.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.651e-05/0.2274, allocations: 0 / 450.6 MB, free: 14.45 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: 499 * Number of variables: 499 Notification: Performance of Generate backend data structure: time 0.004792/0.2322, allocations: 2.702 MB / 453.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2323, allocations: 8.031 kB / 453.3 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005467/0.2328, allocations: 304.3 kB / 453.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002397/0.2352, allocations: 1.448 MB / 455.1 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.2354, allocations: 185.5 kB / 455.2 MB, free: 9.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002667/0.2357, allocations: 211.9 kB / 455.4 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003654/0.2393, allocations: 2.084 MB / 457.5 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.625e-05/0.2394, allocations: 15.83 kB / 457.5 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.2396, allocations: 88 kB / 457.6 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.2397, allocations: 47.94 kB / 457.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003075/0.2427, allocations: 1.502 MB / 459.2 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/0.2539, allocations: 7.271 MB / 466.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002655/0.2566, allocations: 1.334 MB / 467.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.867e-05/0.2567, allocations: 24.94 kB / 467.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001409/0.2581, allocations: 0.7825 MB / 468.6 MB, free: 12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 2.886e-06/0.2581, allocations: 0 / 468.6 MB, free: 12 MB / 334.1 MB Notification: Performance of matching and sorting (n=138): time 0.01045/0.2686, allocations: 5.765 MB / 474.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002361/0.2688, allocations: 0.6059 MB / 475 MB, free: 5.227 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002864/0.2717, allocations: 2.143 MB / 477.1 MB, free: 3.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001586/0.2719, allocations: 57.7 kB / 477.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008633/0.2727, allocations: 1.057 MB / 478.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003846/0.2731, allocations: 481.1 kB / 478.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.811e-05/0.2732, allocations: 32 kB / 478.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.2734, allocations: 357.9 kB / 479.1 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.2745, allocations: 0.5427 MB / 479.6 MB, free: 0.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.2759, allocations: 0.9247 MB / 480.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/0.2771, allocations: 0.7236 MB / 481.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.2771, allocations: 0 / 481.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.00383/0.281, allocations: 1.986 MB / 483.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009586/0.2819, allocations: 2.855 MB / 486.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.282, allocations: 12 kB / 486.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007545/0.2827, allocations: 264.6 kB / 486.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.2839, allocations: 295.6 kB / 486.7 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.2851, allocations: 0.9502 MB / 487.6 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.2866, allocations: 187.8 kB / 487.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.2868, allocations: 59.98 kB / 487.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.2868, allocations: 4 kB / 487.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002657/0.2895, allocations: 1.526 MB / 489.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.2895, allocations: 11.98 kB / 489.4 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005768/0.2901, allocations: 240.8 kB / 489.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009108/0.291, allocations: 255.6 kB / 489.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008215/0.2918, allocations: 0.8372 MB / 490.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.2932, allocations: 148 kB / 490.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.2933, allocations: 56 kB / 490.9 MB, free: 4.719 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 19 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 21} Notification: Performance of prepare postOptimizeDAE: time 0.001215/0.2945, allocations: 0.7626 MB / 491.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.2948, allocations: 197.7 kB / 491.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003329/0.2981, allocations: 1.787 MB / 493.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.2982, allocations: 12 kB / 493.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.2982, allocations: 0 / 493.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.2982, allocations: 7.969 kB / 493.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00686/0.3051, allocations: 4.03 MB / 497.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3051, allocations: 3.938 kB / 497.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009787/0.3061, allocations: 239.8 kB / 497.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007514/0.3069, allocations: 273.5 kB / 498.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.482e-05/0.307, allocations: 43.97 kB / 498.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002242/0.3092, allocations: 2.358 MB / 0.4889 GB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.3092, allocations: 3.938 kB / 0.4889 GB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004734/0.314, allocations: 2.614 MB / 0.4914 GB, free: 8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009797/0.315, allocations: 446.5 kB / 0.4919 GB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.3152, allocations: 40 kB / 0.4919 GB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.3163, allocations: 163.9 kB / 0.4921 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.3166, allocations: 129 kB / 0.4922 GB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.79e-05/0.3167, allocations: 51.97 kB / 0.4922 GB, free: 7.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002249/0.3189, allocations: 1.509 MB / 0.4937 GB, free: 5.664 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3189, allocations: 0 / 0.4937 GB, free: 5.664 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002071/0.321, allocations: 0.7147 MB / 0.4944 GB, free: 4.949 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 16 (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,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 (111): * Single equations (assignments): 103 * 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%) 4} * Non-linear torn systems: 1 {1 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002375/0.3234, allocations: 1.01 MB / 0.4954 GB, free: 4.375 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004969/0.3284, allocations: 2.701 MB / 0.498 GB, free: 1.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/0.3284, allocations: 4.188 kB / 0.498 GB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/0.3306, allocations: 1.174 MB / 0.4992 GB, free: 352 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.3325, allocations: 310.2 kB / 0.4995 GB, free: 40 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008799/0.3414, allocations: 5.856 MB / 0.5052 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/0.3425, allocations: 1.614 MB / 0.5068 GB, free: 8.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.3436, allocations: 255.8 kB / 0.507 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.3439, allocations: 127.4 kB / 0.5071 GB, free: 8.113 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3439, allocations: 0 / 0.5071 GB, free: 8.113 MB / 382.1 MB Notification: Performance of Templates: time 0.2232/0.5671, allocations: 26.42 MB / 0.5329 GB, free: 78.54 MB / 382.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu2.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu2.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe 2>&1)