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: "" <> buildModelFMU(PowerGrids.Controls.Test.TestLimiterWithLag,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestLimiterWithLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLimiterWithLag,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestLimiterWithLag",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00093/0.00093, allocations: 99.86 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.001029/0.001029, allocations: 177.3 kB / 15.95 MB, free: 216 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.263/1.263, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1578/0.1578, allocations: 14.17 MB / 305.1 MB, free: 1.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002627, allocations: 12 kB / 369.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09108/0.09136, allocations: 53.92 MB / 423.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.1574/0.2488, allocations: 1.431 MB / 425 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006351/0.2494, allocations: 0.4905 MB / 425.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.833e-05/0.2495, allocations: 1.031 kB / 425.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.798e-05/0.2496, allocations: 7.125 kB / 425.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.2497, allocations: 40.23 kB / 425.6 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001343/0.2498, allocations: 51.56 kB / 425.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.25, allocations: 108.1 kB / 425.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.584e-05/0.2501, allocations: 21.94 kB / 425.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.707e-05/0.2501, allocations: 69.38 kB / 425.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.2503, allocations: 87.78 kB / 425.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.2503, allocations: 9.062 kB / 425.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.256e-05/0.2503, allocations: 8.156 kB / 425.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.845e-05/0.2504, allocations: 25.45 kB / 426 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.343e-05/0.2504, allocations: 53.77 kB / 426 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001088/0.2505, allocations: 106.4 kB / 426.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.2505, allocations: 2.875 kB / 426.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.2505, allocations: 0 / 426.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.2506, allocations: 3.969 kB / 426.1 MB, free: 37.16 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.0008547/0.2514, allocations: 0.572 MB / 426.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.2515, allocations: 13.42 kB / 426.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.2515, allocations: 39.48 kB / 426.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.228e-05/0.2515, allocations: 20.17 kB / 426.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.2517, allocations: 216.1 kB / 427 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.2517, allocations: 8.688 kB / 427 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.2518, allocations: 14.84 kB / 427 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.2523, allocations: 206.9 kB / 427.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.2523, allocations: 0.8438 kB / 427.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.2523, allocations: 3.438 kB / 427.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.2523, allocations: 3.953 kB / 427.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006966/0.253, allocations: 247.3 kB / 427.4 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007484/0.2538, allocations: 0.4995 MB / 427.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007172/0.2545, allocations: 282.5 kB / 428.2 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.2545, allocations: 6.719 kB / 428.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005427/0.2551, allocations: 430.3 kB / 428.6 MB, free: 35.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.473e-06/0.2551, allocations: 0 / 428.6 MB, free: 35.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001335/0.2564, allocations: 0.642 MB / 429.3 MB, free: 35.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.2565, allocations: 258.3 kB / 429.5 MB, free: 35.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.2566, allocations: 176.4 kB / 429.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.2567, allocations: 32.3 kB / 429.7 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.143e-05/0.2567, allocations: 111.2 kB / 429.9 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.2568, allocations: 44.23 kB / 429.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.364e-05/0.2568, allocations: 5.969 kB / 429.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.778e-05/0.2568, allocations: 326.6 kB / 430.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.2572, allocations: 147.3 kB / 430.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.2576, allocations: 151.7 kB / 430.5 MB, free: 34.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.258, allocations: 221.6 kB / 430.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.258, allocations: 0 / 430.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009001/0.2589, allocations: 485.8 kB / 431.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.398e-05/0.259, allocations: 189.2 kB / 431.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.259, allocations: 0 / 431.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.259, allocations: 0 / 431.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.2592, allocations: 58.3 kB / 431.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.2593, allocations: 0 / 431.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.2596, allocations: 84.61 kB / 431.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.2596, allocations: 5.719 kB / 431.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/0.2596, allocations: 2.938 kB / 431.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008973/0.2605, allocations: 484 kB / 432 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-06/0.2605, allocations: 0 / 432 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.737e-06/0.2605, allocations: 9.203 kB / 432 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.2607, allocations: 59.58 kB / 432.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-06/0.2608, allocations: 0 / 432.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.2611, allocations: 81.58 kB / 432.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.2611, allocations: 5.938 kB / 432.2 MB, free: 34.19 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.0001124/0.2612, allocations: 253 kB / 432.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.2613, allocations: 18.94 kB / 432.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.2613, allocations: 22.81 kB / 432.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2613, allocations: 3.531 kB / 432.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2613, allocations: 0 / 432.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2613, allocations: 3.938 kB / 432.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001392/0.2615, allocations: 262.8 kB / 432.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2615, allocations: 0 / 432.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.2617, allocations: 52.98 kB / 432.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2617, allocations: 2.469 kB / 432.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.2617, allocations: 8.844 kB / 432.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2617, allocations: 4.516 kB / 432.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2617, allocations: 3.234 kB / 432.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009181/0.2626, allocations: 493.8 kB / 433.3 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.956e-05/0.2627, allocations: 92.83 kB / 433.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.211e-05/0.2627, allocations: 13.17 kB / 433.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003151/0.263, allocations: 76.2 kB / 433.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.2632, allocations: 44.94 kB / 433.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.2632, allocations: 5.969 kB / 433.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.777e-05/0.2633, allocations: 136.6 kB / 433.6 MB, free: 33.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2633, allocations: 0 / 433.6 MB, free: 33.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000299/0.2636, allocations: 83.22 kB / 433.7 MB, free: 33.44 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.001088/0.2647, allocations: 1.031 MB / 434.7 MB, free: 32.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.266, allocations: 0.9481 MB / 435.7 MB, free: 32.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.266, allocations: 0 / 435.7 MB, free: 32.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004911/0.2665, allocations: 370.3 kB / 436 MB, free: 32.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.2668, allocations: 33.58 kB / 436.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.2692, allocations: 1.366 MB / 437.4 MB, free: 31.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.2693, allocations: 0.7253 MB / 438.2 MB, free: 31.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.2694, allocations: 22.69 kB / 438.2 MB, free: 31.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.378e-05/0.2695, allocations: 40.52 kB / 438.2 MB, free: 31.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2695, allocations: 4 kB / 438.2 MB, free: 31.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01398/0.2835, allocations: 4.893 MB / 443.1 MB, free: 30.81 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.2837, allocations: 175.9 kB / 443.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.476/1.759, allocations: 0 / 443.3 MB, free: 30.58 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_dev_PowerGrids_Controls_Test_TestLimiterWithLag_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerGrids_dev_PowerGrids_Controls_Test_TestLimiterWithLag.fmu > PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1)