Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset.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.TestGenset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset") translateModel(EHPTlib.MapBased.TestingModels.TestGenset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001857/0.001865, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001966/0.001966, allocations: 193.8 kB / 16.26 MB, free: 6.621 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.493/1.493, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1951/0.1951, allocations: 8.234 MB / 298.3 MB, free: 2.336 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 63.89 kB / 360.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1152, allocations: 51.3 MB / 411.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGenset): time 0.01078/0.126, allocations: 6.875 MB / 418.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007212/0.1332, allocations: 3.054 MB / 421.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.1346, allocations: 31.88 kB / 421.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.1358, allocations: 0.4904 MB / 422.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001358/0.1372, allocations: 0.4979 MB / 422.7 MB, free: 4 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2212/0.3585, allocations: 1.112 MB / 423.8 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002346/0.3608, allocations: 1.983 MB / 425.8 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000975/0.3618, allocations: 0.864 MB / 426.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007351/0.3626, allocations: 0.7259 MB / 427.4 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006651/0.3633, allocations: 0.8653 MB / 428.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.3634, allocations: 208.3 kB / 428.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004203/0.3639, allocations: 319.7 kB / 428.8 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.3642, allocations: 0.5425 MB / 429.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005079/0.3647, allocations: 0.9437 MB / 430.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001636/0.3664, allocations: 2.546 MB / 432.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3664, allocations: 0 / 432.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3664, allocations: 0 / 432.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.864e-05/0.3664, allocations: 2.375 kB / 432.8 MB, free: 34.38 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002811/0.3692, allocations: 2.25 MB / 435 MB, free: 32.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3693, allocations: 13.64 kB / 435.1 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003434/0.3696, allocations: 209.8 kB / 435.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.3709, allocations: 1.238 MB / 436.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.371, allocations: 116.1 kB / 436.6 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.3712, allocations: 112.3 kB / 436.7 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/0.3731, allocations: 1.235 MB / 438 MB, free: 31.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.38e-05/0.3732, allocations: 3.062 kB / 438 MB, free: 31.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.004e-05/0.3733, allocations: 44.66 kB / 438 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.3733, allocations: 25.06 kB / 438 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.375, allocations: 0.9088 MB / 438.9 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005323/0.3804, allocations: 4.932 MB / 443.9 MB, free: 27.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.3823, allocations: 0.9284 MB / 444.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006177/0.3829, allocations: 349 kB / 445.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.794e-05/0.383, allocations: 15.67 kB / 445.2 MB, free: 27.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009258/0.3839, allocations: 463.6 kB / 445.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.026e-06/0.3839, allocations: 3.188 kB / 445.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=69): time 0.005372/0.3893, allocations: 3.03 MB / 448.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.3894, allocations: 326.1 kB / 449 MB, free: 25.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00246/0.3919, allocations: 2.103 MB / 451.1 MB, free: 24.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.696e-05/0.392, allocations: 40.36 kB / 451.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005334/0.3925, allocations: 0.7719 MB / 451.9 MB, free: 23.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.3927, allocations: 232.7 kB / 452.1 MB, free: 23.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.3929, allocations: 188.2 kB / 452.3 MB, free: 23.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.603e-05/0.393, allocations: 341.9 kB / 452.6 MB, free: 23.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007275/0.3937, allocations: 363.7 kB / 453 MB, free: 22.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000851/0.3946, allocations: 0.5813 MB / 453.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.3961, allocations: 1.015 MB / 454.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3962, allocations: 3.125 kB / 454.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002121/0.3983, allocations: 1.232 MB / 455.8 MB, free: 21.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.826e-05/0.3984, allocations: 95.39 kB / 455.9 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3984, allocations: 6.625 kB / 455.9 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.3986, allocations: 48.11 kB / 456 MB, free: 21.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006997/0.3993, allocations: 202.4 kB / 456.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.4003, allocations: 1.547 MB / 457.7 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008441/0.4012, allocations: 83.42 kB / 457.8 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.4012, allocations: 35.09 kB / 457.8 MB, free: 19.73 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001261/0.4025, allocations: 0.7462 MB / 458.6 MB, free: 19.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006354/0.4031, allocations: 0.5341 MB / 459.1 MB, free: 18.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001233/0.4044, allocations: 0.9202 MB / 460 MB, free: 18.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.318e-06/0.4044, allocations: 6.375 kB / 460 MB, free: 18.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=116) (initialization_lambda0): time 0.001785/0.4062, allocations: 1.135 MB / 461.2 MB, free: 17.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.4063, allocations: 93.58 kB / 461.2 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4063, allocations: 6.062 kB / 461.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001312/0.4064, allocations: 44.91 kB / 461.3 MB, free: 17.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.407, allocations: 188.8 kB / 461.5 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009879/0.408, allocations: 1.543 MB / 463 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008017/0.4088, allocations: 68.59 kB / 463.1 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.984e-05/0.4089, allocations: 38.38 kB / 463.1 MB, free: 16.17 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: 22 * 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 (111): * Single equations (assignments): 107 * 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.0003397/0.4093, allocations: 306.1 kB / 463.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/0.4095, allocations: 161.6 kB / 463.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/0.4117, allocations: 0.9736 MB / 464.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.4117, allocations: 6.531 kB / 464.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.4117, allocations: 1.156 kB / 464.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.4117, allocations: 4.797 kB / 464.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004153/0.4159, allocations: 2.454 MB / 467 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.4159, allocations: 0 / 467 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006036/0.4165, allocations: 140.3 kB / 467.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.4167, allocations: 38.31 kB / 467.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-05/0.4167, allocations: 21.62 kB / 467.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009935/0.4177, allocations: 1.535 MB / 468.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4178, allocations: 4.062 kB / 468.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002893/0.4207, allocations: 1.461 MB / 470.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005193/0.4212, allocations: 317 kB / 470.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.4214, allocations: 18.69 kB / 470.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006445/0.422, allocations: 74.08 kB / 470.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.4222, allocations: 52.88 kB / 470.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-05/0.4223, allocations: 19.09 kB / 470.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002199/0.4245, allocations: 1.489 MB / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.012e-06/0.4245, allocations: 0 / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001666/0.4261, allocations: 454.3 kB / 472.6 MB, free: 11.03 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 (65): * Single equations (assignments): 60 * 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.002761/0.4289, allocations: 0.7269 MB / 473.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003705/0.4326, allocations: 1.96 MB / 475.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.4327, allocations: 1.312 kB / 475.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.4339, allocations: 0.6363 MB / 475.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.4358, allocations: 251.7 kB / 476.2 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005906/0.4417, allocations: 3.731 MB / 479.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008771/0.4426, allocations: 1.329 MB / 481.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008932/0.4435, allocations: 217.5 kB / 481.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.4438, allocations: 90.81 kB / 481.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4438, allocations: 0 / 481.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of Templates: time 0.03479/0.4786, allocations: 16.35 MB / 497.9 MB, free: 13.22 MB / 366.1 MB make -j1 -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset.makefile (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset.sim & ./EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_EHPTlib.MapBased.TestingModels.TestGenset.pipe 2>&1)