Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_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_main_EHPTexamples.PSD.PSecu2PA") translateModel(EHPTexamples.PSD.PSecu2PA,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2PA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04391/0.04391, allocations: 8.007 MB / 24.16 MB, free: 400 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.0009028/0.0009028, allocations: 107.7 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.001248/0.001248, allocations: 194.2 kB / 29.42 MB, free: 0.5977 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.26/1.26, allocations: 222.9 MB / 254.8 MB, free: 4.805 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.123 MB / 309.9 MB, free: 2.418 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 95.84 kB / 374.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1782, allocations: 51.97 MB / 426.2 MB, free: 21.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2PA): time 0.007642/0.1859, allocations: 9.299 MB / 435.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004846/0.1908, allocations: 3.977 MB / 439.5 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008154/0.1916, allocations: 43.81 kB / 439.5 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007466/0.1923, allocations: 468.4 kB / 440 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.1934, allocations: 0.6204 MB / 440.6 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.1955, allocations: 1.552 MB / 442.1 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001657/0.1972, allocations: 2.801 MB / 444.9 MB, free: 2.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.1984, allocations: 1.376 MB / 446.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007882/0.1992, allocations: 1.102 MB / 447.4 MB, free: 156 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001132/0.2003, allocations: 1.21 MB / 448.6 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003476/0.2007, allocations: 312 kB / 448.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006952/0.2014, allocations: 479.8 kB / 449.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005443/0.2019, allocations: 0.6776 MB / 450.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.203, allocations: 1.291 MB / 451.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002777/0.2057, allocations: 3.31 MB / 454.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2058, allocations: 0 / 454.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.2058, allocations: 3.984 kB / 454.7 MB, free: 8.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.106e-05/0.2058, allocations: 0 / 454.7 MB, free: 8.863 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.004443/0.2103, allocations: 2.861 MB / 457.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.2103, allocations: 11.97 kB / 457.6 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004442/0.2108, allocations: 276.8 kB / 457.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.2124, allocations: 1.312 MB / 459.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.2126, allocations: 185.7 kB / 459.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000265/0.2129, allocations: 215.8 kB / 459.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003274/0.2161, allocations: 2.138 MB / 461.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.114e-05/0.2162, allocations: 11.92 kB / 461.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.2164, allocations: 88 kB / 461.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.2164, allocations: 51.94 kB / 461.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.2192, allocations: 1.471 MB / 463.3 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009738/0.2289, allocations: 7.247 MB / 470.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002609/0.2315, allocations: 1.298 MB / 471.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/0.2328, allocations: 0.676 MB / 472.5 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.758e-05/0.2329, allocations: 24.97 kB / 472.5 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001421/0.2343, allocations: 0.7771 MB / 473.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.096e-06/0.2343, allocations: 0 / 473.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01004/0.2444, allocations: 5.474 MB / 478.8 MB, free: 60 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002749/0.2447, allocations: 0.6059 MB / 479.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.2464, allocations: 1.426 MB / 480.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.2466, allocations: 61.64 kB / 480.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007382/0.2473, allocations: 0.926 MB / 481.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003742/0.2477, allocations: 492.9 kB / 482.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004345/0.2481, allocations: 279.4 kB / 482.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2482, allocations: 309 kB / 482.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.2495, allocations: 0.5435 MB / 483.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.2511, allocations: 0.9469 MB / 484.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0065/0.2577, allocations: 2.878 MB / 487.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.2577, allocations: 4 kB / 487.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004247/0.2619, allocations: 2.082 MB / 489.3 MB, free: 4.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.28e-05/0.262, allocations: 126.8 kB / 489.4 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.2621, allocations: 4 kB / 489.4 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.2632, allocations: 289.7 kB / 489.7 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.2643, allocations: 291.6 kB / 490 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.2669, allocations: 2.532 MB / 492.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.2683, allocations: 151.9 kB / 492.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.2684, allocations: 59.98 kB / 492.8 MB, free: 1.297 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.001468/0.2699, allocations: 0.8191 MB / 493.6 MB, free: 488 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001097/0.271, allocations: 0.8493 MB / 494.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005106/0.2761, allocations: 2.663 MB / 497.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.261e-06/0.2761, allocations: 4 kB / 497.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=189) (initialization_lambda0): time 0.003266/0.2794, allocations: 1.859 MB / 498.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.65e-05/0.2795, allocations: 127.8 kB / 499.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.2795, allocations: 8 kB / 499.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006542/0.2802, allocations: 265.9 kB / 499.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009137/0.2811, allocations: 263.6 kB / 499.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002141/0.2833, allocations: 2.452 MB / 0.4903 GB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.2848, allocations: 144.3 kB / 0.4904 GB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.285, allocations: 60 kB / 0.4905 GB, free: 7.188 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.0005262/0.2855, allocations: 421.3 kB / 0.4909 GB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000275/0.2858, allocations: 174 kB / 0.491 GB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003212/0.289, allocations: 1.79 MB / 0.4928 GB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.289, allocations: 7.984 kB / 0.4928 GB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.289, allocations: 0 / 0.4928 GB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005757/0.2896, allocations: 375.1 kB / 0.4932 GB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001996/0.2898, allocations: 40 kB / 0.4932 GB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.2909, allocations: 143.8 kB / 0.4933 GB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.2911, allocations: 121.1 kB / 0.4934 GB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004408/0.2956, allocations: 2.104 MB / 0.4955 GB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003997/0.2996, allocations: 2.444 MB / 0.4979 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001089/0.3007, allocations: 0.6583 MB / 0.4985 GB, free: 14.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001275/0.302, allocations: 0.979 MB / 0.4995 GB, free: 13.72 MB / 382.1 MB Notification: Performance of Backend: time 3.91e-07/0.302, allocations: 0 / 0.4995 GB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007062/0.309, allocations: 3.617 MB / 0.503 GB, free: 10.51 MB / 382.1 MB Notification: Performance of SimCode: time 0.00635/0.3154, allocations: 4.967 MB / 0.5079 GB, free: 5.445 MB / 382.1 MB Notification: Performance of Templates: time 0.1927/0.5081, allocations: 32.71 MB / 0.5398 GB, free: 72.14 MB / 382.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu2PA -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu2PA.pipe 2>&1)