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.007919/0.007919, allocations: 103 kB / 15.74 MB, free: 6.059 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.001952/0.001952, allocations: 190.8 kB / 16.67 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04098/0.04098, allocations: 8.01 MB / 298.5 MB, free: 6.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001927, allocations: 63.88 kB / 413.1 MB, free: 22.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1046, allocations: 51.25 MB / 464.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGenset): time 0.01043/0.115, allocations: 6.933 MB / 471.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0065/0.1216, allocations: 3.136 MB / 474.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001416/0.123, allocations: 31.88 kB / 474.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.1246, allocations: 0.5558 MB / 475.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001977/0.1266, allocations: 0.5595 MB / 475.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003041/0.1297, allocations: 1.218 MB / 476.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003/0.1327, allocations: 1.969 MB / 478.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001577/0.1343, allocations: 0.8566 MB / 479.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.1355, allocations: 0.724 MB / 480.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001425/0.1369, allocations: 0.8404 MB / 481.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004803/0.1374, allocations: 208 kB / 481.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008602/0.1383, allocations: 327.9 kB / 481.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006974/0.139, allocations: 0.5374 MB / 482.3 MB, free: 1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.1405, allocations: 0.9404 MB / 483.2 MB, free: 56 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004161/0.1447, allocations: 2.596 MB / 485.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1447, allocations: 4 kB / 485.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1447, allocations: 0 / 485.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.616e-05/0.1448, allocations: 0 / 485.8 MB, free: 13.45 MB / 366.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.005306/0.1501, allocations: 2.31 MB / 488.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.1502, allocations: 11.89 kB / 488.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005148/0.1507, allocations: 215.6 kB / 488.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002335/0.1531, allocations: 1.267 MB / 489.6 MB, free: 9.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.313e-05/0.1532, allocations: 86.06 kB / 489.7 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001876/0.1534, allocations: 120 kB / 489.8 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.1559, allocations: 1.213 MB / 491 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.786e-05/0.156, allocations: 7.938 kB / 491 MB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.1561, allocations: 48 kB / 491.1 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.553e-05/0.1561, allocations: 28 kB / 491.1 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00221/0.1583, allocations: 0.8942 MB / 492 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007696/0.1661, allocations: 4.865 MB / 496.9 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002277/0.1684, allocations: 0.9052 MB / 497.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/0.1692, allocations: 350.4 kB / 498.1 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.682e-05/0.1693, allocations: 16.53 kB / 498.1 MB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.1704, allocations: 457.8 kB / 498.6 MB, free: 248 kB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.755e-06/0.1704, allocations: 0 / 498.6 MB, free: 248 kB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.007201/0.1776, allocations: 3.046 MB / 0.4899 GB, free: 13.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002306/0.1779, allocations: 325 kB / 0.4902 GB, free: 12.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003598/0.1815, allocations: 2.093 MB / 0.4922 GB, free: 10.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.1816, allocations: 49.7 kB / 0.4923 GB, free: 10.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008665/0.1825, allocations: 0.7762 MB / 0.493 GB, free: 9.719 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003027/0.1828, allocations: 246 kB / 0.4933 GB, free: 9.477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.1832, allocations: 174.6 kB / 0.4934 GB, free: 9.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.1833, allocations: 337.9 kB / 0.4938 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009104/0.1843, allocations: 352.7 kB / 0.4941 GB, free: 8.617 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.1854, allocations: 0.5747 MB / 0.4947 GB, free: 7.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002085/0.1875, allocations: 1.002 MB / 0.4956 GB, free: 6.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.1875, allocations: 0 / 0.4956 GB, free: 6.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002841/0.1904, allocations: 1.217 MB / 0.4968 GB, free: 5.605 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.543e-05/0.1905, allocations: 93.66 kB / 0.4969 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1905, allocations: 8 kB / 0.4969 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/0.1907, allocations: 44.84 kB / 0.497 GB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007559/0.1915, allocations: 195.7 kB / 0.4972 GB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.1932, allocations: 1.547 MB / 0.4987 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000995/0.1942, allocations: 87.94 kB / 0.4987 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.888e-05/0.1943, allocations: 28 kB / 0.4988 GB, free: 3.449 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.001602/0.1959, allocations: 0.7284 MB / 0.4995 GB, free: 2.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009363/0.1969, allocations: 0.5239 MB / 0.5 GB, free: 2.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001626/0.1985, allocations: 0.908 MB / 0.5009 GB, free: 1.094 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.088e-06/0.1985, allocations: 0 / 0.5009 GB, free: 1.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.2302/0.4287, allocations: 1.106 MB / 0.502 GB, free: 44.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.788e-05/0.4288, allocations: 100.8 kB / 0.5021 GB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.4289, allocations: 5.719 kB / 0.5021 GB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001983/0.4291, allocations: 43.53 kB / 0.5021 GB, free: 44.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008317/0.4299, allocations: 176.4 kB / 0.5023 GB, free: 44.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/0.4311, allocations: 1.539 MB / 0.5038 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.4322, allocations: 66.73 kB / 0.5038 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-05/0.4322, allocations: 36.02 kB / 0.5039 GB, free: 43.06 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.0003443/0.4326, allocations: 308.8 kB / 0.5042 GB, free: 42.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002828/0.4329, allocations: 166.5 kB / 0.5043 GB, free: 42.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/0.4351, allocations: 0.9645 MB / 0.5053 GB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.4351, allocations: 7.5 kB / 0.5053 GB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4351, allocations: 1.125 kB / 0.5053 GB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.4351, allocations: 6.984 kB / 0.5053 GB, free: 42.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/0.4393, allocations: 2.446 MB / 0.5077 GB, free: 42.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4394, allocations: 0 / 0.5077 GB, free: 42.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005964/0.44, allocations: 132.9 kB / 0.5078 GB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001407/0.4401, allocations: 39.39 kB / 0.5078 GB, free: 42.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.928e-05/0.4402, allocations: 19.84 kB / 0.5079 GB, free: 42.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008798/0.4411, allocations: 1.54 MB / 0.5094 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4411, allocations: 1.031 kB / 0.5094 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00277/0.4439, allocations: 1.46 MB / 0.5108 GB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004902/0.4444, allocations: 330 kB / 0.5111 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.4445, allocations: 20.2 kB / 0.5111 GB, free: 39.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005904/0.4451, allocations: 63.52 kB / 0.5112 GB, free: 39.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.4453, allocations: 52.89 kB / 0.5112 GB, free: 39.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.354e-05/0.4453, allocations: 23.33 kB / 0.5113 GB, free: 39.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001979/0.4473, allocations: 1.49 MB / 0.5127 GB, free: 39.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4473, allocations: 0 / 0.5127 GB, free: 39.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001407/0.4487, allocations: 440.7 kB / 0.5131 GB, free: 39.16 MB / 382.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.002805/0.4516, allocations: 0.7127 MB / 0.5138 GB, free: 38.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003395/0.455, allocations: 1.862 MB / 0.5156 GB, free: 37.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.455, allocations: 2.156 kB / 0.5156 GB, free: 37.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009658/0.456, allocations: 0.6243 MB / 0.5163 GB, free: 37.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.4573, allocations: 263.6 kB / 0.5165 GB, free: 37.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005698/0.463, allocations: 3.166 MB / 0.5196 GB, free: 35.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.4641, allocations: 1.328 MB / 0.5209 GB, free: 35.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009181/0.465, allocations: 211.8 kB / 0.5211 GB, free: 35.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.4653, allocations: 91 kB / 0.5212 GB, free: 35 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4653, allocations: 0 / 0.5212 GB, free: 35 MB / 382.1 MB Notification: Performance of Templates: time 0.02669/0.492, allocations: 16.61 MB / 0.5374 GB, free: 23.04 MB / 382.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)