Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestLimiterWithLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLimiterWithLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004826/0.004826, allocations: 171.1 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.255/1.255, allocations: 205.4 MB / 221.3 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007912/0.0007912, allocations: 86.88 kB / 269.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.0523/0.0523, allocations: 14.19 MB / 332 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003308/0.0003307, allocations: 13.09 kB / 393.7 MB, free: 51.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07077/0.07112, allocations: 51.12 MB / 444.9 MB, free: 6.66 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09516/0.1663, allocations: 78.33 MB / 0.5109 GB, free: 8.227 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.1666, allocations: 71.95 kB / 0.511 GB, free: 8.156 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008423/0.175, allocations: 2.712 MB / 0.5136 GB, free: 5.434 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.175, allocations: 0 / 0.5136 GB, free: 5.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1751, allocations: 4 kB / 0.5137 GB, free: 5.43 MB / 362.7 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.0009885/0.1761, allocations: 0.5816 MB / 0.5142 GB, free: 4.781 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1761, allocations: 16.02 kB / 0.5142 GB, free: 4.766 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.229e-05/0.1762, allocations: 46.55 kB / 0.5143 GB, free: 4.711 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.1762, allocations: 15.81 kB / 0.5143 GB, free: 4.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.1765, allocations: 210.9 kB / 0.5145 GB, free: 4.449 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1765, allocations: 8 kB / 0.5145 GB, free: 4.441 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.1765, allocations: 11.95 kB / 0.5145 GB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005517/0.1771, allocations: 209.4 kB / 0.5147 GB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.1771, allocations: 0 / 0.5147 GB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.1771, allocations: 0 / 0.5147 GB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1772, allocations: 4 kB / 0.5147 GB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007514/0.1779, allocations: 247.8 kB / 0.515 GB, free: 3.973 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008881/0.1788, allocations: 484.5 kB / 0.5154 GB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008114/0.1796, allocations: 290.2 kB / 0.5157 GB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.1797, allocations: 4 kB / 0.5157 GB, free: 3.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007352/0.1804, allocations: 425.3 kB / 0.5161 GB, free: 2.688 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.814e-06/0.1804, allocations: 0 / 0.5161 GB, free: 2.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001507/0.1819, allocations: 0.6439 MB / 0.5167 GB, free: 2.016 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.1821, allocations: 255.4 kB / 0.517 GB, free: 1.711 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.1822, allocations: 157.4 kB / 0.5171 GB, free: 1.551 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.1823, allocations: 33.7 kB / 0.5172 GB, free: 1.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.672e-05/0.1824, allocations: 112.4 kB / 0.5173 GB, free: 1.395 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.1824, allocations: 39.52 kB / 0.5173 GB, free: 1.355 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.1824, allocations: 8 kB / 0.5173 GB, free: 1.348 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1826, allocations: 326.8 kB / 0.5176 GB, free: 1.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004281/0.183, allocations: 147.9 kB / 0.5178 GB, free: 0.875 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004155/0.1834, allocations: 143.9 kB / 0.5179 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.1839, allocations: 225.2 kB / 0.5181 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1839, allocations: 0 / 0.5181 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.1567/0.3406, allocations: 489 kB / 0.5186 GB, free: 83.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.3408, allocations: 180.8 kB / 0.5188 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3408, allocations: 2.109 kB / 0.5188 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3408, allocations: 1.438 kB / 0.5188 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/0.3412, allocations: 50.88 kB / 0.5188 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3412, allocations: 5.453 kB / 0.5188 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004091/0.3416, allocations: 79.75 kB / 0.5189 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.3416, allocations: 11.09 kB / 0.5189 GB, free: 83.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.3417, allocations: 5.125 kB / 0.5189 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001019/0.3427, allocations: 485.5 kB / 0.5194 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-06/0.3427, allocations: 3.703 kB / 0.5194 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-06/0.3427, allocations: 1.25 kB / 0.5194 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.3429, allocations: 52.27 kB / 0.5194 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-06/0.3429, allocations: 0 / 0.5194 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/0.3433, allocations: 84.72 kB / 0.5195 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.3433, allocations: 9.516 kB / 0.5195 GB, free: 83.34 MB / 362.7 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.0001561/0.3435, allocations: 261.6 kB / 0.5198 GB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.059e-05/0.3436, allocations: 17.44 kB / 0.5198 GB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.272e-05/0.3436, allocations: 21.28 kB / 0.5198 GB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3436, allocations: 2.062 kB / 0.5198 GB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3436, allocations: 3.953 kB / 0.5198 GB, free: 83.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3436, allocations: 0.75 kB / 0.5198 GB, free: 83.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.3438, allocations: 261 kB / 0.52 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3438, allocations: 0 / 0.52 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002368/0.3441, allocations: 51.16 kB / 0.5201 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3441, allocations: 0.9062 kB / 0.5201 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.3441, allocations: 11.88 kB / 0.5201 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3441, allocations: 3.938 kB / 0.5201 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3441, allocations: 5.359 kB / 0.5201 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.3451, allocations: 483.3 kB / 0.5206 GB, free: 82.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.3452, allocations: 99.89 kB / 0.5207 GB, free: 82.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/0.3452, allocations: 13.56 kB / 0.5207 GB, free: 82.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/0.3456, allocations: 76.69 kB / 0.5208 GB, free: 82.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3457, allocations: 43.05 kB / 0.5208 GB, free: 82.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.3457, allocations: 8.797 kB / 0.5208 GB, free: 82.72 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.755e-05/0.3458, allocations: 129.7 kB / 0.5209 GB, free: 82.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.3458, allocations: 0 / 0.5209 GB, free: 82.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003345/0.3462, allocations: 84.44 kB / 0.521 GB, free: 82.64 MB / 362.7 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.00121/0.3474, allocations: 1.034 MB / 0.522 GB, free: 82.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.349, allocations: 0.9426 MB / 0.5229 GB, free: 81.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.349, allocations: 0.9375 kB / 0.5229 GB, free: 81.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005616/0.3496, allocations: 378 kB / 0.5233 GB, free: 81.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.3498, allocations: 36.81 kB / 0.5233 GB, free: 81.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002568/0.3524, allocations: 1.367 MB / 0.5247 GB, free: 81.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001272/0.3525, allocations: 0.7267 MB / 0.5254 GB, free: 80.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.3526, allocations: 23.95 kB / 0.5254 GB, free: 80.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.574e-05/0.3527, allocations: 41.55 kB / 0.5254 GB, free: 80.39 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3527, allocations: 4 kB / 0.5255 GB, free: 80.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01609/0.3688, allocations: 4.953 MB / 0.5303 GB, free: 79.42 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001202/0.369, allocations: 172.9 kB / 0.5305 GB, free: 79.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.008, allocations: 3.172 kB / 0.5305 GB, free: 79.18 MB / 362.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1)