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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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 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_PowerGrids.Controls.Test.TestLimiterWithLag") translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_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.001258/0.001259, 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.001542/0.001542, 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 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.4 MB / 222.1 MB, free: 5.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05837/0.05837, allocations: 14.17 MB / 284.5 MB, free: 7.254 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007061/0.0007065, allocations: 16 kB / 346.1 MB, free: 19.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1052, allocations: 51.13 MB / 397.2 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.001892/0.1071, allocations: 1.429 MB / 398.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000805/0.1079, allocations: 0.5429 MB / 399.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.723e-05/0.108, allocations: 7.938 kB / 399.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.56e-05/0.1081, allocations: 11.91 kB / 399.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.1082, allocations: 31.88 kB / 399.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000178/0.1084, allocations: 43.94 kB / 399.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.1086, allocations: 111.8 kB / 399.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1087, allocations: 21.11 kB / 399.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.1088, allocations: 71.81 kB / 399.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.109, allocations: 83.69 kB / 399.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.109, allocations: 8 kB / 399.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.783e-05/0.1091, allocations: 12 kB / 399.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.549e-05/0.1091, allocations: 23.91 kB / 399.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.1092, allocations: 53.56 kB / 399.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.1093, allocations: 115.9 kB / 399.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1094, allocations: 0 / 399.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1094, allocations: 4 kB / 399.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1094, allocations: 0 / 399.8 MB, free: 14.18 MB / 302.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.001121/0.1105, allocations: 0.5739 MB / 400.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1105, allocations: 16.02 kB / 400.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.86e-05/0.1106, allocations: 15.81 kB / 400.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000249/0.1109, allocations: 214.8 kB / 400.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.1109, allocations: 7.953 kB / 400.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.1109, allocations: 8 kB / 400.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.1115, allocations: 209.4 kB / 400.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.1115, allocations: 3.938 kB / 400.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.1116, allocations: 0 / 400.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1116, allocations: 4 kB / 400.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008096/0.1124, allocations: 247.8 kB / 401.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009392/0.1133, allocations: 0.4965 MB / 401.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008649/0.1142, allocations: 286.3 kB / 401.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.1143, allocations: 112 / 401.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006939/0.115, allocations: 433.3 kB / 402.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.794e-06/0.115, allocations: 0 / 402.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.001666/0.1167, allocations: 0.6441 MB / 402.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.1168, allocations: 247.3 kB / 403.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.1169, allocations: 174.4 kB / 403.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.117, allocations: 33.7 kB / 403.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.425e-05/0.1171, allocations: 108.4 kB / 403.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.094e-05/0.1171, allocations: 47.44 kB / 403.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.659e-05/0.1171, allocations: 12 kB / 403.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1173, allocations: 330.8 kB / 403.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004515/0.1177, allocations: 143.9 kB / 404 MB, free: 9.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.1182, allocations: 153 kB / 404.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004771/0.1187, allocations: 225.1 kB / 404.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1187, allocations: 0 / 404.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001125/0.1198, allocations: 486.2 kB / 404.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.12, allocations: 182.8 kB / 405 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.12, allocations: 4 kB / 405 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.12, allocations: 0 / 405 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.1203, allocations: 43.95 kB / 405.1 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1203, allocations: 11.98 kB / 405.1 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.1207, allocations: 79.83 kB / 405.2 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.1208, allocations: 15.98 kB / 405.2 MB, free: 8.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.406e-06/0.1208, allocations: 4 kB / 405.2 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001121/0.1219, allocations: 484.7 kB / 405.7 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1219, allocations: 7.922 kB / 405.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.817e-06/0.1219, allocations: 0 / 405.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.1222, allocations: 51.95 kB / 405.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.1222, allocations: 0 / 405.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/0.1226, allocations: 75.92 kB / 405.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.1226, allocations: 8 kB / 405.8 MB, free: 7.762 MB / 302.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.0002551/0.1229, allocations: 258 kB / 406.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.838e-05/0.123, allocations: 27.73 kB / 406.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.957e-05/0.123, allocations: 17.88 kB / 406.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.123, allocations: 0 / 406.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.123, allocations: 4 kB / 406.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1231, allocations: 4 kB / 406.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.1233, allocations: 265.3 kB / 406.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1233, allocations: 0 / 406.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.1236, allocations: 47.95 kB / 406.4 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.1236, allocations: 4 kB / 406.4 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.1236, allocations: 11.98 kB / 406.4 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1236, allocations: 0 / 406.4 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1236, allocations: 0 / 406.4 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.1247, allocations: 494.3 kB / 406.9 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.1248, allocations: 92.91 kB / 407 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.1248, allocations: 8 kB / 407 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.1252, allocations: 75.92 kB / 407.1 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.1254, allocations: 47.88 kB / 407.1 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.1254, allocations: 8 kB / 407.1 MB, free: 6.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000111/0.1255, allocations: 135.2 kB / 407.3 MB, free: 6.184 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1255, allocations: 3.938 kB / 407.3 MB, free: 6.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003722/0.1259, allocations: 80 kB / 407.3 MB, free: 6.102 MB / 302.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.0001518/0.1261, allocations: 111.2 kB / 407.5 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.1279, allocations: 0.9359 MB / 408.4 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1279, allocations: 4 kB / 408.4 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006234/0.1285, allocations: 379.2 kB / 408.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.1288, allocations: 31.92 kB / 408.8 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008148/0.1296, allocations: 342.2 kB / 409.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.13, allocations: 0.7246 MB / 409.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.1301, allocations: 21.06 kB / 409.9 MB, free: 3.426 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.055e-05/0.1301, allocations: 15.44 kB / 409.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1301, allocations: 0 / 409.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of Templates: time 0.00637/0.1365, allocations: 3.368 MB / 413.3 MB, free: 68 kB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.makefile Environment - environmentSimulation: (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 & ./PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1) Environment - environmentSimulation: