Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.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.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2PA") translateModel(EHPTexamples.PSD.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2PA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.04772/0.04772, allocations: 8.626 MB / 23.58 MB, free: 3.211 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.0008244/0.0008241, allocations: 84.73 kB / 26.27 MB, free: 1.312 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.0009781/0.0009781, allocations: 179.9 kB / 29.08 MB, free: 3.504 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.412/1.412, allocations: 223.2 MB / 254.9 MB, free: 9.102 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01214/0.01214, allocations: 3.132 MB / 311.1 MB, free: 4.27 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.0004169/0.0004169, allocations: 11.98 kB / 376 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1005, allocations: 53.12 MB / 429.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2PA): time 0.2028/0.3033, allocations: 7.602 MB / 436.7 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00611/0.3095, allocations: 3.102 MB / 439.8 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.3113, allocations: 40.16 kB / 439.9 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.3126, allocations: 0.5615 MB / 440.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001871/0.3145, allocations: 0.6792 MB / 441.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00284/0.3173, allocations: 1.099 MB / 442.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002362/0.3197, allocations: 1.649 MB / 443.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.3209, allocations: 1.036 MB / 444.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001004/0.3219, allocations: 0.8114 MB / 445.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008308/0.3228, allocations: 0.9203 MB / 446.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.3229, allocations: 94.94 kB / 446.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004986/0.3234, allocations: 223.5 kB / 446.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003591/0.3238, allocations: 0.5121 MB / 447.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002871/0.3241, allocations: 472.7 kB / 447.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001654/0.3258, allocations: 2.673 MB / 450.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.3258, allocations: 0 / 450.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3258, allocations: 3.156 kB / 450.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.498e-05/0.3258, allocations: 0 / 450.6 MB, free: 33.16 MB / 350.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.003716/0.3296, allocations: 2.705 MB / 453.3 MB, free: 31.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.3296, allocations: 9.312 kB / 453.3 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003957/0.33, allocations: 305 kB / 453.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.3317, allocations: 1.447 MB / 455 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.3318, allocations: 181.9 kB / 455.2 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.3321, allocations: 206.7 kB / 455.4 MB, free: 30.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002808/0.3349, allocations: 2.083 MB / 457.5 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.247e-05/0.3349, allocations: 7.25 kB / 457.5 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.3351, allocations: 83.66 kB / 457.6 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.3351, allocations: 51.78 kB / 457.6 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/0.3377, allocations: 1.5 MB / 459.1 MB, free: 28.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009451/0.3471, allocations: 7.285 MB / 466.4 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002607/0.3498, allocations: 1.321 MB / 467.7 MB, free: 24.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.418e-05/0.3499, allocations: 26.23 kB / 467.8 MB, free: 24.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001377/0.3512, allocations: 0.7905 MB / 468.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.306e-06/0.3513, allocations: 0 / 468.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=138): time 0.01051/0.3618, allocations: 5.758 MB / 474.3 MB, free: 20.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.362, allocations: 0.5808 MB / 474.9 MB, free: 20 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003271/0.3653, allocations: 2.135 MB / 477 MB, free: 19.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002512/0.3655, allocations: 58.67 kB / 477.1 MB, free: 19.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009181/0.3665, allocations: 1.054 MB / 478.1 MB, free: 18.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.3669, allocations: 481.3 kB / 478.6 MB, free: 18.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.482e-05/0.367, allocations: 32.72 kB / 478.6 MB, free: 18.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3671, allocations: 358 kB / 479 MB, free: 17.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.3683, allocations: 0.5468 MB / 479.5 MB, free: 17.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.3697, allocations: 0.9238 MB / 480.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.3709, allocations: 0.7173 MB / 481.2 MB, free: 16.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.3709, allocations: 2.188 kB / 481.2 MB, free: 16.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.004617/0.3755, allocations: 1.991 MB / 483.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006205/0.3762, allocations: 2.85 MB / 486 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.3762, allocations: 6.469 kB / 486 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008096/0.377, allocations: 270.3 kB / 486.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.3781, allocations: 298.3 kB / 486.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.3793, allocations: 0.9496 MB / 487.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.3812, allocations: 189.8 kB / 487.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.3813, allocations: 60.06 kB / 487.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.3813, allocations: 3.688 kB / 487.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002498/0.3838, allocations: 1.529 MB / 489.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.3839, allocations: 6.875 kB / 489.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005987/0.3845, allocations: 233.5 kB / 489.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009303/0.3854, allocations: 256.9 kB / 489.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006703/0.3861, allocations: 0.8457 MB / 490.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/0.3876, allocations: 147 kB / 490.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.72e-05/0.3877, allocations: 59.55 kB / 490.8 MB, free: 10.16 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.001307/0.389, allocations: 0.7462 MB / 491.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003106/0.3893, allocations: 197.4 kB / 491.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002983/0.3923, allocations: 1.79 MB / 493.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3924, allocations: 16 kB / 493.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3924, allocations: 0.8906 kB / 493.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.3924, allocations: 10.78 kB / 493.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00599/0.3984, allocations: 4.019 MB / 497.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.3984, allocations: 0.6562 kB / 497.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000954/0.3994, allocations: 234 kB / 497.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007446/0.4001, allocations: 289.3 kB / 498.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-05/0.4002, allocations: 39.89 kB / 498.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.402, allocations: 2.36 MB / 0.4888 GB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.402, allocations: 3.078 kB / 0.4888 GB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003937/0.4059, allocations: 2.619 MB / 0.4914 GB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008394/0.4068, allocations: 440.7 kB / 0.4918 GB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.407, allocations: 37.03 kB / 0.4918 GB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.4082, allocations: 168.7 kB / 0.492 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.4084, allocations: 123.1 kB / 0.4921 GB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.712e-05/0.4085, allocations: 50.41 kB / 0.4921 GB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002014/0.4106, allocations: 1.505 MB / 0.4936 GB, free: 13.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.753e-06/0.4106, allocations: 0 / 0.4936 GB, free: 13.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002229/0.4128, allocations: 0.7186 MB / 0.4943 GB, free: 12.51 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.002179/0.415, allocations: 1.011 MB / 0.4953 GB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00483/0.4198, allocations: 2.705 MB / 0.4979 GB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.4199, allocations: 0 / 0.4979 GB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002137/0.422, allocations: 1.179 MB / 0.4991 GB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.424, allocations: 318.1 kB / 0.4994 GB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008918/0.4329, allocations: 5.845 MB / 0.5051 GB, free: 1.844 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.4342, allocations: 1.61 MB / 0.5067 GB, free: 208 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001323/0.4356, allocations: 257 kB / 0.5069 GB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00033/0.4359, allocations: 123.4 kB / 0.507 GB, free: 15.84 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.4359, allocations: 3.938 kB / 0.507 GB, free: 15.84 MB / 382.1 MB Notification: Performance of Templates: time 0.04197/0.4779, allocations: 26.3 MB / 0.5327 GB, free: 5.664 MB / 398.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu2PA -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe 2>&1)