Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1.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.TestGensets.TestGenset1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1") translateModel(EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008898/0.0008897, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005307/0.005307, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.434/1.434, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1655/0.1655, allocations: 8.922 MB / 300.4 MB, free: 2.988 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004887, allocations: 8 kB / 363.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1306, allocations: 52.48 MB / 416.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1): time 0.00915/0.1398, allocations: 6.716 MB / 422.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1969/0.3367, allocations: 2.447 MB / 425.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.338, allocations: 24.84 kB / 425.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008979/0.3389, allocations: 350.8 kB / 425.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001314/0.3403, allocations: 442.7 kB / 426 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002086/0.3424, allocations: 1.073 MB / 427.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002113/0.3445, allocations: 1.897 MB / 429 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.3457, allocations: 0.8859 MB / 429.9 MB, free: 34.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008167/0.3465, allocations: 0.5146 MB / 430.4 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005898/0.3471, allocations: 0.6429 MB / 431 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.3472, allocations: 55.62 kB / 431.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000304/0.3475, allocations: 141.6 kB / 431.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002723/0.3478, allocations: 368.9 kB / 431.6 MB, free: 33.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005631/0.3484, allocations: 0.7868 MB / 432.4 MB, free: 33.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001725/0.3501, allocations: 2.427 MB / 434.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3501, allocations: 0 / 434.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3501, allocations: 0 / 434.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.3502, allocations: 4 kB / 434.8 MB, free: 33.1 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: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.002817/0.353, allocations: 1.905 MB / 436.7 MB, free: 31.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.353, allocations: 13.38 kB / 436.7 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002522/0.3533, allocations: 207.3 kB / 436.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.3547, allocations: 1.281 MB / 438.2 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.3549, allocations: 125.5 kB / 438.3 MB, free: 31.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.3551, allocations: 125.8 kB / 438.5 MB, free: 31.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/0.3572, allocations: 1.289 MB / 439.7 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.3573, allocations: 3.281 kB / 439.7 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.3574, allocations: 48.78 kB / 439.8 MB, free: 30.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.3574, allocations: 29.34 kB / 439.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.3595, allocations: 1.028 MB / 440.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006335/0.3658, allocations: 5.277 MB / 446.1 MB, free: 26.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.3677, allocations: 0.9739 MB / 447.1 MB, free: 26.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007112/0.3685, allocations: 394.8 kB / 447.5 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.983e-05/0.3685, allocations: 20.3 kB / 447.5 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009136/0.3695, allocations: 0.5012 MB / 448 MB, free: 26.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 3.086e-06/0.3695, allocations: 0.5625 kB / 448 MB, free: 26.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=71): time 0.005874/0.3753, allocations: 3.333 MB / 451.3 MB, free: 24.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.544e-05/0.3754, allocations: 208.2 kB / 451.5 MB, free: 24.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00207/0.3775, allocations: 1.833 MB / 453.4 MB, free: 23.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.241e-05/0.3776, allocations: 47.89 kB / 453.4 MB, free: 23.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005304/0.3781, allocations: 0.7597 MB / 454.2 MB, free: 22.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.3783, allocations: 251.9 kB / 454.4 MB, free: 22.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.3784, allocations: 101.2 kB / 454.5 MB, free: 22.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.3785, allocations: 345.6 kB / 454.9 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000794/0.3793, allocations: 413 kB / 455.3 MB, free: 22.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000899/0.3802, allocations: 0.6297 MB / 455.9 MB, free: 21.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.3819, allocations: 1.146 MB / 457 MB, free: 20.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.382, allocations: 3.094 kB / 457 MB, free: 20.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002402/0.3844, allocations: 1.366 MB / 458.4 MB, free: 20.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001414/0.3845, allocations: 340.8 kB / 458.7 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3845, allocations: 6 kB / 458.7 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.3847, allocations: 55.92 kB / 458.8 MB, free: 19.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007612/0.3855, allocations: 228.4 kB / 459 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009244/0.3864, allocations: 1.442 MB / 460.5 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008077/0.3873, allocations: 94.38 kB / 460.6 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.808e-05/0.3873, allocations: 40.97 kB / 460.6 MB, free: 18.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.761e-06/0.3873, allocations: 7.031 kB / 460.6 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00168/0.389, allocations: 1.102 MB / 461.7 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3891, allocations: 5.844 kB / 461.7 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001192/0.3892, allocations: 46.8 kB / 461.8 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/0.3898, allocations: 207.2 kB / 462 MB, free: 17.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008086/0.3906, allocations: 1.444 MB / 463.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007204/0.3914, allocations: 78.12 kB / 463.5 MB, free: 16.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/0.3914, allocations: 42.19 kB / 463.5 MB, free: 16.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: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 10 (powerRef.count,$PRE.powerRef.count,powerRef.T_start,$PRE.powerRef.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 (122): * Single equations (assignments): 118 * 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.0008785/0.3923, allocations: 0.614 MB / 464.1 MB, free: 16.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.3925, allocations: 155.5 kB / 464.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/0.3946, allocations: 1.07 MB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.3946, allocations: 11.59 kB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.3946, allocations: 1.031 kB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3946, allocations: 3.469 kB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003672/0.3983, allocations: 2.604 MB / 468 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.3983, allocations: 1.156 kB / 468 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006341/0.399, allocations: 152.1 kB / 468.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001373/0.3991, allocations: 38.17 kB / 468.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.834e-05/0.3992, allocations: 15.16 kB / 468.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008313/0.4, allocations: 1.427 MB / 469.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4, allocations: 1 kB / 469.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003149/0.4032, allocations: 1.622 MB / 471.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008366/0.404, allocations: 354 kB / 471.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.4042, allocations: 21.56 kB / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007034/0.4049, allocations: 83.72 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.4051, allocations: 52.12 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-05/0.4052, allocations: 29.38 kB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002042/0.4072, allocations: 1.278 MB / 473 MB, free: 11.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4072, allocations: 0 / 473 MB, free: 11.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001471/0.4087, allocations: 435.5 kB / 473.5 MB, free: 11.12 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: 5 ($whenCondition1,genset.gen.limitingTorque,genset.gen.limTau.state,powerRef.T_start,powerRef.count) * Number of discrete states: 2 (powerRef.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.002491/0.4112, allocations: 0.6749 MB / 474.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003425/0.4146, allocations: 2.081 MB / 476.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.4146, allocations: 1.406 kB / 476.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.4158, allocations: 0.6845 MB / 476.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.4173, allocations: 222.2 kB / 477.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005273/0.4226, allocations: 3.707 MB / 480.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.4237, allocations: 1.311 MB / 482.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009112/0.4246, allocations: 230.6 kB / 482.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.4249, allocations: 89.34 kB / 482.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4249, allocations: 3.938 kB / 482.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of Templates: time 0.03025/0.4551, allocations: 15.22 MB / 497.7 MB, free: 13.66 MB / 366.1 MB make -j1 -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1.makefile (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1.sim & ./EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGenset1.pipe 2>&1)