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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002486/0.002486, allocations: 176.8 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.099/1.099, allocations: 205.2 MB / 213.1 MB, free: 13.86 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.001006/0.001006, allocations: 97.92 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05353/0.05353, allocations: 14 MB / 323 MB, free: 15.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.905e-06/7.924e-06, allocations: 4 kB / 381.3 MB, free: 73.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07807/0.0781, allocations: 51.1 MB / 432.4 MB, free: 22.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2218/0.3, allocations: 78.97 MB / 0.4994 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.3002, allocations: 75.19 kB / 0.4994 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01532/0.3155, allocations: 5.892 MB / 0.5052 GB, free: 10.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.3156, allocations: 20.66 kB / 0.5052 GB, free: 10.74 MB / 330.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.0005766/0.3162, allocations: 0.5565 MB / 0.5058 GB, free: 10.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.3162, allocations: 8.25 kB / 0.5058 GB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.501e-05/0.3163, allocations: 41.39 kB / 0.5058 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.3167, allocations: 322.8 kB / 0.5061 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3167, allocations: 5.5 kB / 0.5061 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.3168, allocations: 13.75 kB / 0.5061 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000245/0.317, allocations: 139.5 kB / 0.5063 GB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.3173, allocations: 245 kB / 0.5065 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3174, allocations: 0 / 0.5065 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.3174, allocations: 1.562 kB / 0.5065 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3174, allocations: 4.719 kB / 0.5065 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.3184, allocations: 1.043 MB / 0.5075 GB, free: 9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/0.3188, allocations: 193.5 kB / 0.5077 GB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.319, allocations: 112.7 kB / 0.5078 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.319, allocations: 4.312 kB / 0.5078 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.3192, allocations: 194.8 kB / 0.508 GB, free: 8.785 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.3192, allocations: 0 / 0.508 GB, free: 8.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.000405/0.3196, allocations: 228.5 kB / 0.5082 GB, free: 8.715 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.3197, allocations: 162.3 kB / 0.5084 GB, free: 8.523 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.3199, allocations: 229.4 kB / 0.5086 GB, free: 8.414 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.3199, allocations: 26.77 kB / 0.5086 GB, free: 8.383 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.32, allocations: 138.2 kB / 0.5087 GB, free: 8.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.608e-05/0.32, allocations: 67.81 kB / 0.5088 GB, free: 8.219 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.366e-05/0.32, allocations: 1.125 kB / 0.5088 GB, free: 8.219 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.306e-05/0.3201, allocations: 339.6 kB / 0.5091 GB, free: 7.895 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.3202, allocations: 80.64 kB / 0.5092 GB, free: 7.883 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.3204, allocations: 160.6 kB / 0.5094 GB, free: 7.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.3205, allocations: 96.39 kB / 0.5095 GB, free: 7.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3205, allocations: 0 / 0.5095 GB, free: 7.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007797/0.3213, allocations: 406.5 kB / 0.5098 GB, free: 7.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.606e-05/0.3214, allocations: 0.5263 MB / 0.5104 GB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3214, allocations: 2.125 kB / 0.5104 GB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002759/0.3217, allocations: 94.88 kB / 0.5105 GB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.3219, allocations: 25.08 kB / 0.5105 GB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000582/0.3225, allocations: 1.174 MB / 0.5116 GB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.3227, allocations: 32.58 kB / 0.5117 GB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.3227, allocations: 13.05 kB / 0.5117 GB, free: 5.953 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.283e-06/0.3228, allocations: 3.781 kB / 0.5117 GB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000419/0.3232, allocations: 249.2 kB / 0.5119 GB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.3232, allocations: 5.406 kB / 0.5119 GB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.3233, allocations: 73.72 kB / 0.512 GB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.3235, allocations: 23.64 kB / 0.512 GB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.325, allocations: 2.86 MB / 0.5148 GB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.3252, allocations: 26.14 kB / 0.5148 GB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.3253, allocations: 11.56 kB / 0.5148 GB, free: 3.176 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: leadLagNegativeGain.gain_dir.y:VARIABLE() "Output signal connector" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: leadLagPositiveGain.gain_dir.y:VARIABLE() "Output signal connector" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001422/0.3254, allocations: 150.4 kB / 0.515 GB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.811e-05/0.3255, allocations: 31.28 kB / 0.515 GB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.137e-05/0.3255, allocations: 29.55 kB / 0.515 GB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3255, allocations: 5.5 kB / 0.515 GB, free: 3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3255, allocations: 1.25 kB / 0.515 GB, free: 3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3255, allocations: 1.5 kB / 0.515 GB, free: 3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002253/0.3258, allocations: 291 kB / 0.5153 GB, free: 2.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3258, allocations: 5.141 kB / 0.5153 GB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.326, allocations: 43.55 kB / 0.5154 GB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.326, allocations: 1.156 kB / 0.5154 GB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.326, allocations: 15.98 kB / 0.5154 GB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3261, allocations: 1.281 kB / 0.5154 GB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3261, allocations: 0.9688 kB / 0.5154 GB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00054/0.3266, allocations: 414.4 kB / 0.5158 GB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.53e-05/0.3267, allocations: 95.92 kB / 0.5159 GB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.013e-05/0.3267, allocations: 3.812 kB / 0.5159 GB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.3269, allocations: 24.28 kB / 0.5159 GB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.327, allocations: 16.61 kB / 0.5159 GB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.327, allocations: 11.75 kB / 0.5159 GB, free: 2.488 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001541/0.3272, allocations: 183.3 kB / 0.5161 GB, free: 2.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005607/0.3277, allocations: 110.2 kB / 0.5162 GB, free: 2.375 MB / 330.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) * 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 (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.0002161/0.328, allocations: 132.1 kB / 0.5163 GB, free: 2.277 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000817/0.3288, allocations: 0.5992 MB / 0.5169 GB, free: 1.961 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3288, allocations: 0 / 0.5169 GB, free: 1.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.329, allocations: 149.9 kB / 0.5171 GB, free: 1.918 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.3293, allocations: 52.48 kB / 0.5171 GB, free: 1.898 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.3308, allocations: 0.5495 MB / 0.5176 GB, free: 1.652 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004133/0.3312, allocations: 0.7943 MB / 0.5184 GB, free: 16.91 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3312, allocations: 0 / 0.5184 GB, free: 16.91 MB / 346.7 MB Notification: Performance of Templates: time 0.01005/0.3413, allocations: 4.785 MB / 0.5231 GB, free: 14.55 MB / 346.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)