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.001341/0.001341, allocations: 104.5 kB / 15.78 MB, free: 5.984 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.001329/0.001329, allocations: 202.5 kB / 16.73 MB, free: 5.828 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.568/1.568, allocations: 225.6 MB / 243.1 MB, free: 3.707 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.0401/0.0401, allocations: 8.134 MB / 304.1 MB, free: 3.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 67.88 kB / 424.4 MB, free: 192 kB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.329, allocations: 54.07 MB / 478.4 MB, free: 23.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGenset): time 0.00877/0.3377, allocations: 6.975 MB / 485.4 MB, free: 18.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0059/0.3436, allocations: 3.137 MB / 488.6 MB, free: 16.45 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.3449, allocations: 29.56 kB / 488.6 MB, free: 16.45 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.3461, allocations: 0.5591 MB / 489.1 MB, free: 16.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001407/0.3475, allocations: 0.5841 MB / 489.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00258/0.3501, allocations: 1.213 MB / 490.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00252/0.3526, allocations: 1.959 MB / 492.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008312/0.3535, allocations: 0.5637 MB / 493.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008939/0.3543, allocations: 0.7289 MB / 494.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.3554, allocations: 0.89 MB / 495.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002579/0.3556, allocations: 208.5 kB / 495.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000647/0.3563, allocations: 321.8 kB / 495.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004065/0.3567, allocations: 0.5277 MB / 496.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007007/0.3574, allocations: 0.9402 MB / 497.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003042/0.3604, allocations: 2.604 MB / 499.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3604, allocations: 1.625 kB / 499.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3604, allocations: 4 kB / 499.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.174e-05/0.3605, allocations: 0 / 499.7 MB, free: 10.57 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.004223/0.3647, allocations: 2.301 MB / 0.4902 GB, free: 8.762 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3648, allocations: 13.7 kB / 0.4902 GB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004643/0.3652, allocations: 217.5 kB / 0.4904 GB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001921/0.3671, allocations: 1.273 MB / 0.4917 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.307e-05/0.3672, allocations: 91.91 kB / 0.4918 GB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/0.3674, allocations: 114.2 kB / 0.4919 GB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00209/0.3695, allocations: 1.218 MB / 0.4931 GB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.722e-05/0.3695, allocations: 9.203 kB / 0.4931 GB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-05/0.3696, allocations: 44.56 kB / 0.4931 GB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.708e-05/0.3696, allocations: 25.53 kB / 0.4931 GB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.3715, allocations: 0.8962 MB / 0.494 GB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006669/0.3782, allocations: 4.857 MB / 0.4988 GB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.3801, allocations: 0.8717 MB / 0.4996 GB, free: 1.879 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006212/0.3807, allocations: 313.9 kB / 0.4999 GB, free: 1.719 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.054e-05/0.3807, allocations: 16.8 kB / 0.4999 GB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008802/0.3816, allocations: 470 kB / 0.5004 GB, free: 1.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.205e-06/0.3816, allocations: 0 / 0.5004 GB, free: 1.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.006451/0.3881, allocations: 3.049 MB / 0.5033 GB, free: 15.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002025/0.3883, allocations: 331.5 kB / 0.5037 GB, free: 15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/0.3919, allocations: 2.093 MB / 0.5057 GB, free: 13.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.392, allocations: 49.69 kB / 0.5058 GB, free: 13.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007899/0.3928, allocations: 0.7686 MB / 0.5065 GB, free: 12.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002578/0.393, allocations: 250 kB / 0.5067 GB, free: 12.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.3933, allocations: 170.6 kB / 0.5069 GB, free: 12.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003399/0.3936, allocations: 338 kB / 0.5072 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007895/0.3944, allocations: 352.7 kB / 0.5076 GB, free: 11.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.3956, allocations: 0.5747 MB / 0.5081 GB, free: 11.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001868/0.3975, allocations: 0.9977 MB / 0.5091 GB, free: 9.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3975, allocations: 0 / 0.5091 GB, free: 9.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002831/0.4003, allocations: 1.213 MB / 0.5103 GB, free: 8.742 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/0.4004, allocations: 97.09 kB / 0.5104 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.4004, allocations: 8.5 kB / 0.5104 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000237/0.4007, allocations: 44.84 kB / 0.5104 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000744/0.4014, allocations: 199.7 kB / 0.5106 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/0.4031, allocations: 1.535 MB / 0.5121 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009967/0.4041, allocations: 87.89 kB / 0.5122 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.871e-05/0.4041, allocations: 36 kB / 0.5122 GB, free: 6.582 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.001542/0.4057, allocations: 0.7206 MB / 0.5129 GB, free: 5.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000836/0.4065, allocations: 0.5239 MB / 0.5135 GB, free: 5.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001599/0.4081, allocations: 0.9119 MB / 0.5143 GB, free: 4.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.206e-06/0.4081, allocations: 0 / 0.5143 GB, free: 4.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.002229/0.4103, allocations: 1.107 MB / 0.5154 GB, free: 3.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.298e-05/0.4104, allocations: 101.7 kB / 0.5155 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4104, allocations: 4 kB / 0.5155 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.4106, allocations: 60.77 kB / 0.5156 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006302/0.4112, allocations: 171.7 kB / 0.5157 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001421/0.4126, allocations: 1.544 MB / 0.5173 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008985/0.4135, allocations: 63.95 kB / 0.5173 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.684e-05/0.4136, allocations: 39.98 kB / 0.5174 GB, free: 0.957 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.0004338/0.414, allocations: 305.4 kB / 0.5176 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.4143, allocations: 166.9 kB / 0.5178 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/0.4166, allocations: 0.975 MB / 0.5188 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.4166, allocations: 8 kB / 0.5188 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.4166, allocations: 0 / 0.5188 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.4166, allocations: 3.984 kB / 0.5188 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004219/0.4209, allocations: 2.441 MB / 0.5212 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4209, allocations: 0 / 0.5212 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006172/0.4215, allocations: 139.8 kB / 0.5213 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001459/0.4216, allocations: 40.77 kB / 0.5213 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.293e-05/0.4217, allocations: 16 kB / 0.5213 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.423, allocations: 1.532 MB / 0.5228 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.423, allocations: 0 / 0.5228 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00283/0.4258, allocations: 1.468 MB / 0.5243 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006412/0.4265, allocations: 324.1 kB / 0.5246 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.4266, allocations: 23.94 kB / 0.5246 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006215/0.4273, allocations: 67.92 kB / 0.5247 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.4274, allocations: 52.5 kB / 0.5247 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.792e-05/0.4275, allocations: 23.98 kB / 0.5247 GB, free: 9.074 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002632/0.4301, allocations: 1.484 MB / 0.5262 GB, free: 7.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4301, allocations: 0 / 0.5262 GB, free: 7.594 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001777/0.4319, allocations: 439.9 kB / 0.5266 GB, free: 7.164 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.002778/0.4347, allocations: 0.7185 MB / 0.5273 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00344/0.4381, allocations: 1.777 MB / 0.529 GB, free: 4.863 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.4381, allocations: 4 kB / 0.529 GB, free: 4.859 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.4392, allocations: 0.5983 MB / 0.5296 GB, free: 4.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.4405, allocations: 247.4 kB / 0.5299 GB, free: 3.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005598/0.4461, allocations: 3.176 MB / 0.533 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.4472, allocations: 1.323 MB / 0.5343 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009182/0.4482, allocations: 212.2 kB / 0.5345 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.4484, allocations: 91.41 kB / 0.5345 GB, free: 15.11 MB / 414.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4484, allocations: 0 / 0.5345 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Templates: time 0.03551/0.484, allocations: 16.72 MB / 0.5509 GB, free: 14.41 MB / 430.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)