Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu1.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.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu1") translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04245/0.04245, allocations: 8.014 MB / 24.16 MB, free: 396 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.0008538/0.0008538, allocations: 110 kB / 26.73 MB, free: 3.277 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.001029/0.001029, allocations: 186.8 kB / 29.41 MB, free: 0.6055 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.284/1.284, allocations: 222.9 MB / 254.9 MB, free: 4.801 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01243/0.01243, allocations: 3.118 MB / 309.9 MB, free: 2.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 95.8 kB / 374.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1794, allocations: 51.97 MB / 426.2 MB, free: 21.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.007817/0.1872, allocations: 9.209 MB / 435.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005383/0.1926, allocations: 3.993 MB / 439.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.1937, allocations: 39.88 kB / 439.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008151/0.1946, allocations: 480.3 kB / 439.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.1957, allocations: 0.6127 MB / 440.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.198, allocations: 1.586 MB / 442.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001714/0.1997, allocations: 2.808 MB / 444.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.2009, allocations: 1.352 MB / 446.3 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000796/0.2017, allocations: 1.102 MB / 447.4 MB, free: 220 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001165/0.2029, allocations: 1.214 MB / 448.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003637/0.2033, allocations: 308 kB / 448.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007352/0.204, allocations: 483.7 kB / 449.4 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005454/0.2046, allocations: 0.6699 MB / 450 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00101/0.2056, allocations: 1.291 MB / 451.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002862/0.2085, allocations: 3.306 MB / 454.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2085, allocations: 0 / 454.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2085, allocations: 0 / 454.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.094e-05/0.2085, allocations: 0 / 454.6 MB, free: 8.938 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: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.004517/0.2131, allocations: 2.853 MB / 457.5 MB, free: 6.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.2131, allocations: 8.031 kB / 457.5 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000504/0.2136, allocations: 280.9 kB / 457.8 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001794/0.2154, allocations: 1.304 MB / 459.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.2156, allocations: 181.6 kB / 459.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/0.2159, allocations: 215.8 kB / 459.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003449/0.2194, allocations: 2.154 MB / 461.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.137e-05/0.2194, allocations: 4 kB / 461.6 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.2196, allocations: 87.94 kB / 461.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.67e-05/0.2197, allocations: 48 kB / 461.7 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002993/0.2227, allocations: 1.483 MB / 463.2 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009804/0.2325, allocations: 7.227 MB / 470.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0026/0.2351, allocations: 1.259 MB / 471.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00129/0.2364, allocations: 0.6871 MB / 472.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.719e-05/0.2365, allocations: 16.98 kB / 472.4 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/0.238, allocations: 0.7902 MB / 473.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 2.565e-06/0.238, allocations: 0 / 473.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.01041/0.2484, allocations: 5.485 MB / 478.7 MB, free: 160 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003042/0.2488, allocations: 0.6561 MB / 479.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.2505, allocations: 1.417 MB / 480.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.2506, allocations: 61.7 kB / 480.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007565/0.2514, allocations: 0.9103 MB / 481.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004073/0.2518, allocations: 492.9 kB / 482.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004659/0.2523, allocations: 275.5 kB / 482.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.2524, allocations: 301.1 kB / 482.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.2535, allocations: 0.5592 MB / 483.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.255, allocations: 0.9602 MB / 484.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005881/0.2609, allocations: 2.893 MB / 487.2 MB, free: 7.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2609, allocations: 4 kB / 487.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.003954/0.2649, allocations: 2.082 MB / 489.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.584e-05/0.265, allocations: 130.8 kB / 489.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.265, allocations: 8 kB / 489.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007427/0.2658, allocations: 273.5 kB / 489.7 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.2668, allocations: 299.5 kB / 490 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.2691, allocations: 2.567 MB / 492.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.2705, allocations: 155.9 kB / 492.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.2706, allocations: 63.98 kB / 492.8 MB, free: 1.262 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.001522/0.2721, allocations: 0.8093 MB / 493.6 MB, free: 460 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001125/0.2733, allocations: 0.8588 MB / 494.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005055/0.2783, allocations: 2.632 MB / 497.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.771e-06/0.2784, allocations: 4 kB / 497.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=187) (initialization_lambda0): time 0.003099/0.2815, allocations: 1.82 MB / 498.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.222e-05/0.2816, allocations: 118.8 kB / 499 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.2816, allocations: 11.94 kB / 499 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006749/0.2823, allocations: 265.8 kB / 499.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009369/0.2832, allocations: 255.6 kB / 499.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002035/0.2853, allocations: 2.486 MB / 0.4902 GB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.2866, allocations: 156 kB / 0.4904 GB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.2867, allocations: 63.97 kB / 0.4904 GB, free: 7.184 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 (159): * Single equations (assignments): 153 * 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.0005203/0.2873, allocations: 409.4 kB / 0.4908 GB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003092/0.2876, allocations: 174 kB / 0.491 GB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/0.2909, allocations: 1.794 MB / 0.4927 GB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.291, allocations: 3.984 kB / 0.4928 GB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.291, allocations: 0 / 0.4928 GB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006005/0.2916, allocations: 383 kB / 0.4931 GB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002368/0.2918, allocations: 36 kB / 0.4932 GB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.2929, allocations: 147.8 kB / 0.4933 GB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.2932, allocations: 117.1 kB / 0.4934 GB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004569/0.2977, allocations: 2.118 MB / 0.4955 GB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004115/0.3019, allocations: 2.448 MB / 0.4979 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001126/0.303, allocations: 0.6505 MB / 0.4985 GB, free: 14.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00139/0.3044, allocations: 0.9826 MB / 0.4995 GB, free: 13.7 MB / 382.1 MB Notification: Performance of Backend: time 3.61e-07/0.3044, allocations: 0 / 0.4995 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007384/0.3118, allocations: 3.64 MB / 0.503 GB, free: 10.47 MB / 382.1 MB Notification: Performance of SimCode: time 0.008354/0.3202, allocations: 4.917 MB / 0.5078 GB, free: 5.449 MB / 382.1 MB Notification: Performance of Templates: time 0.1973/0.5176, allocations: 32.96 MB / 0.54 GB, free: 71.87 MB / 382.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu1.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu1.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe 2>&1)