Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.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/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 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: translateModel(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter") translateModel(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001473/0.001473, allocations: 183.1 kB / 15.98 MB, free: 5.77 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.367/1.367, allocations: 205.1 MB / 221.8 MB, free: 8.484 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.001021/0.001021, allocations: 104 kB / 269.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06053/0.06053, allocations: 14.18 MB / 330.7 MB, free: 10.83 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 51.92 kB / 393.7 MB, free: 62.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09108/0.09228, allocations: 50.15 MB / 443.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.002766/0.09509, allocations: 2.146 MB / 446 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.09629, allocations: 0.8891 MB / 446.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.09643, allocations: 8 kB / 446.9 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002088/0.09665, allocations: 55.67 kB / 446.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.09686, allocations: 55.67 kB / 447 MB, free: 9.473 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004689/0.09734, allocations: 211.7 kB / 447.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002453/0.09759, allocations: 291.3 kB / 447.5 MB, free: 8.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.09777, allocations: 95.38 kB / 447.6 MB, free: 8.891 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.447e-05/0.09787, allocations: 119.5 kB / 447.7 MB, free: 8.773 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.09803, allocations: 143.3 kB / 447.8 MB, free: 8.633 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.459e-05/0.09807, allocations: 12 kB / 447.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.0982, allocations: 83.94 kB / 447.9 MB, free: 8.539 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.254e-05/0.09828, allocations: 55.77 kB / 448 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.804e-05/0.09838, allocations: 127.1 kB / 448.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.09864, allocations: 327 kB / 448.4 MB, free: 8.039 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.09865, allocations: 0 / 448.4 MB, free: 8.039 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09866, allocations: 0 / 448.4 MB, free: 8.039 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.09867, allocations: 0 / 448.4 MB, free: 8.039 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0007597/0.09943, allocations: 0.6325 MB / 449.1 MB, free: 7.352 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.09948, allocations: 12.03 kB / 449.1 MB, free: 7.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.701e-05/0.09955, allocations: 36.47 kB / 449.1 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.09986, allocations: 315.5 kB / 449.4 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.09988, allocations: 16.38 kB / 449.4 MB, free: 6.941 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-05/0.09993, allocations: 16.38 kB / 449.4 MB, free: 6.926 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004265/0.1004, allocations: 300.3 kB / 449.7 MB, free: 6.598 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1004, allocations: 0 / 449.7 MB, free: 6.598 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.1004, allocations: 8 kB / 449.7 MB, free: 6.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.1004, allocations: 4 kB / 449.7 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.1008, allocations: 196.3 kB / 449.9 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009164/0.1018, allocations: 0.9905 MB / 450.9 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.1023, allocations: 264.7 kB / 451.2 MB, free: 5.062 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.1026, allocations: 141.7 kB / 451.3 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.1026, allocations: 4 kB / 451.3 MB, free: 4.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003819/0.103, allocations: 202.7 kB / 451.5 MB, free: 4.691 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.412e-06/0.103, allocations: 7.938 kB / 451.5 MB, free: 4.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007967/0.1038, allocations: 418.7 kB / 451.9 MB, free: 4.262 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.1039, allocations: 158.2 kB / 452.1 MB, free: 4.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.1041, allocations: 278.9 kB / 452.4 MB, free: 3.781 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.1041, allocations: 37.64 kB / 452.4 MB, free: 3.738 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.125e-05/0.1042, allocations: 172.2 kB / 452.6 MB, free: 3.566 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.121e-05/0.1042, allocations: 67.08 kB / 452.6 MB, free: 3.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.523e-05/0.1043, allocations: 53.7 kB / 452.7 MB, free: 3.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.1044, allocations: 342.7 kB / 453 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.1046, allocations: 104.8 kB / 453.1 MB, free: 2.992 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.1049, allocations: 179.7 kB / 453.3 MB, free: 2.781 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.1053, allocations: 304.3 kB / 453.6 MB, free: 2.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1053, allocations: 8 kB / 453.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001119/0.1064, allocations: 0.5314 MB / 454.1 MB, free: 1.895 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.1065, allocations: 33.7 kB / 454.2 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1065, allocations: 7.984 kB / 454.2 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.1068, allocations: 101.7 kB / 454.3 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.107, allocations: 31.97 kB / 454.3 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003636/0.1106, allocations: 3.45 MB / 457.8 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.1109, allocations: 31.84 kB / 457.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.1109, allocations: 12 kB / 457.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002372/0.1111, allocations: 180.1 kB / 458 MB, free: 13.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001996/0.1113, allocations: 166.5 kB / 458.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003226/0.1117, allocations: 256.3 kB / 458.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.513e-06/0.1117, allocations: 3.938 kB / 458.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0005928/0.1123, allocations: 392.6 kB / 458.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1123, allocations: 37.69 kB / 458.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/0.1123, allocations: 160 / 458.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001689/0.1125, allocations: 77.88 kB / 458.9 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.1127, allocations: 35.91 kB / 458.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.1147, allocations: 3.013 MB / 461.9 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.1149, allocations: 27.86 kB / 462 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.1149, allocations: 8 kB / 462 MB, free: 9.406 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (inputSignal.nextEventScaled,inputSignal.nextEvent,$PRE.inputSignal.nextEvent,inputSignal.last,inputSignal.b,inputSignal.a,$whenCondition1,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001563/0.1151, allocations: 237.9 kB / 462.2 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.025e-05/0.1151, allocations: 35.56 kB / 462.2 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.885e-05/0.1152, allocations: 30.17 kB / 462.3 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1152, allocations: 4 kB / 462.3 MB, free: 9.098 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.1152, allocations: 0 / 462.3 MB, free: 9.098 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1152, allocations: 0 / 462.3 MB, free: 9.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002938/0.1155, allocations: 337.3 kB / 462.6 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1155, allocations: 3.938 kB / 462.6 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.1157, allocations: 39.97 kB / 462.7 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.1158, allocations: 0 / 462.7 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.1158, allocations: 15.98 kB / 462.7 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1158, allocations: 0 / 462.7 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.1158, allocations: 3.938 kB / 462.7 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004512/0.1203, allocations: 3.134 MB / 465.8 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.821e-05/0.1204, allocations: 112.7 kB / 465.9 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.1204, allocations: 8 kB / 465.9 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.1206, allocations: 15.98 kB / 465.9 MB, free: 5.188 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.1207, allocations: 23.97 kB / 466 MB, free: 5.164 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.1207, allocations: 8 kB / 466 MB, free: 5.156 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001622/0.1209, allocations: 194 kB / 466.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1209, allocations: 0 / 466.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008383/0.1217, allocations: 179.7 kB / 466.3 MB, free: 4.793 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (leadLagPositiveGain.integ_fb.y,leadLagNegativeGain.integ_fb.y) * Number of discrete variables: 6 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 6 (inputSignal.nextEvent,inputSignal.last,inputSignal.nextEventScaled,inputSignal.b,inputSignal.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001773/0.1219, allocations: 131.1 kB / 466.5 MB, free: 4.656 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.1236, allocations: 1.083 MB / 467.5 MB, free: 3.496 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1236, allocations: 0 / 467.5 MB, free: 3.496 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002905/0.1239, allocations: 202.8 kB / 467.7 MB, free: 3.289 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.1243, allocations: 60.89 kB / 467.8 MB, free: 3.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.1259, allocations: 1.002 MB / 468.8 MB, free: 2.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.1262, allocations: 0.7639 MB / 469.6 MB, free: 1.391 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.1264, allocations: 33.94 kB / 469.6 MB, free: 1.355 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.38e-05/0.1265, allocations: 23.44 kB / 469.6 MB, free: 1.332 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1265, allocations: 0 / 469.6 MB, free: 1.332 MB / 314.7 MB Notification: Performance of Templates: time 0.01035/0.1369, allocations: 5.475 MB / 475.1 MB, free: 11.85 MB / 330.7 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1)