Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_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_latest_EHPTlib.MapBased.TestingModels.TestGenset") translateModel(EHPTlib.MapBased.TestingModels.TestGenset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="EHPTlib_latest_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.006402/0.006402, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001547/0.001547, allocations: 202.9 kB / 16.68 MB, free: 5.969 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.164/0.164, allocations: 8 MB / 298.5 MB, free: 2.281 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 59.89 kB / 413.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3116, allocations: 51.24 MB / 464.4 MB, free: 18.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGenset): time 0.008309/0.32, allocations: 6.94 MB / 471.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005971/0.326, allocations: 3.133 MB / 474.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.3278, allocations: 28.44 kB / 474.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.329, allocations: 0.5579 MB / 475.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001826/0.3309, allocations: 0.5661 MB / 475.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002732/0.3337, allocations: 1.22 MB / 476.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002911/0.3366, allocations: 1.963 MB / 478.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001245/0.3378, allocations: 0.8648 MB / 479.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001192/0.339, allocations: 0.7173 MB / 480.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000974/0.34, allocations: 0.8509 MB / 481.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002829/0.3403, allocations: 208.2 kB / 481.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000693/0.341, allocations: 326.7 kB / 481.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000377/0.3414, allocations: 0.5341 MB / 482.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006362/0.342, allocations: 0.9356 MB / 483.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.3446, allocations: 2.602 MB / 485.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3446, allocations: 0.9375 kB / 485.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3446, allocations: 0 / 485.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.3446, allocations: 5.375 kB / 485.8 MB, free: 4.207 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003524/0.3482, allocations: 2.297 MB / 488.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.3482, allocations: 13.55 kB / 488.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004727/0.3487, allocations: 217.6 kB / 488.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001741/0.3505, allocations: 1.27 MB / 489.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.581e-05/0.3505, allocations: 87.09 kB / 489.7 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001574/0.3507, allocations: 111.5 kB / 489.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.3528, allocations: 1.216 MB / 491 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.843e-05/0.3528, allocations: 9.266 kB / 491 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.273e-05/0.3529, allocations: 56.3 kB / 491.1 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.353, allocations: 26.12 kB / 491.1 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/0.3549, allocations: 0.8891 MB / 492 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008068/0.363, allocations: 4.871 MB / 496.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/0.3652, allocations: 0.9048 MB / 497.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000784/0.366, allocations: 344.3 kB / 498.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.801e-05/0.3661, allocations: 20.53 kB / 498.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001013/0.3671, allocations: 457.8 kB / 498.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.324e-06/0.3671, allocations: 0 / 498.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.007206/0.3743, allocations: 3.05 MB / 0.4899 GB, free: 7.648 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002172/0.3746, allocations: 329 kB / 0.4902 GB, free: 7.254 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003222/0.3778, allocations: 2.093 MB / 0.4922 GB, free: 5.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.3779, allocations: 41.7 kB / 0.4923 GB, free: 5.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008078/0.3787, allocations: 0.7803 MB / 0.493 GB, free: 4.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.379, allocations: 242 kB / 0.4933 GB, free: 4.074 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002928/0.3793, allocations: 170.6 kB / 0.4934 GB, free: 3.902 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3795, allocations: 337.9 kB / 0.4938 GB, free: 3.566 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000836/0.3803, allocations: 356.7 kB / 0.4941 GB, free: 3.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/0.3814, allocations: 0.5708 MB / 0.4947 GB, free: 2.551 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/0.3834, allocations: 1.002 MB / 0.4956 GB, free: 1.449 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3834, allocations: 3.938 kB / 0.4956 GB, free: 1.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002768/0.3862, allocations: 1.213 MB / 0.4968 GB, free: 212 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.62e-05/0.3863, allocations: 93.09 kB / 0.4969 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.3863, allocations: 8 kB / 0.4969 GB, free: 92 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002162/0.3865, allocations: 49.34 kB / 0.497 GB, free: 40 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007598/0.3873, allocations: 199.6 kB / 0.4972 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.3888, allocations: 1.543 MB / 0.4987 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009928/0.3898, allocations: 83.81 kB / 0.4987 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-05/0.3899, allocations: 32 kB / 0.4988 GB, free: 14.05 MB / 382.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.001595/0.3915, allocations: 0.7324 MB / 0.4995 GB, free: 13.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008498/0.3924, allocations: 0.5161 MB / 0.5 GB, free: 12.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001559/0.3939, allocations: 0.9158 MB / 0.5009 GB, free: 11.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.096e-06/0.394, allocations: 0 / 0.5009 GB, free: 11.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.002218/0.3962, allocations: 1.107 MB / 0.502 GB, free: 10.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.868e-05/0.3963, allocations: 99.28 kB / 0.5021 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3963, allocations: 4 kB / 0.5021 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001613/0.3965, allocations: 49.34 kB / 0.5021 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006211/0.3971, allocations: 179.7 kB / 0.5023 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.3986, allocations: 1.536 MB / 0.5038 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000883/0.3995, allocations: 63.95 kB / 0.5039 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.994e-05/0.3995, allocations: 32 kB / 0.5039 GB, free: 8.438 MB / 382.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: 9 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,genset.gen.limTau.state,$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 (105): * Single equations (assignments): 101 * 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.0004268/0.4, allocations: 310.3 kB / 0.5042 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.4002, allocations: 162.9 kB / 0.5043 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002346/0.4026, allocations: 0.9828 MB / 0.5053 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.4026, allocations: 8 kB / 0.5053 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4026, allocations: 0 / 0.5053 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4026, allocations: 3.984 kB / 0.5053 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/0.407, allocations: 2.437 MB / 0.5077 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.4071, allocations: 4 kB / 0.5077 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006403/0.4077, allocations: 131.8 kB / 0.5078 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.4079, allocations: 48.84 kB / 0.5079 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.519e-05/0.408, allocations: 16 kB / 0.5079 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/0.4096, allocations: 1.524 MB / 0.5094 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4096, allocations: 3.938 kB / 0.5094 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003152/0.4128, allocations: 1.468 MB / 0.5108 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006098/0.4134, allocations: 328.1 kB / 0.5111 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.4135, allocations: 19.94 kB / 0.5111 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000621/0.4142, allocations: 71.92 kB / 0.5112 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.4143, allocations: 48.5 kB / 0.5112 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.148e-05/0.4144, allocations: 23.98 kB / 0.5113 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002309/0.4167, allocations: 1.48 MB / 0.5127 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4167, allocations: 0 / 0.5127 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001491/0.4182, allocations: 447.9 kB / 0.5131 GB, free: 14.63 MB / 398.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: 4 ($whenCondition1,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 (64): * Single equations (assignments): 59 * 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.002788/0.421, allocations: 0.7173 MB / 0.5138 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003887/0.4249, allocations: 1.863 MB / 0.5157 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4249, allocations: 0 / 0.5157 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.4261, allocations: 0.6256 MB / 0.5163 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.4277, allocations: 246.3 kB / 0.5165 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005821/0.4336, allocations: 3.172 MB / 0.5196 GB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.4348, allocations: 1.33 MB / 0.5209 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007851/0.4356, allocations: 208.2 kB / 0.5211 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/0.4358, allocations: 91.41 kB / 0.5212 GB, free: 6.48 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4359, allocations: 0 / 0.5212 GB, free: 6.48 MB / 398.1 MB Notification: Performance of Templates: time 0.03398/0.4698, allocations: 16.61 MB / 0.5374 GB, free: 5.891 MB / 414.1 MB make -j1 -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGenset.makefile (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGenset.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGenset.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGenset.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGenset.sim & ./EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGenset -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGenset.pipe 2>&1)