Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.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.TestGensets.TestGensetOO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3200,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO") translateModel(EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3200,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008803/0.0008803, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004908/0.004908, allocations: 170.7 kB / 16.27 MB, free: 6.652 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.449/1.449, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.2198/0.2198, allocations: 8.925 MB / 300.4 MB, free: 2.949 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003277/0.0003283, allocations: 11.98 kB / 363.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1032, allocations: 52.47 MB / 416.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO): time 0.008924/0.1121, allocations: 6.805 MB / 422.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1727/0.2849, allocations: 3.053 MB / 425.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.2861, allocations: 26.41 kB / 425.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007939/0.287, allocations: 346.4 kB / 426.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009893/0.288, allocations: 457.8 kB / 426.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.2898, allocations: 1.078 MB / 427.8 MB, free: 34.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.2915, allocations: 1.95 MB / 429.8 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009887/0.2925, allocations: 0.9074 MB / 430.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006408/0.2932, allocations: 0.5381 MB / 431.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000625/0.2938, allocations: 0.6707 MB / 431.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.294, allocations: 61.62 kB / 431.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003379/0.2943, allocations: 163.5 kB / 432.1 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.2946, allocations: 380.8 kB / 432.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000522/0.2951, allocations: 0.8097 MB / 433.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.2967, allocations: 2.549 MB / 435.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2967, allocations: 0 / 435.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2967, allocations: 0 / 435.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.252e-05/0.2968, allocations: 0 / 435.8 MB, free: 33.02 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002851/0.2996, allocations: 1.946 MB / 437.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2997, allocations: 6.406 kB / 437.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002737/0.2999, allocations: 212.9 kB / 438 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.3013, allocations: 1.315 MB / 439.3 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.3015, allocations: 131.2 kB / 439.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.3016, allocations: 125.1 kB / 439.6 MB, free: 30.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.3039, allocations: 1.38 MB / 440.9 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/0.304, allocations: 6.531 kB / 440.9 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.3041, allocations: 53.5 kB / 441 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.3041, allocations: 28.69 kB / 441 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002282/0.3064, allocations: 1.06 MB / 442.1 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006336/0.3127, allocations: 5.433 MB / 447.5 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.3145, allocations: 1.004 MB / 448.5 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007538/0.3152, allocations: 414.5 kB / 448.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.083e-05/0.3153, allocations: 16.06 kB / 448.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009348/0.3162, allocations: 0.5197 MB / 449.5 MB, free: 25.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.665e-06/0.3163, allocations: 0 / 449.5 MB, free: 25.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=74): time 0.006283/0.3225, allocations: 3.429 MB / 452.9 MB, free: 23.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.3227, allocations: 354.6 kB / 453.2 MB, free: 23.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002802/0.3255, allocations: 1.899 MB / 455.1 MB, free: 22.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.3257, allocations: 53.8 kB / 455.2 MB, free: 22.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005392/0.3262, allocations: 0.7701 MB / 456 MB, free: 21.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.3264, allocations: 252.7 kB / 456.2 MB, free: 21.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.3265, allocations: 105.6 kB / 456.3 MB, free: 21.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.343e-05/0.3266, allocations: 342.6 kB / 456.6 MB, free: 21.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008771/0.3275, allocations: 435.8 kB / 457.1 MB, free: 21.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009919/0.3285, allocations: 0.6909 MB / 457.8 MB, free: 20.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.3303, allocations: 1.169 MB / 458.9 MB, free: 19.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3303, allocations: 0 / 458.9 MB, free: 19.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00266/0.333, allocations: 1.427 MB / 460.4 MB, free: 19.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.3332, allocations: 339.2 kB / 460.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3332, allocations: 6.281 kB / 460.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001939/0.3334, allocations: 48.2 kB / 460.7 MB, free: 18.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007863/0.3342, allocations: 243.6 kB / 461 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009458/0.3351, allocations: 1.435 MB / 462.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009668/0.3361, allocations: 109 kB / 462.5 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.912e-05/0.3362, allocations: 41.59 kB / 462.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.053e-06/0.3362, allocations: 3.656 kB / 462.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001801/0.338, allocations: 1.138 MB / 463.7 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3381, allocations: 6.156 kB / 463.7 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001294/0.3382, allocations: 52.33 kB / 463.8 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/0.3389, allocations: 212.9 kB / 464 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008093/0.3397, allocations: 1.433 MB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008618/0.3406, allocations: 73.36 kB / 465.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.148e-05/0.3407, allocations: 52.19 kB / 465.5 MB, free: 15.38 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: 11 (booleanStep.y,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (125): * Single equations (assignments): 121 * 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.0009706/0.3416, allocations: 0.641 MB / 466.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002274/0.3419, allocations: 151.4 kB / 466.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002202/0.3441, allocations: 1.099 MB / 467.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.3441, allocations: 7.594 kB / 467.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3441, allocations: 1.219 kB / 467.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.3441, allocations: 7.312 kB / 467.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003965/0.3481, allocations: 2.714 MB / 470.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.3481, allocations: 5.594 kB / 470.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006693/0.3488, allocations: 153.2 kB / 470.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/0.3489, allocations: 35.06 kB / 470.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.185e-05/0.349, allocations: 21.84 kB / 470.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008995/0.3499, allocations: 1.43 MB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3499, allocations: 4.062 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00309/0.353, allocations: 1.668 MB / 473.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005835/0.3536, allocations: 374.8 kB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.3538, allocations: 21.81 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006862/0.3545, allocations: 92.52 kB / 473.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.3547, allocations: 57.23 kB / 474 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.339e-05/0.3547, allocations: 23.95 kB / 474 MB, free: 10.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00191/0.3567, allocations: 1.325 MB / 475.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3567, allocations: 3.938 kB / 475.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001493/0.3582, allocations: 467.9 kB / 475.8 MB, free: 9.875 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: 6 ($whenCondition1,genset.gen.limitingTorque,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 (70): * Single equations (assignments): 65 * 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.002674/0.3608, allocations: 0.7119 MB / 476.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003597/0.3645, allocations: 2.142 MB / 478.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.3645, allocations: 0 / 478.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.3655, allocations: 0.7039 MB / 479.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.367, allocations: 226 kB / 479.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005464/0.3725, allocations: 3.796 MB / 483.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.3736, allocations: 1.334 MB / 484.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009234/0.3745, allocations: 229.9 kB / 484.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003237/0.3748, allocations: 99.08 kB / 485 MB, free: 4.883 MB / 350.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3748, allocations: 0 / 485 MB, free: 4.883 MB / 350.1 MB Notification: Performance of Templates: time 0.03797/0.4128, allocations: 16.47 MB / 0.4897 GB, free: 9.914 MB / 366.1 MB make -j1 -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO.makefile (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO.sim & ./EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_EHPTlib.MapBased.TestingModels.TestGensets.TestGensetOO.pipe 2>&1)