Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_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_EHPTexamples.PSD.PSecu2PA") translateModel(EHPTexamples.PSD.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu2PA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05902/0.05902, allocations: 8.028 MB / 23.01 MB, free: 0.5586 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.0007013/0.0007013, allocations: 91.14 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.0008447/0.0008446, allocations: 186.8 kB / 28.23 MB, free: 1.031 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.43/1.43, allocations: 223.3 MB / 254 MB, free: 5.734 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01229/0.01229, allocations: 3.121 MB / 310 MB, free: 0.8633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005833/0.0005834, allocations: 16 kB / 374.8 MB, free: 48 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2332, allocations: 52.98 MB / 427.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2PA): time 0.01082/0.2441, allocations: 8.152 MB / 435.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008779/0.2529, allocations: 3.77 MB / 439.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002372/0.2553, allocations: 39.88 kB / 439.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.2573, allocations: 0.5796 MB / 440.3 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002517/0.2599, allocations: 0.5943 MB / 440.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004465/0.2643, allocations: 1.126 MB / 442 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004445/0.2688, allocations: 2.496 MB / 444.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002708/0.2715, allocations: 1.046 MB / 445.6 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.2734, allocations: 0.8285 MB / 446.4 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/0.2748, allocations: 0.9759 MB / 447.4 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005215/0.2753, allocations: 96 kB / 447.5 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.2765, allocations: 243.8 kB / 447.7 MB, free: 500 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007712/0.2773, allocations: 0.5292 MB / 448.2 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.2783, allocations: 476.3 kB / 448.7 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004346/0.2827, allocations: 2.7 MB / 451.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.2827, allocations: 4 kB / 451.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2827, allocations: 0 / 451.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001646/0.2829, allocations: 0 / 451.4 MB, free: 12.77 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.007322/0.2903, allocations: 2.729 MB / 454.1 MB, free: 9.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2903, allocations: 19.97 kB / 454.2 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008786/0.2912, allocations: 304.3 kB / 454.5 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.2941, allocations: 1.448 MB / 455.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/0.2944, allocations: 185.6 kB / 456.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004799/0.2949, allocations: 219.8 kB / 456.3 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005883/0.3007, allocations: 2.147 MB / 458.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.557e-05/0.3009, allocations: 4 kB / 458.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003403/0.3012, allocations: 95.98 kB / 458.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.457e-05/0.3013, allocations: 51.94 kB / 458.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004265/0.3055, allocations: 1.518 MB / 460.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01657/0.3221, allocations: 7.553 MB / 467.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003609/0.3258, allocations: 1.345 MB / 469 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/0.3275, allocations: 0.7111 MB / 469.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.3276, allocations: 20.92 kB / 469.7 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002025/0.3297, allocations: 0.8123 MB / 470.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 4.869e-06/0.3297, allocations: 0 / 470.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01288/0.3426, allocations: 5.756 MB / 476.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002908/0.3429, allocations: 0.5808 MB / 476.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003906/0.3468, allocations: 2.14 MB / 479 MB, free: 312 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002105/0.3471, allocations: 57.7 kB / 479.1 MB, free: 248 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.3483, allocations: 1.073 MB / 480.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005816/0.3489, allocations: 496.8 kB / 480.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.349, allocations: 36 kB / 480.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.3492, allocations: 357.9 kB / 481 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.3504, allocations: 0.5583 MB / 481.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.352, allocations: 0.9577 MB / 482.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.3534, allocations: 0.7288 MB / 483.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.3534, allocations: 4 kB / 483.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004372/0.3578, allocations: 2.171 MB / 485.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003314/0.3581, allocations: 424.8 kB / 485.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.3582, allocations: 8 kB / 485.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008793/0.3591, allocations: 305.4 kB / 486.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.3602, allocations: 303.6 kB / 486.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/0.3627, allocations: 2.397 MB / 488.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.3642, allocations: 191.9 kB / 489.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.3643, allocations: 59.98 kB / 489.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.825e-06/0.3643, allocations: 4 kB / 489.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002996/0.3673, allocations: 1.704 MB / 490.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.3674, allocations: 11.98 kB / 490.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006687/0.368, allocations: 273.8 kB / 491.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009135/0.369, allocations: 263.6 kB / 491.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.371, allocations: 2.289 MB / 493.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.3726, allocations: 148 kB / 493.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.3727, allocations: 59.98 kB / 493.8 MB, free: 0.7188 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.001456/0.3742, allocations: 0.7626 MB / 494.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004396/0.3746, allocations: 205.7 kB / 494.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.3783, allocations: 1.899 MB / 496.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.3784, allocations: 12 kB / 496.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3784, allocations: 7.953 kB / 496.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.3784, allocations: 7.969 kB / 496.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007489/0.3859, allocations: 4.175 MB / 0.4892 GB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.3859, allocations: 3.938 kB / 0.4892 GB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.387, allocations: 243.9 kB / 0.4894 GB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000803/0.3878, allocations: 276.2 kB / 0.4897 GB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.3879, allocations: 35.98 kB / 0.4897 GB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.3903, allocations: 2.362 MB / 0.492 GB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3903, allocations: 4.031 kB / 0.492 GB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005068/0.3954, allocations: 2.69 MB / 0.4946 GB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.3965, allocations: 450.6 kB / 0.4951 GB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005115/0.3971, allocations: 40 kB / 0.4951 GB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.3984, allocations: 167.8 kB / 0.4953 GB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002742/0.3987, allocations: 125.1 kB / 0.4954 GB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.3988, allocations: 47.98 kB / 0.4954 GB, free: 2.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002672/0.4015, allocations: 1.502 MB / 0.4969 GB, free: 1.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4015, allocations: 0 / 0.4969 GB, free: 1.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003236/0.4047, allocations: 0.7187 MB / 0.4976 GB, free: 0.5586 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.2087/0.6134, allocations: 1.007 MB / 0.4986 GB, free: 72.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006437/0.6199, allocations: 3.01 MB / 0.5015 GB, free: 71.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.6199, allocations: 1.062 kB / 0.5015 GB, free: 71.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002711/0.6227, allocations: 1.196 MB / 0.5027 GB, free: 70.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/0.6256, allocations: 349.7 kB / 0.503 GB, free: 70.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009225/0.6349, allocations: 6.065 MB / 0.509 GB, free: 67.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001453/0.6364, allocations: 1.588 MB / 0.5105 GB, free: 66.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001411/0.6378, allocations: 258.5 kB / 0.5108 GB, free: 66.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003412/0.6381, allocations: 115.2 kB / 0.5109 GB, free: 66.58 MB / 366.1 MB Notification: Performance of SimCode: time 2.284e-06/0.6382, allocations: 4.5 kB / 0.5109 GB, free: 66.57 MB / 366.1 MB Notification: Performance of Templates: time 0.04079/0.679, allocations: 26.7 MB / 0.5369 GB, free: 43.63 MB / 366.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu2PA.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu2PA.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu2PA -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu2PA.pipe 2>&1)