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.04563/0.04563, allocations: 8.014 MB / 24.15 MB, free: 412 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.0009267/0.0009267, allocations: 100.2 kB / 26.73 MB, free: 3.285 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.001002/0.001002, allocations: 192.5 kB / 29.41 MB, free: 0.6172 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.285/1.285, allocations: 222.9 MB / 254.8 MB, free: 4.844 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01228/0.01228, allocations: 3.121 MB / 309.9 MB, free: 2.434 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001646, allocations: 91.84 kB / 374.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1804, allocations: 51.97 MB / 426.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.007752/0.1882, allocations: 9.31 MB / 435.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005195/0.1934, allocations: 3.962 MB / 439.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009924/0.1944, allocations: 47.81 kB / 439.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008657/0.1953, allocations: 476.3 kB / 440 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.1966, allocations: 0.6166 MB / 440.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002359/0.199, allocations: 1.55 MB / 442.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001782/0.2008, allocations: 2.816 MB / 445 MB, free: 2.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.202, allocations: 1.372 MB / 446.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008506/0.2029, allocations: 1.102 MB / 447.4 MB, free: 156 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.2041, allocations: 1.218 MB / 448.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003348/0.2044, allocations: 308 kB / 449 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000673/0.2051, allocations: 487.7 kB / 449.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005029/0.2056, allocations: 0.6737 MB / 450.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009711/0.2066, allocations: 1.298 MB / 451.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00279/0.2094, allocations: 3.318 MB / 454.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2094, allocations: 0 / 454.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2094, allocations: 0 / 454.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.864e-05/0.2094, allocations: 0 / 454.7 MB, free: 8.844 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.004447/0.2139, allocations: 2.861 MB / 457.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2139, allocations: 8.031 kB / 457.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004508/0.2144, allocations: 276.9 kB / 457.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.2161, allocations: 1.312 MB / 459.2 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.2162, allocations: 181.7 kB / 459.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002585/0.2165, allocations: 215.8 kB / 459.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003364/0.2198, allocations: 2.158 MB / 461.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.241e-05/0.2199, allocations: 7.938 kB / 461.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001666/0.2201, allocations: 91.94 kB / 461.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.554e-05/0.2201, allocations: 48 kB / 461.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002842/0.223, allocations: 1.483 MB / 463.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/0.2335, allocations: 7.255 MB / 470.6 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.2362, allocations: 1.286 MB / 471.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001288/0.2375, allocations: 0.676 MB / 472.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.469e-05/0.2377, allocations: 24.98 kB / 472.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001537/0.2392, allocations: 0.7849 MB / 473.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 2.866e-06/0.2392, allocations: 0 / 473.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01012/0.2493, allocations: 5.481 MB / 478.9 MB, free: 4 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002835/0.2496, allocations: 0.631 MB / 479.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/0.2516, allocations: 1.422 MB / 480.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.2517, allocations: 61.7 kB / 481 MB, free: 13.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007118/0.2524, allocations: 0.9182 MB / 481.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003834/0.2528, allocations: 0.4892 MB / 482.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004399/0.2532, allocations: 279.4 kB / 482.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.249e-05/0.2533, allocations: 305.1 kB / 482.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.2544, allocations: 0.5396 MB / 483.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.2559, allocations: 0.9516 MB / 484.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00593/0.2618, allocations: 2.897 MB / 487.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2618, allocations: 0 / 487.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004083/0.2659, allocations: 2.078 MB / 489.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.732e-05/0.266, allocations: 122.8 kB / 489.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.266, allocations: 8 kB / 489.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000747/0.2668, allocations: 278.6 kB / 489.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.2679, allocations: 287.6 kB / 490.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/0.2704, allocations: 2.545 MB / 492.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.2717, allocations: 151.9 kB / 492.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.2719, allocations: 60 kB / 492.8 MB, free: 1.203 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001494/0.2734, allocations: 0.8198 MB / 493.7 MB, free: 392 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001127/0.2745, allocations: 0.858 MB / 494.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005045/0.2796, allocations: 2.667 MB / 497.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.838e-06/0.2796, allocations: 4 kB / 497.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=189) (initialization_lambda0): time 0.003167/0.2828, allocations: 1.852 MB / 499 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/0.2828, allocations: 127.9 kB / 499.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.2829, allocations: 11.94 kB / 499.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006616/0.2835, allocations: 265.5 kB / 499.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009284/0.2845, allocations: 259.6 kB / 499.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.2864, allocations: 2.456 MB / 0.4904 GB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.2878, allocations: 144 kB / 0.4905 GB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.2879, allocations: 67.92 kB / 0.4906 GB, free: 7.078 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.0005157/0.2884, allocations: 413.4 kB / 0.491 GB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002517/0.2887, allocations: 170 kB / 0.4911 GB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003327/0.292, allocations: 1.794 MB / 0.4929 GB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.292, allocations: 3.984 kB / 0.4929 GB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.292, allocations: 0 / 0.4929 GB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005465/0.2926, allocations: 375 kB / 0.4932 GB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/0.2928, allocations: 39.98 kB / 0.4933 GB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.2939, allocations: 143.9 kB / 0.4934 GB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.2941, allocations: 117.1 kB / 0.4935 GB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004511/0.2986, allocations: 2.114 MB / 0.4956 GB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004097/0.3027, allocations: 2.444 MB / 0.498 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001135/0.3039, allocations: 0.6466 MB / 0.4986 GB, free: 14.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001304/0.3052, allocations: 0.9869 MB / 0.4996 GB, free: 13.62 MB / 382.1 MB Notification: Performance of Backend: time 3.61e-07/0.3052, allocations: 4 kB / 0.4996 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007178/0.3124, allocations: 3.63 MB / 0.5031 GB, free: 10.38 MB / 382.1 MB Notification: Performance of SimCode: time 0.006263/0.3187, allocations: 4.95 MB / 0.508 GB, free: 5.336 MB / 382.1 MB Notification: Performance of Templates: time 0.1968/0.5155, allocations: 32.84 MB / 0.54 GB, free: 71.89 MB / 382.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)