Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.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.TestGensetOO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3200,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO") translateModel(EHPTlib.MapBased.TestingModels.TestGensetOO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3200,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001776/0.001776, 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.001833/0.001833, allocations: 195.9 kB / 16.26 MB, free: 6.625 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.606/1.606, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1943/0.1943, allocations: 8.241 MB / 298.3 MB, free: 2.309 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 63.89 kB / 360.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1126, allocations: 51.31 MB / 411.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGensetOO): time 0.01039/0.1231, allocations: 6.984 MB / 418.7 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005813/0.1289, allocations: 3.077 MB / 421.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.1301, allocations: 27.88 kB / 421.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.1312, allocations: 0.4982 MB / 422.3 MB, free: 380 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1938/0.3251, allocations: 0.4908 MB / 422.8 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002413/0.3276, allocations: 1.134 MB / 424 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00264/0.3302, allocations: 2.021 MB / 426 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.3313, allocations: 0.9011 MB / 426.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009231/0.3323, allocations: 0.7448 MB / 427.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007253/0.333, allocations: 0.882 MB / 428.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002191/0.3332, allocations: 215.6 kB / 428.7 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004924/0.3337, allocations: 320.1 kB / 429 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003251/0.3341, allocations: 0.5469 MB / 429.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005827/0.3347, allocations: 0.9584 MB / 430.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.3367, allocations: 2.589 MB / 433.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3367, allocations: 0 / 433.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3367, allocations: 0 / 433.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.157e-05/0.3368, allocations: 0.6875 kB / 433.1 MB, free: 34.31 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: 283 * Number of variables: 283 Notification: Performance of Generate backend data structure: time 0.00363/0.3404, allocations: 2.292 MB / 435.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.3405, allocations: 10.61 kB / 435.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003636/0.3408, allocations: 210.8 kB / 435.6 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.3423, allocations: 1.253 MB / 436.9 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.3425, allocations: 125.2 kB / 437 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.3426, allocations: 121.8 kB / 437.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002023/0.3447, allocations: 1.264 MB / 438.4 MB, free: 31.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.859e-05/0.3447, allocations: 5.531 kB / 438.4 MB, free: 31.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.193e-05/0.3448, allocations: 50.88 kB / 438.4 MB, free: 31.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.3448, allocations: 28.75 kB / 438.5 MB, free: 31.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.3467, allocations: 0.9303 MB / 439.4 MB, free: 30.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006217/0.3529, allocations: 5.02 MB / 444.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.3547, allocations: 0.9358 MB / 445.4 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006517/0.3554, allocations: 367.3 kB / 445.7 MB, free: 27.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.953e-05/0.3555, allocations: 7.906 kB / 445.7 MB, free: 27.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000952/0.3564, allocations: 482.1 kB / 446.2 MB, free: 27.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.134e-06/0.3564, allocations: 0 / 446.2 MB, free: 27.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005544/0.362, allocations: 3.116 MB / 449.3 MB, free: 25.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.082e-05/0.3621, allocations: 333.1 kB / 449.6 MB, free: 24.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002282/0.3644, allocations: 2.116 MB / 451.8 MB, free: 24.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.467e-05/0.3644, allocations: 44.27 kB / 451.8 MB, free: 24.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005364/0.365, allocations: 0.7816 MB / 452.6 MB, free: 23.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.3652, allocations: 243.3 kB / 452.8 MB, free: 23.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.3655, allocations: 191.9 kB / 453 MB, free: 23.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.513e-05/0.3656, allocations: 337.9 kB / 453.3 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000758/0.3663, allocations: 378.2 kB / 453.7 MB, free: 22.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008385/0.3672, allocations: 0.5924 MB / 454.3 MB, free: 22.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.3688, allocations: 1.034 MB / 455.3 MB, free: 21.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.3688, allocations: 3 kB / 455.3 MB, free: 21.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002279/0.3711, allocations: 1.25 MB / 456.6 MB, free: 21.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/0.3711, allocations: 101 kB / 456.7 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.3711, allocations: 7.141 kB / 456.7 MB, free: 21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.3713, allocations: 44.94 kB / 456.7 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006897/0.372, allocations: 203.9 kB / 456.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009511/0.373, allocations: 1.546 MB / 458.5 MB, free: 19.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008909/0.3739, allocations: 81.61 kB / 458.6 MB, free: 19.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.524e-05/0.374, allocations: 36.09 kB / 458.6 MB, free: 19.46 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.001247/0.3752, allocations: 0.7595 MB / 459.4 MB, free: 19.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006533/0.3759, allocations: 0.5335 MB / 459.9 MB, free: 18.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001182/0.3771, allocations: 0.9469 MB / 460.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.817e-06/0.3771, allocations: 3 kB / 460.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization_lambda0): time 0.001932/0.379, allocations: 1.155 MB / 462 MB, free: 17.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.951e-05/0.3791, allocations: 96.72 kB / 462.1 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3791, allocations: 7.156 kB / 462.1 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.3793, allocations: 50.77 kB / 462.1 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/0.3799, allocations: 188.6 kB / 462.3 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009664/0.3809, allocations: 1.541 MB / 463.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009604/0.3819, allocations: 71.39 kB / 463.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/0.3819, allocations: 36.69 kB / 464 MB, free: 15.89 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: 11 (booleanStep.y,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 (114): * Single equations (assignments): 110 * 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.0003838/0.3823, allocations: 310.6 kB / 464.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002482/0.3826, allocations: 160.5 kB / 464.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002273/0.3849, allocations: 1.001 MB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3849, allocations: 7.312 kB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.3849, allocations: 5.219 kB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.3849, allocations: 3.516 kB / 465.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00402/0.3889, allocations: 2.514 MB / 468 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.389, allocations: 1.594 kB / 468 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006036/0.3896, allocations: 140.3 kB / 468.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001403/0.3897, allocations: 42.53 kB / 468.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.3898, allocations: 22.08 kB / 468.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008894/0.3907, allocations: 1.527 MB / 469.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3907, allocations: 1.25 kB / 469.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002968/0.3937, allocations: 1.514 MB / 471.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000622/0.3943, allocations: 329.3 kB / 471.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.3945, allocations: 15.19 kB / 471.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000641/0.3951, allocations: 74.05 kB / 471.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.3953, allocations: 55.83 kB / 471.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-05/0.3954, allocations: 21.28 kB / 471.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002215/0.3976, allocations: 1.5 MB / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3976, allocations: 0 / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00162/0.3993, allocations: 449.7 kB / 473.6 MB, free: 10.68 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: 6 ($whenCondition1,genset.gen.limitingTorque,genset.gen.limTau.state,trapezoid.T_start,trapezoid.count,booleanStep.y) * 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 (68): * Single equations (assignments): 63 * 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.002687/0.4019, allocations: 0.7267 MB / 474.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003975/0.4059, allocations: 1.998 MB / 476.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.406, allocations: 1.094 kB / 476.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.407, allocations: 0.6511 MB / 477 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.4088, allocations: 263.6 kB / 477.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00696/0.4158, allocations: 3.801 MB / 481.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.4169, allocations: 1.339 MB / 482.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.418, allocations: 222.1 kB / 482.6 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002689/0.4183, allocations: 96.52 kB / 482.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4183, allocations: 0 / 482.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of Templates: time 0.03385/0.4521, allocations: 16.54 MB / 499.3 MB, free: 11.99 MB / 366.1 MB make -j1 -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.makefile (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.sim & ./EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe 2>&1)