Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2.conf.json 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/EHPTlib 2.1.4-main/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-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) Running command: translateModel(EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2") translateModel(EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 91.45 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00945/0.00945, allocations: 172.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1803/0.1803, allocations: 8.927 MB / 300.4 MB, free: 3.039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003024/0.0003025, allocations: 8 kB / 363.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1129, allocations: 52.48 MB / 416.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2): time 0.008908/0.1218, allocations: 6.712 MB / 422.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.188/0.3099, allocations: 3.035 MB / 425.8 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009303/0.3109, allocations: 26.28 kB / 425.8 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006456/0.3115, allocations: 344.2 kB / 426.2 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009049/0.3124, allocations: 452.9 kB / 426.6 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.314, allocations: 1.077 MB / 427.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.3155, allocations: 1.912 MB / 429.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009421/0.3165, allocations: 0.8961 MB / 430.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004869/0.317, allocations: 0.5202 MB / 431 MB, free: 34.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005417/0.3175, allocations: 0.6528 MB / 431.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.3176, allocations: 62.19 kB / 431.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002805/0.3179, allocations: 157.4 kB / 431.9 MB, free: 33.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002692/0.3182, allocations: 383.5 kB / 432.3 MB, free: 33.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004372/0.3187, allocations: 0.7937 MB / 433 MB, free: 33.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001456/0.3201, allocations: 2.501 MB / 435.5 MB, free: 33.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3201, allocations: 0 / 435.5 MB, free: 33.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3201, allocations: 0 / 435.5 MB, free: 33.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.3202, allocations: 0.75 kB / 435.5 MB, free: 33.09 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.002642/0.3228, allocations: 1.915 MB / 437.5 MB, free: 31.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.3228, allocations: 9.656 kB / 437.5 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.3231, allocations: 209 kB / 437.7 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.3244, allocations: 1.298 MB / 439 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.3245, allocations: 126.3 kB / 439.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.3247, allocations: 124.2 kB / 439.2 MB, free: 30.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/0.3268, allocations: 1.343 MB / 440.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.3268, allocations: 3.938 kB / 440.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.523e-05/0.3269, allocations: 48.97 kB / 440.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.3269, allocations: 28.53 kB / 440.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002008/0.3289, allocations: 1.033 MB / 441.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005948/0.3349, allocations: 5.331 MB / 447 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.3367, allocations: 0.9702 MB / 448 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007083/0.3374, allocations: 404.8 kB / 448.4 MB, free: 25.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.27e-05/0.3375, allocations: 15.78 kB / 448.4 MB, free: 25.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009147/0.3384, allocations: 0.5041 MB / 448.9 MB, free: 25.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.334e-06/0.3384, allocations: 3.938 kB / 448.9 MB, free: 25.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=71): time 0.005688/0.3441, allocations: 3.334 MB / 452.2 MB, free: 23.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.407e-05/0.3442, allocations: 332.7 kB / 452.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/0.3465, allocations: 1.879 MB / 454.4 MB, free: 22.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-05/0.3466, allocations: 44.14 kB / 454.5 MB, free: 22.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005179/0.3471, allocations: 0.7612 MB / 455.2 MB, free: 22.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.3473, allocations: 245.7 kB / 455.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.3474, allocations: 107.3 kB / 455.6 MB, free: 21.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.3475, allocations: 344.6 kB / 455.9 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008282/0.3483, allocations: 420.2 kB / 456.3 MB, free: 21.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009172/0.3492, allocations: 0.6728 MB / 457 MB, free: 20.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00173/0.351, allocations: 1.149 MB / 458.2 MB, free: 20.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.351, allocations: 0 / 458.2 MB, free: 20.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002295/0.3533, allocations: 1.381 MB / 459.5 MB, free: 19.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.3534, allocations: 352.2 kB / 459.9 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3534, allocations: 3.312 kB / 459.9 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.3536, allocations: 47.3 kB / 459.9 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007555/0.3544, allocations: 242.6 kB / 460.2 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009734/0.3554, allocations: 1.426 MB / 461.6 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008186/0.3562, allocations: 98.59 kB / 461.7 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.561e-05/0.3563, allocations: 42.41 kB / 461.7 MB, free: 17.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.472e-06/0.3563, allocations: 8.156 kB / 461.7 MB, free: 17.76 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001671/0.358, allocations: 1.114 MB / 462.8 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.358, allocations: 5.969 kB / 462.9 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001098/0.3581, allocations: 44.36 kB / 462.9 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/0.3587, allocations: 220.4 kB / 463.1 MB, free: 17.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007768/0.3595, allocations: 1.441 MB / 464.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006578/0.3602, allocations: 69.02 kB / 464.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.3603, allocations: 46.69 kB / 464.7 MB, free: 15.77 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: genset.iceT.wSensor.flange.phi:VARIABLE(flow=false unit = "rad" fixed = true ) "Absolute rotation angle of flange" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 10 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,genset.gen.limTau.state,genset.gen.limitingTorque,$whenCondition1,genset.toFuelGrams.local_reset,genset.iceT.tokgFuel.local_reset,genset.gen.pDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007936/0.3611, allocations: 0.6247 MB / 465.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.3612, allocations: 156.2 kB / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.3633, allocations: 1.069 MB / 466.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3633, allocations: 6.938 kB / 466.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3633, allocations: 8.469 kB / 466.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.3633, allocations: 3.375 kB / 466.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003595/0.3669, allocations: 2.652 MB / 469.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3669, allocations: 0 / 469.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006208/0.3676, allocations: 151 kB / 469.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001261/0.3677, allocations: 44.8 kB / 469.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.3678, allocations: 20.12 kB / 469.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007673/0.3685, allocations: 1.422 MB / 470.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3686, allocations: 0 / 470.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002751/0.3713, allocations: 1.631 MB / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004101/0.3717, allocations: 363.9 kB / 472.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3719, allocations: 18.78 kB / 472.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006416/0.3725, allocations: 92.81 kB / 472.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3727, allocations: 53.45 kB / 473 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.3727, allocations: 22.66 kB / 473 MB, free: 10.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001673/0.3744, allocations: 1.315 MB / 474.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3744, allocations: 0 / 474.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001342/0.3758, allocations: 450 kB / 474.7 MB, free: 10.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (genset.gen.pDC.integrator1.y,genset.iceT.inertia.w,genset.iceT.wSensor.flange.phi,genset.iceT.tokgFuel.y,genset.toFuelGrams.y) * Number of discrete variables: 5 ($whenCondition1,genset.gen.limitingTorque,genset.gen.limTau.state,trapezoid.T_start,trapezoid.count) * Number of discrete states: 2 (trapezoid.count,genset.gen.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002536/0.3783, allocations: 0.7112 MB / 475.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003153/0.3815, allocations: 2.096 MB / 477.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3815, allocations: 1 kB / 477.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.3825, allocations: 0.6891 MB / 478.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.3837, allocations: 220.1 kB / 478.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004544/0.3882, allocations: 3.732 MB / 482.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009457/0.3892, allocations: 1.323 MB / 483.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007676/0.39, allocations: 223.9 kB / 483.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.3903, allocations: 93.84 kB / 483.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3903, allocations: 0 / 483.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of Templates: time 0.02721/0.4175, allocations: 16.16 MB / 500 MB, free: 11.44 MB / 366.1 MB make -j1 -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2.makefile (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2.sim & ./EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset2.pipe 2>&1)