Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.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/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/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(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag") translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001004/0.001004, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2367/0.2367, allocations: 14.21 MB / 305.2 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002742/0.0002743, allocations: 8 kB / 369.6 MB, free: 6.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1018, allocations: 53.92 MB / 423.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.2027/0.3045, allocations: 1.434 MB / 425 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008179/0.3053, allocations: 0.4963 MB / 425.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.17e-05/0.3054, allocations: 0 / 425.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.3055, allocations: 5.578 kB / 425.5 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.3057, allocations: 38.73 kB / 425.5 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.3059, allocations: 44.42 kB / 425.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.306, allocations: 116 kB / 425.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.3062, allocations: 17.56 kB / 425.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.3063, allocations: 75.19 kB / 425.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.3064, allocations: 87.83 kB / 425.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.3065, allocations: 9.781 kB / 425.9 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.822e-05/0.3065, allocations: 8.625 kB / 425.9 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.898e-05/0.3066, allocations: 25.34 kB / 425.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.273e-05/0.3066, allocations: 48.77 kB / 425.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.3068, allocations: 107.5 kB / 426 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.3068, allocations: 0 / 426 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3068, allocations: 0 / 426 MB, free: 37.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.3068, allocations: 1 kB / 426 MB, free: 37.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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001005/0.3078, allocations: 0.5763 MB / 426.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3079, allocations: 10.34 kB / 426.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.975e-05/0.3079, allocations: 17.44 kB / 426.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.3081, allocations: 222.6 kB / 426.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.3082, allocations: 10.61 kB / 426.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.934e-05/0.3082, allocations: 10.56 kB / 426.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/0.3088, allocations: 206.9 kB / 427.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.3088, allocations: 0 / 427.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.3088, allocations: 2.875 kB / 427.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3088, allocations: 0 / 427.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007934/0.3096, allocations: 249.9 kB / 427.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008533/0.3105, allocations: 0.4981 MB / 427.8 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007959/0.3113, allocations: 283.9 kB / 428.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.3113, allocations: 3.094 kB / 428.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006219/0.312, allocations: 432.9 kB / 428.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.693e-06/0.312, allocations: 0.6562 kB / 428.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001492/0.3135, allocations: 0.6401 MB / 429.2 MB, free: 35.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.542e-05/0.3136, allocations: 254.5 kB / 429.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.3137, allocations: 172.1 kB / 429.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.3137, allocations: 32.27 kB / 429.6 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.3138, allocations: 110.3 kB / 429.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.507e-05/0.3138, allocations: 50.03 kB / 429.8 MB, free: 35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.3139, allocations: 0.75 kB / 429.8 MB, free: 35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.093e-05/0.3139, allocations: 333.3 kB / 430.1 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004197/0.3144, allocations: 145.5 kB / 430.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004157/0.3148, allocations: 154.6 kB / 430.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004139/0.3152, allocations: 219.3 kB / 430.6 MB, free: 34.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3152, allocations: 0 / 430.6 MB, free: 34.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001053/0.3163, allocations: 491.5 kB / 431.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.108e-05/0.3164, allocations: 185.4 kB / 431.3 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.3164, allocations: 0.8438 kB / 431.3 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.3164, allocations: 0 / 431.3 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.3167, allocations: 59.52 kB / 431.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.3167, allocations: 0 / 431.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.3171, allocations: 77.31 kB / 431.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.3171, allocations: 7.688 kB / 431.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.165e-06/0.3172, allocations: 7.531 kB / 431.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001011/0.3182, allocations: 483.4 kB / 431.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-06/0.3182, allocations: 0 / 431.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.421e-06/0.3182, allocations: 9.828 kB / 431.9 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.3184, allocations: 47.98 kB / 432 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3184, allocations: 3.422 kB / 432 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.3188, allocations: 81.03 kB / 432 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.3188, allocations: 8.656 kB / 432 MB, free: 34.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.limiterWithLag.state,limiterWithLag.state,$PRE.limiterWithLag.saturationLimitReached,limiterWithLag.saturationLimitReached,$PRE.limiterWithLag.satON,limiterWithLag.satON,$PRE.LfSignal.T_start,LfSignal.T_start,$PRE.LfSignal.count,LfSignal.count,$PRE.HfSignal.T_start,HfSignal.T_start,$PRE.HfSignal.count,HfSignal.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002017/0.319, allocations: 253.2 kB / 432.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/0.3191, allocations: 21.08 kB / 432.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.298e-05/0.3191, allocations: 18.73 kB / 432.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.3191, allocations: 6.797 kB / 432.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.3192, allocations: 0.5625 kB / 432.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3192, allocations: 0 / 432.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.3194, allocations: 264.3 kB / 432.6 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3194, allocations: 0 / 432.6 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.3196, allocations: 53.53 kB / 432.6 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3197, allocations: 0 / 432.6 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.3197, allocations: 12.19 kB / 432.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3197, allocations: 4.703 kB / 432.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3197, allocations: 0 / 432.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.3207, allocations: 0.4892 MB / 433.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.343e-05/0.3208, allocations: 92.52 kB / 433.2 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.3208, allocations: 11.62 kB / 433.3 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.3212, allocations: 73.56 kB / 433.3 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3213, allocations: 43.97 kB / 433.4 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.3214, allocations: 12.31 kB / 433.4 MB, free: 33.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.491e-05/0.3214, allocations: 132.1 kB / 433.5 MB, free: 33.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3215, allocations: 0 / 433.5 MB, free: 33.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003264/0.3218, allocations: 82.38 kB / 433.6 MB, free: 33.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,limiterWithLag.state,limiterWithLag.saturationLimitReached,limiterWithLag.satON,LfSignal.T_start,LfSignal.count,HfSignal.T_start,HfSignal.count) * Number of discrete states: 11 (LfSignal.count,HfSignal.count,limiterWithLag.satON,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,limiterWithLag.saturationLimitReached,limiterWithLag.state,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001194/0.3219, allocations: 111.8 kB / 433.7 MB, free: 33.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.3235, allocations: 0.9461 MB / 434.6 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.3235, allocations: 0 / 434.6 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006009/0.3241, allocations: 370.8 kB / 435 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.3244, allocations: 30.16 kB / 435 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007393/0.3251, allocations: 355.6 kB / 435.4 MB, free: 32.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.3253, allocations: 0.7199 MB / 436.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.97e-05/0.3254, allocations: 27.19 kB / 436.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.179e-05/0.3254, allocations: 13.34 kB / 436.1 MB, free: 31.89 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3255, allocations: 0 / 436.1 MB, free: 31.89 MB / 350.1 MB Notification: Performance of Templates: time 0.005881/0.3313, allocations: 3.357 MB / 439.5 MB, free: 31.7 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1)