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.006207/0.006207, allocations: 98.64 kB / 15.73 MB, free: 6.039 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.001346/0.001346, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1569/0.1569, allocations: 8.001 MB / 298.5 MB, free: 2.281 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 67.89 kB / 413.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2678, allocations: 51.24 MB / 464.4 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGensetOO): time 0.008567/0.2765, allocations: 7.04 MB / 471.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005715/0.2822, allocations: 3.157 MB / 474.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/0.2837, allocations: 31.03 kB / 474.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.2848, allocations: 0.5664 MB / 475.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001503/0.2864, allocations: 0.5684 MB / 475.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002394/0.2888, allocations: 1.226 MB / 477 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002601/0.2914, allocations: 2.003 MB / 479 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.2926, allocations: 0.8821 MB / 479.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.2937, allocations: 0.7358 MB / 480.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009235/0.2947, allocations: 0.8669 MB / 481.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002962/0.295, allocations: 212.6 kB / 481.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006759/0.2957, allocations: 327.4 kB / 482 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003792/0.296, allocations: 0.5436 MB / 482.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006573/0.2967, allocations: 0.9577 MB / 483.5 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002573/0.2993, allocations: 2.647 MB / 486.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2993, allocations: 0 / 486.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.2993, allocations: 1.094 kB / 486.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.122e-05/0.2994, allocations: 0 / 486.2 MB, free: 3.953 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003546/0.3029, allocations: 2.337 MB / 488.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.303, allocations: 12.61 kB / 488.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004437/0.3034, allocations: 222.9 kB / 488.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.3051, allocations: 1.284 MB / 490 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.281e-05/0.3052, allocations: 90.09 kB / 490.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.3053, allocations: 117.6 kB / 490.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.3074, allocations: 1.259 MB / 491.5 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/0.3075, allocations: 5.422 kB / 491.5 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.653e-05/0.3076, allocations: 48.72 kB / 491.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.56e-05/0.3076, allocations: 28.31 kB / 491.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002233/0.3098, allocations: 0.9242 MB / 492.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008271/0.3181, allocations: 4.95 MB / 497.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.3203, allocations: 0.9372 MB / 498.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000822/0.3212, allocations: 354.4 kB / 498.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.984e-05/0.3212, allocations: 20.53 kB / 498.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.3224, allocations: 469.7 kB / 499.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.154e-06/0.3224, allocations: 0 / 499.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.007454/0.3298, allocations: 3.121 MB / 0.4905 GB, free: 6.969 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002151/0.3301, allocations: 333 kB / 0.4908 GB, free: 6.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003287/0.3334, allocations: 2.109 MB / 0.4929 GB, free: 4.449 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.3335, allocations: 45.69 kB / 0.4929 GB, free: 4.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008252/0.3343, allocations: 0.7922 MB / 0.4937 GB, free: 3.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/0.3346, allocations: 257.8 kB / 0.494 GB, free: 3.344 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003185/0.3349, allocations: 178.6 kB / 0.4941 GB, free: 3.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.3351, allocations: 345.9 kB / 0.4945 GB, free: 2.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008822/0.336, allocations: 368.6 kB / 0.4948 GB, free: 2.453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.3371, allocations: 0.5825 MB / 0.4954 GB, free: 1.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002043/0.3392, allocations: 1.017 MB / 0.4964 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3392, allocations: 0 / 0.4964 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002872/0.3421, allocations: 1.221 MB / 0.4976 GB, free: 15.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-05/0.3422, allocations: 101.1 kB / 0.4977 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.3422, allocations: 4.562 kB / 0.4977 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002229/0.3424, allocations: 52.77 kB / 0.4977 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007375/0.3432, allocations: 199.5 kB / 0.4979 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.3447, allocations: 1.543 MB / 0.4994 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.3458, allocations: 83.98 kB / 0.4995 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.193e-05/0.3459, allocations: 36 kB / 0.4995 GB, free: 13.24 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.001788/0.3477, allocations: 0.7382 MB / 0.5003 GB, free: 12.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008731/0.3486, allocations: 0.5278 MB / 0.5008 GB, free: 11.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001687/0.3503, allocations: 0.9353 MB / 0.5017 GB, free: 10.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.651e-06/0.3503, allocations: 3.938 kB / 0.5017 GB, free: 10.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=113) (initialization_lambda0): time 0.002316/0.3527, allocations: 1.131 MB / 0.5028 GB, free: 9.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.35e-05/0.3528, allocations: 97.09 kB / 0.5029 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.3528, allocations: 12.05 kB / 0.5029 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001463/0.3529, allocations: 44.84 kB / 0.5029 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006491/0.3536, allocations: 179.7 kB / 0.5031 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.3552, allocations: 1.543 MB / 0.5046 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009363/0.3561, allocations: 63.95 kB / 0.5047 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.767e-05/0.3562, allocations: 36.06 kB / 0.5047 GB, free: 7.551 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: 10 (booleanStep.y,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 (108): * Single equations (assignments): 104 * 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.0003782/0.3566, allocations: 313.4 kB / 0.505 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002805/0.3569, allocations: 166.9 kB / 0.5052 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.3593, allocations: 0.9925 MB / 0.5061 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.3593, allocations: 8 kB / 0.5062 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3593, allocations: 0 / 0.5062 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.3593, allocations: 11.92 kB / 0.5062 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004646/0.364, allocations: 2.505 MB / 0.5086 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.364, allocations: 0 / 0.5086 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000613/0.3646, allocations: 131.8 kB / 0.5087 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001446/0.3648, allocations: 36.84 kB / 0.5088 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.163e-05/0.3648, allocations: 19.98 kB / 0.5088 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.3663, allocations: 1.528 MB / 0.5103 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.3663, allocations: 8.094 kB / 0.5103 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003262/0.3696, allocations: 1.509 MB / 0.5118 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006779/0.3703, allocations: 336 kB / 0.5121 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.3705, allocations: 16 kB / 0.5121 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006079/0.3711, allocations: 71.92 kB / 0.5122 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.3712, allocations: 52.5 kB / 0.5122 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.098e-05/0.3713, allocations: 23.98 kB / 0.5122 GB, free: 15.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002279/0.3736, allocations: 1.493 MB / 0.5137 GB, free: 14.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3736, allocations: 0 / 0.5137 GB, free: 14.03 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001396/0.375, allocations: 459.8 kB / 0.5141 GB, free: 13.58 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: 5 ($whenCondition1,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 (67): * Single equations (assignments): 62 * 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.002629/0.3776, allocations: 0.7144 MB / 0.5148 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003645/0.3813, allocations: 1.897 MB / 0.5167 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3813, allocations: 5.375 kB / 0.5167 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.3825, allocations: 0.6489 MB / 0.5173 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.3841, allocations: 250.8 kB / 0.5176 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006145/0.3902, allocations: 3.22 MB / 0.5207 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.3914, allocations: 1.338 MB / 0.522 GB, free: 5.621 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008541/0.3923, allocations: 216.4 kB / 0.5222 GB, free: 5.406 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002728/0.3926, allocations: 95.41 kB / 0.5223 GB, free: 5.312 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3926, allocations: 3.938 kB / 0.5223 GB, free: 5.309 MB / 398.1 MB Notification: Performance of Templates: time 0.03209/0.4247, allocations: 16.83 MB / 0.5388 GB, free: 4.5 MB / 414.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)