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 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.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 2.1.4-main/package.mo): time 0.07005/0.07005, allocations: 8.036 MB / 23.01 MB, free: 244 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008877/0.0008877, allocations: 93.31 kB / 25.56 MB, free: 3.527 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.001315/0.001315, allocations: 190.2 kB / 28.22 MB, free: 0.9102 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.524/1.524, allocations: 223.3 MB / 254 MB, free: 5.602 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01203/0.01203, allocations: 3.121 MB / 310 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004731/0.0004732, allocations: 8 kB / 374.8 MB, free: 32 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3015, allocations: 52.97 MB / 427.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.007809/0.3093, allocations: 8.158 MB / 435.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006841/0.3162, allocations: 3.778 MB / 439.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001843/0.3181, allocations: 39.81 kB / 439.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.3193, allocations: 0.5835 MB / 440.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001666/0.3209, allocations: 0.5865 MB / 440.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002745/0.3237, allocations: 1.127 MB / 442 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002936/0.3266, allocations: 2.492 MB / 444.5 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.3281, allocations: 1.055 MB / 445.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001203/0.3293, allocations: 0.8208 MB / 446.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009803/0.3303, allocations: 0.9837 MB / 447.4 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001855/0.3305, allocations: 96 kB / 447.5 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005859/0.3311, allocations: 243.8 kB / 447.7 MB, free: 484 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003853/0.3315, allocations: 0.537 MB / 448.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004964/0.332, allocations: 472.3 kB / 448.7 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002593/0.3346, allocations: 2.72 MB / 451.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3346, allocations: 0 / 451.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3346, allocations: 0 / 451.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.186e-05/0.3347, allocations: 0 / 451.4 MB, free: 12.74 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.004875/0.3395, allocations: 2.732 MB / 454.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3396, allocations: 12.03 kB / 454.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005826/0.3402, allocations: 304.3 kB / 454.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.3424, allocations: 1.456 MB / 455.9 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.3426, allocations: 181.6 kB / 456.1 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002668/0.3429, allocations: 219.8 kB / 456.3 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003806/0.3467, allocations: 2.158 MB / 458.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.917e-05/0.3468, allocations: 8 kB / 458.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.3469, allocations: 88 kB / 458.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.792e-05/0.347, allocations: 48 kB / 458.6 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003074/0.3501, allocations: 1.518 MB / 460.1 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0139/0.364, allocations: 7.553 MB / 467.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/0.3669, allocations: 1.352 MB / 469 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.3684, allocations: 0.7072 MB / 469.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001178/0.3686, allocations: 28.97 kB / 469.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001712/0.3703, allocations: 0.8083 MB / 470.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 5.04e-06/0.3703, allocations: 3.938 kB / 470.6 MB, free: 9.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01263/0.383, allocations: 5.76 MB / 476.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002819/0.3833, allocations: 0.6098 MB / 477 MB, free: 2.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003096/0.3864, allocations: 2.14 MB / 479.1 MB, free: 224 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002063/0.3866, allocations: 61.7 kB / 479.2 MB, free: 156 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.3876, allocations: 1.065 MB / 480.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005029/0.3881, allocations: 496.8 kB / 480.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.347e-05/0.3882, allocations: 36 kB / 480.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.3884, allocations: 361.9 kB / 481.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.3896, allocations: 0.5505 MB / 481.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.391, allocations: 0.961 MB / 482.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.3923, allocations: 0.7444 MB / 483.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.3923, allocations: 4 kB / 483.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.00437/0.3967, allocations: 2.163 MB / 485.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003128/0.397, allocations: 432.7 kB / 485.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.397, allocations: 4 kB / 485.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008558/0.3979, allocations: 305.4 kB / 486.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.399, allocations: 303.6 kB / 486.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.4014, allocations: 2.397 MB / 488.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.403, allocations: 187.9 kB / 489.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.4032, allocations: 67.98 kB / 489.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.4032, allocations: 4 kB / 489.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002926/0.4061, allocations: 1.703 MB / 490.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.4062, allocations: 8 kB / 490.9 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006414/0.4068, allocations: 273.7 kB / 491.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008868/0.4077, allocations: 259.6 kB / 491.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.4096, allocations: 2.289 MB / 493.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.411, allocations: 163.8 kB / 493.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.937e-05/0.4111, allocations: 60 kB / 493.9 MB, free: 0.6133 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.001468/0.4125, allocations: 0.7594 MB / 494.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003821/0.4129, allocations: 201.6 kB / 494.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003631/0.4166, allocations: 1.887 MB / 496.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.4166, allocations: 16 kB / 496.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4166, allocations: 3.953 kB / 496.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.4166, allocations: 11.97 kB / 496.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007542/0.4242, allocations: 4.179 MB / 0.4892 GB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.4242, allocations: 0 / 0.4892 GB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.4253, allocations: 247.8 kB / 0.4895 GB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007561/0.4261, allocations: 277.5 kB / 0.4897 GB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.4262, allocations: 39.98 kB / 0.4898 GB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.4286, allocations: 2.358 MB / 0.4921 GB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4286, allocations: 8.031 kB / 0.4921 GB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005276/0.4339, allocations: 2.693 MB / 0.4947 GB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/0.4354, allocations: 446.7 kB / 0.4952 GB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003891/0.4358, allocations: 43.98 kB / 0.4952 GB, free: 3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.437, allocations: 171.8 kB / 0.4954 GB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/0.4373, allocations: 121.1 kB / 0.4955 GB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.4375, allocations: 47.97 kB / 0.4955 GB, free: 2.664 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002508/0.44, allocations: 1.509 MB / 0.497 GB, free: 1.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.44, allocations: 0 / 0.497 GB, free: 1.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002613/0.4426, allocations: 0.7303 MB / 0.4977 GB, free: 444 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.2366/0.6792, allocations: 0.9969 MB / 0.4987 GB, free: 72.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006657/0.6859, allocations: 3.013 MB / 0.5016 GB, free: 71.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.686, allocations: 2.125 kB / 0.5016 GB, free: 71.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.6882, allocations: 1.188 MB / 0.5028 GB, free: 70.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.6907, allocations: 362.6 kB / 0.5031 GB, free: 70.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.7016, allocations: 6.06 MB / 0.509 GB, free: 67.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.7028, allocations: 1.587 MB / 0.5106 GB, free: 66.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001422/0.7043, allocations: 267.7 kB / 0.5109 GB, free: 66.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003569/0.7046, allocations: 117.2 kB / 0.511 GB, free: 66.51 MB / 366.1 MB Notification: Performance of SimCode: time 1.914e-06/0.7046, allocations: 0 / 0.511 GB, free: 66.51 MB / 366.1 MB Notification: Performance of Templates: time 0.03924/0.7439, allocations: 26.81 MB / 0.5371 GB, free: 43.44 MB / 366.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)