Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.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.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA") translateModel(EHPTexamples.PSD.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04968/0.04968, allocations: 8.03 MB / 23 MB, free: 0.5625 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.0006811/0.0006811, allocations: 91.14 kB / 25.56 MB, free: 3.762 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.0009397/0.0009396, allocations: 201.8 kB / 28.24 MB, free: 1.086 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.393/1.393, allocations: 223.3 MB / 254 MB, free: 5.695 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01199/0.01199, allocations: 3.123 MB / 310 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004522/0.0004522, allocations: 12 kB / 374.8 MB, free: 52 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2837, allocations: 52.96 MB / 427.8 MB, free: 20.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2PA): time 0.007641/0.2914, allocations: 8.152 MB / 435.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006578/0.298, allocations: 3.773 MB / 439.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001802/0.2999, allocations: 39.81 kB / 439.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.3012, allocations: 0.5834 MB / 440.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002093/0.3033, allocations: 0.5943 MB / 440.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002911/0.3062, allocations: 1.131 MB / 442 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002809/0.309, allocations: 2.484 MB / 444.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001741/0.3108, allocations: 1.046 MB / 445.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001378/0.3122, allocations: 0.8286 MB / 446.4 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.3135, allocations: 0.972 MB / 447.4 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000181/0.3136, allocations: 96 kB / 447.5 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000654/0.3143, allocations: 255.8 kB / 447.7 MB, free: 0.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004372/0.3148, allocations: 0.5214 MB / 448.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005491/0.3153, allocations: 476.3 kB / 448.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002622/0.3179, allocations: 2.708 MB / 451.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.318, allocations: 0 / 451.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.318, allocations: 0 / 451.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.545e-05/0.318, allocations: 0 / 451.4 MB, free: 12.79 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.005381/0.3234, allocations: 2.729 MB / 454.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.947e-05/0.3235, allocations: 12.03 kB / 454.1 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/0.3246, allocations: 304.3 kB / 454.4 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/0.3283, allocations: 1.456 MB / 455.9 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/0.3286, allocations: 181.6 kB / 456.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003878/0.329, allocations: 219.8 kB / 456.3 MB, free: 7.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004724/0.3337, allocations: 2.152 MB / 458.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.916e-05/0.3338, allocations: 11.88 kB / 458.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/0.334, allocations: 88 kB / 458.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.796e-05/0.334, allocations: 51.98 kB / 458.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003086/0.3371, allocations: 1.518 MB / 460.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01399/0.3511, allocations: 7.549 MB / 467.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003095/0.3543, allocations: 1.348 MB / 469 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.3557, allocations: 0.7111 MB / 469.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.349e-05/0.3558, allocations: 17 kB / 469.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001538/0.3573, allocations: 0.8083 MB / 470.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.316e-06/0.3574, allocations: 0 / 470.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01165/0.369, allocations: 5.763 MB / 476.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003094/0.3694, allocations: 0.5808 MB / 476.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003347/0.3727, allocations: 2.136 MB / 479 MB, free: 336 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002683/0.373, allocations: 61.7 kB / 479.1 MB, free: 268 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001164/0.3742, allocations: 1.065 MB / 480.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005598/0.3748, allocations: 0.4891 MB / 480.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.3749, allocations: 39.94 kB / 480.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.3752, allocations: 361.9 kB / 481 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.3763, allocations: 0.5466 MB / 481.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.378, allocations: 0.9577 MB / 482.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.3793, allocations: 0.7405 MB / 483.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.3793, allocations: 4 kB / 483.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004292/0.3836, allocations: 2.175 MB / 485.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000298/0.384, allocations: 424.8 kB / 485.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.384, allocations: 11.94 kB / 485.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008345/0.3848, allocations: 305.4 kB / 486.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.386, allocations: 303.5 kB / 486.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002754/0.3887, allocations: 2.402 MB / 488.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.3904, allocations: 191.9 kB / 489.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.3905, allocations: 63.98 kB / 489.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.3905, allocations: 4 kB / 489.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002962/0.3935, allocations: 1.692 MB / 490.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.3935, allocations: 11.98 kB / 490.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006574/0.3942, allocations: 275.8 kB / 491.1 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009188/0.3951, allocations: 263.6 kB / 491.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.3973, allocations: 2.281 MB / 493.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.3989, allocations: 148 kB / 493.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.399, allocations: 59.98 kB / 493.8 MB, free: 0.7344 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.001484/0.4005, allocations: 0.7679 MB / 494.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.4009, allocations: 209.6 kB / 494.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/0.4045, allocations: 1.883 MB / 496.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.193e-05/0.4045, allocations: 12 kB / 496.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.4045, allocations: 11.95 kB / 496.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/0.4046, allocations: 11.97 kB / 496.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007387/0.4119, allocations: 4.167 MB / 0.4892 GB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.412, allocations: 0 / 0.4892 GB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.413, allocations: 243.8 kB / 0.4894 GB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007568/0.4138, allocations: 283.9 kB / 0.4897 GB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/0.4139, allocations: 35.98 kB / 0.4897 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/0.4163, allocations: 2.355 MB / 0.492 GB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4164, allocations: 3.938 kB / 0.492 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/0.4216, allocations: 2.694 MB / 0.4946 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.4227, allocations: 446.6 kB / 0.4951 GB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002566/0.423, allocations: 40 kB / 0.4951 GB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.424, allocations: 167.8 kB / 0.4953 GB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/0.4243, allocations: 129 kB / 0.4954 GB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.4244, allocations: 47.98 kB / 0.4954 GB, free: 2.785 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002227/0.4266, allocations: 1.502 MB / 0.4969 GB, free: 1.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4267, allocations: 3.938 kB / 0.4969 GB, free: 1.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002519/0.4292, allocations: 0.7226 MB / 0.4976 GB, free: 0.5664 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 (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.2434/0.6726, allocations: 1.016 MB / 0.4986 GB, free: 73.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006872/0.6795, allocations: 3.004 MB / 0.5015 GB, free: 72.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/0.6796, allocations: 1.375 kB / 0.5015 GB, free: 72.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002029/0.6816, allocations: 1.197 MB / 0.5027 GB, free: 72.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/0.6838, allocations: 352.8 kB / 0.503 GB, free: 71.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.6941, allocations: 6.058 MB / 0.5089 GB, free: 68.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.6952, allocations: 1.591 MB / 0.5105 GB, free: 67.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00118/0.6963, allocations: 254.4 kB / 0.5107 GB, free: 67.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003155/0.6967, allocations: 117.7 kB / 0.5109 GB, free: 67.91 MB / 366.1 MB Notification: Performance of SimCode: time 1.422e-06/0.6967, allocations: 0 / 0.5109 GB, free: 67.91 MB / 366.1 MB Notification: Performance of Templates: time 0.03559/0.7323, allocations: 26.7 MB / 0.5369 GB, free: 45.2 MB / 366.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.makefile (rm -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe >> ../files/EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.sim & ./EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.PSD.PSecu2PA.pipe 2>&1)