Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_latest_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_latest_EHPTexamples.PSD.PSecu2") translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.PSD.PSecu2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04724/0.04724, allocations: 8.034 MB / 23.3 MB, free: 80 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.0008636/0.0008635, allocations: 90.84 kB / 25.87 MB, free: 3.355 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.0009981/0.0009982, allocations: 185.1 kB / 28.56 MB, free: 0.7266 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.407/1.407, allocations: 223.3 MB / 254.4 MB, free: 3.758 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01172/0.01172, allocations: 3.112 MB / 310.4 MB, free: 2.141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004739/0.0004739, allocations: 12 kB / 375.4 MB, free: 1.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.298, allocations: 52.97 MB / 428.4 MB, free: 20.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.0088/0.3069, allocations: 8.698 MB / 437.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007436/0.3143, allocations: 3.888 MB / 441 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002255/0.3166, allocations: 35.88 kB / 441 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001863/0.3185, allocations: 0.5874 MB / 441.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00304/0.3216, allocations: 0.6333 MB / 442.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00366/0.3253, allocations: 1.397 MB / 443.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004068/0.3293, allocations: 2.64 MB / 446.3 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002311/0.3317, allocations: 1.22 MB / 447.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.3332, allocations: 0.8632 MB / 448.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.3351, allocations: 1.05 MB / 449.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007059/0.3359, allocations: 100 kB / 449.5 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.3372, allocations: 267.7 kB / 449.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000921/0.3381, allocations: 0.5329 MB / 450.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001578/0.3397, allocations: 1.151 MB / 451.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003909/0.3436, allocations: 3.308 MB / 454.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.3436, allocations: 4 kB / 454.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3437, allocations: 4 kB / 454.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.899e-05/0.3437, allocations: 0 / 454.8 MB, free: 10.16 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.005495/0.3492, allocations: 2.706 MB / 457.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3493, allocations: 8.031 kB / 457.5 MB, free: 7.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007286/0.35, allocations: 312.3 kB / 457.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/0.3524, allocations: 1.52 MB / 459.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.3526, allocations: 189.7 kB / 459.5 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002915/0.3529, allocations: 211.8 kB / 459.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00391/0.3569, allocations: 2.18 MB / 461.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.483e-05/0.3569, allocations: 4 kB / 461.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.3571, allocations: 88 kB / 462 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.674e-05/0.3572, allocations: 48 kB / 462 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003226/0.3604, allocations: 1.534 MB / 463.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01233/0.3727, allocations: 7.545 MB / 471.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00278/0.3755, allocations: 1.345 MB / 472.5 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.3769, allocations: 0.715 MB / 473.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-05/0.377, allocations: 20.98 kB / 473.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001499/0.3785, allocations: 0.8161 MB / 474 MB, free: 6.449 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 2.975e-06/0.3786, allocations: 0 / 474 MB, free: 6.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01118/0.3897, allocations: 5.786 MB / 479.8 MB, free: 444 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003451/0.3901, allocations: 0.6059 MB / 480.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00289/0.393, allocations: 2.152 MB / 482.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/0.3933, allocations: 61.64 kB / 482.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009622/0.3942, allocations: 1.065 MB / 483.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004796/0.3947, allocations: 492.9 kB / 484.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.3949, allocations: 125.6 kB / 484.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.395, allocations: 309.1 kB / 484.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.3962, allocations: 0.5661 MB / 485.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.3976, allocations: 0.976 MB / 486.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00616/0.4038, allocations: 2.979 MB / 489.1 MB, free: 6.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.4038, allocations: 8 kB / 489.1 MB, free: 6.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004946/0.4088, allocations: 2.195 MB / 491.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004469/0.4093, allocations: 428.6 kB / 491.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.4093, allocations: 8 kB / 491.7 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000805/0.4101, allocations: 281.5 kB / 492 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.4113, allocations: 307.6 kB / 492.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/0.4137, allocations: 2.405 MB / 494.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/0.4155, allocations: 183.9 kB / 494.9 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.4156, allocations: 59.98 kB / 495 MB, free: 408 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.4156, allocations: 4 kB / 495 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003056/0.4187, allocations: 1.723 MB / 496.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.4187, allocations: 11.98 kB / 496.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006983/0.4194, allocations: 265.5 kB / 497 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009264/0.4204, allocations: 263.6 kB / 497.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001904/0.4223, allocations: 2.301 MB / 499.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.424, allocations: 140 kB / 499.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.4241, allocations: 59.98 kB / 499.7 MB, free: 11.42 MB / 366.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,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,gen.limTau.state,mot.limTau.state,dragForce.mode,$PRE.dragForce.mode,dragForce.locked,dragForce.startBackward,$PRE.dragForce.startBackward,dragForce.startForward,$PRE.dragForce.startForward,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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001393/0.4255, allocations: 0.7827 MB / 0.4888 GB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003471/0.4258, allocations: 205.6 kB / 0.489 GB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003559/0.4294, allocations: 1.903 MB / 0.4908 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4294, allocations: 12 kB / 0.4908 GB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4295, allocations: 0 / 0.4908 GB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.4295, allocations: 11.97 kB / 0.4908 GB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006812/0.4363, allocations: 4.187 MB / 0.4949 GB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.4363, allocations: 8.125 kB / 0.4949 GB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.4374, allocations: 235.8 kB / 0.4952 GB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007334/0.4381, allocations: 275.5 kB / 0.4954 GB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.4382, allocations: 43.97 kB / 0.4955 GB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/0.4403, allocations: 2.362 MB / 0.4978 GB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4403, allocations: 0 / 0.4978 GB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004795/0.4451, allocations: 2.713 MB / 0.5004 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000949/0.4461, allocations: 438.7 kB / 0.5008 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002403/0.4464, allocations: 40 kB / 0.5009 GB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.4475, allocations: 171.8 kB / 0.501 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002471/0.4478, allocations: 117 kB / 0.5011 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.8e-05/0.4479, allocations: 51.97 kB / 0.5012 GB, free: 13.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002012/0.4499, allocations: 1.517 MB / 0.5027 GB, free: 11.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4499, allocations: 0 / 0.5027 GB, free: 11.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002183/0.4521, allocations: 0.7304 MB / 0.5034 GB, free: 11.19 MB / 382.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002382/0.4545, allocations: 1 MB / 0.5044 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005529/0.4601, allocations: 3.018 MB / 0.5073 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/0.4601, allocations: 7.938 kB / 0.5073 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.4622, allocations: 1.195 MB / 0.5085 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.465, allocations: 372.4 kB / 0.5088 GB, free: 5.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1915/0.6565, allocations: 6.338 MB / 0.515 GB, free: 85.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001636/0.6582, allocations: 1.586 MB / 0.5166 GB, free: 84.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0013/0.6595, allocations: 260.8 kB / 0.5168 GB, free: 84.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004005/0.66, allocations: 121.7 kB / 0.517 GB, free: 84.52 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.66, allocations: 1.281 kB / 0.517 GB, free: 84.52 MB / 382.1 MB Notification: Performance of Templates: time 0.04357/0.7035, allocations: 27.6 MB / 0.5439 GB, free: 67 MB / 382.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2.makefile (rm -f EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe >> ../files/EHPTexamples_latest_EHPTexamples.PSD.PSecu2.sim & ./EHPTexamples_latest_EHPTexamples.PSD.PSecu2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.PSD.PSecu2.pipe 2>&1)