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/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.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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.TestLeadLagWithNonWindupLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="inputSignal.offset|inputSignal.shiftTime|inputSignal.startTime|inputSignal.table.1,1.|inputSignal.table.1,2.|inputSignal.table.2,1.|inputSignal.table.2,2.|inputSignal.table.3,1.|inputSignal.table.3,2.|inputSignal.table.4,1.|inputSignal.table.4,2.|inputSignal.table.5,1.|inputSignal.table.5,2.|inputSignal.table.6,1.|inputSignal.table.6,2.|inputSignal.timeScale|inputSignal.y|leadLagAnalyticSolution.y|leadLagNegativeGain.T1|leadLagNegativeGain.T2|leadLagNegativeGain.feedback_u.y|leadLagNegativeGain.feedback_y.y|leadLagNegativeGain.gain_dir.k|leadLagNegativeGain.gain_dir.u|leadLagNegativeGain.gain_dir.y|leadLagNegativeGain.gain_fb.k|leadLagNegativeGain.gain_fb.u|leadLagNegativeGain.gain_fb.y|leadLagNegativeGain.initType|leadLagNegativeGain.integ_fb.initType|leadLagNegativeGain.integ_fb.k|leadLagNegativeGain.integ_fb.u|leadLagNegativeGain.integ_fb.y|leadLagNegativeGain.integ_fb.y_start|leadLagNegativeGain.k|leadLagNegativeGain.limiter_y.homotopyType|leadLagNegativeGain.limiter_y.limitsAtInit|leadLagNegativeGain.limiter_y.strict|leadLagNegativeGain.limiter_y.u|leadLagNegativeGain.limiter_y.uMax|leadLagNegativeGain.limiter_y.uMin|leadLagNegativeGain.limiter_y.y|leadLagNegativeGain.strict|leadLagNegativeGain.u|leadLagNegativeGain.y|leadLagNegativeGain.yMax|leadLagNegativeGain.yMin|leadLagNegativeGain.yStart|leadLagPositiveGain.T1|leadLagPositiveGain.T2|leadLagPositiveGain.feedback_u.y|leadLagPositiveGain.feedback_y.y|leadLagPositiveGain.gain_dir.k|leadLagPositiveGain.gain_dir.u|leadLagPositiveGain.gain_dir.y|leadLagPositiveGain.gain_fb.k|leadLagPositiveGain.gain_fb.u|leadLagPositiveGain.gain_fb.y|leadLagPositiveGain.initType|leadLagPositiveGain.integ_fb.initType|leadLagPositiveGain.integ_fb.k|leadLagPositiveGain.integ_fb.u|leadLagPositiveGain.integ_fb.y|leadLagPositiveGain.integ_fb.y_start|leadLagPositiveGain.k|leadLagPositiveGain.limiter_y.homotopyType|leadLagPositiveGain.limiter_y.limitsAtInit|leadLagPositiveGain.limiter_y.strict|leadLagPositiveGain.limiter_y.u|leadLagPositiveGain.limiter_y.uMax|leadLagPositiveGain.limiter_y.uMin|leadLagPositiveGain.limiter_y.y|leadLagPositiveGain.strict|leadLagPositiveGain.u|leadLagPositiveGain.y|leadLagPositiveGain.yMax|leadLagPositiveGain.yMin|leadLagPositiveGain.yStart|negativeGain.k|negativeGain.u|negativeGain.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter") translateModel(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="inputSignal.offset|inputSignal.shiftTime|inputSignal.startTime|inputSignal.table.1,1.|inputSignal.table.1,2.|inputSignal.table.2,1.|inputSignal.table.2,2.|inputSignal.table.3,1.|inputSignal.table.3,2.|inputSignal.table.4,1.|inputSignal.table.4,2.|inputSignal.table.5,1.|inputSignal.table.5,2.|inputSignal.table.6,1.|inputSignal.table.6,2.|inputSignal.timeScale|inputSignal.y|leadLagAnalyticSolution.y|leadLagNegativeGain.T1|leadLagNegativeGain.T2|leadLagNegativeGain.feedback_u.y|leadLagNegativeGain.feedback_y.y|leadLagNegativeGain.gain_dir.k|leadLagNegativeGain.gain_dir.u|leadLagNegativeGain.gain_dir.y|leadLagNegativeGain.gain_fb.k|leadLagNegativeGain.gain_fb.u|leadLagNegativeGain.gain_fb.y|leadLagNegativeGain.initType|leadLagNegativeGain.integ_fb.initType|leadLagNegativeGain.integ_fb.k|leadLagNegativeGain.integ_fb.u|leadLagNegativeGain.integ_fb.y|leadLagNegativeGain.integ_fb.y_start|leadLagNegativeGain.k|leadLagNegativeGain.limiter_y.homotopyType|leadLagNegativeGain.limiter_y.limitsAtInit|leadLagNegativeGain.limiter_y.strict|leadLagNegativeGain.limiter_y.u|leadLagNegativeGain.limiter_y.uMax|leadLagNegativeGain.limiter_y.uMin|leadLagNegativeGain.limiter_y.y|leadLagNegativeGain.strict|leadLagNegativeGain.u|leadLagNegativeGain.y|leadLagNegativeGain.yMax|leadLagNegativeGain.yMin|leadLagNegativeGain.yStart|leadLagPositiveGain.T1|leadLagPositiveGain.T2|leadLagPositiveGain.feedback_u.y|leadLagPositiveGain.feedback_y.y|leadLagPositiveGain.gain_dir.k|leadLagPositiveGain.gain_dir.u|leadLagPositiveGain.gain_dir.y|leadLagPositiveGain.gain_fb.k|leadLagPositiveGain.gain_fb.u|leadLagPositiveGain.gain_fb.y|leadLagPositiveGain.initType|leadLagPositiveGain.integ_fb.initType|leadLagPositiveGain.integ_fb.k|leadLagPositiveGain.integ_fb.u|leadLagPositiveGain.integ_fb.y|leadLagPositiveGain.integ_fb.y_start|leadLagPositiveGain.k|leadLagPositiveGain.limiter_y.homotopyType|leadLagPositiveGain.limiter_y.limitsAtInit|leadLagPositiveGain.limiter_y.strict|leadLagPositiveGain.limiter_y.u|leadLagPositiveGain.limiter_y.uMax|leadLagPositiveGain.limiter_y.uMin|leadLagPositiveGain.limiter_y.y|leadLagPositiveGain.strict|leadLagPositiveGain.u|leadLagPositiveGain.y|leadLagPositiveGain.yMax|leadLagPositiveGain.yMin|leadLagPositiveGain.yStart|negativeGain.k|negativeGain.u|negativeGain.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 107.9 kB / 16.42 MB, free: 6.418 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.001672/0.001672, allocations: 190 kB / 17.36 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06007/0.06007, allocations: 14.17 MB / 284.8 MB, free: 13.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.512e-05/2.514e-05, allocations: 6 kB / 399.2 MB, free: 42.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.003198/0.003231, allocations: 2.1 MB / 401.3 MB, free: 41.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.004681, allocations: 0.8772 MB / 402.2 MB, free: 40.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.004838, allocations: 9.219 kB / 402.2 MB, free: 40.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002588/0.005132, allocations: 63.44 kB / 402.3 MB, free: 40.55 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.005366, allocations: 82.7 kB / 402.3 MB, free: 40.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006347/0.006009, allocations: 239.5 kB / 402.6 MB, free: 40.31 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00046/0.006478, allocations: 357.4 kB / 402.9 MB, free: 40.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.00674, allocations: 112.3 kB / 403 MB, free: 40.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.006904, allocations: 130.7 kB / 403.2 MB, free: 39.94 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.007116, allocations: 139.2 kB / 403.3 MB, free: 39.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.097e-05/0.007174, allocations: 25.88 kB / 403.3 MB, free: 39.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.007347, allocations: 99.98 kB / 403.4 MB, free: 39.8 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0003117/0.007676, allocations: 458.7 kB / 403.9 MB, free: 39.46 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001367/0.007819, allocations: 277.4 kB / 404.1 MB, free: 39.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.243e-05/0.007887, allocations: 44.58 kB / 404.2 MB, free: 39.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.562e-05/0.007958, allocations: 20.78 kB / 404.2 MB, free: 39.21 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 (44) * Number of variables: 48 (48) Notification: Performance of Bindings: time 0.001156/0.009122, allocations: 1.302 MB / 405.5 MB, free: 38.16 MB / 318.1 MB Notification: Performance of FunctionAlias: time 8.701e-05/0.009217, allocations: 55.33 kB / 405.6 MB, free: 38.11 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0005192/0.009744, allocations: 0.5777 MB / 406.1 MB, free: 37.65 MB / 318.1 MB Notification: Performance of simplify1: time 4.139e-05/0.009793, allocations: 39.28 kB / 406.2 MB, free: 37.62 MB / 318.1 MB Notification: Performance of Alias: time 0.001352/0.01115, allocations: 1.21 MB / 407.4 MB, free: 36.68 MB / 318.1 MB Notification: Performance of simplify2: time 3.114e-05/0.01119, allocations: 26.47 kB / 407.4 MB, free: 36.66 MB / 318.1 MB Notification: Performance of Events: time 0.0002484/0.01145, allocations: 180.7 kB / 407.6 MB, free: 36.54 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002719/0.01173, allocations: 213.1 kB / 407.8 MB, free: 36.36 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002435/0.01198, allocations: 242.8 kB / 408 MB, free: 36.14 MB / 318.1 MB Notification: Performance of Causalize: time 0.0008638/0.01285, allocations: 0.7394 MB / 408.8 MB, free: 35.68 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003754/0.01324, allocations: 0.4938 MB / 409.3 MB, free: 35.16 MB / 318.1 MB Notification: Performance of Inline: time 0.0007087/0.01395, allocations: 0.8775 MB / 410.1 MB, free: 34.25 MB / 318.1 MB Notification: Performance of Partitioning: time 4.556e-05/0.01401, allocations: 58.34 kB / 410.2 MB, free: 34.18 MB / 318.1 MB Notification: Performance of Cleanup: time 8.648e-05/0.0141, allocations: 107.9 kB / 410.3 MB, free: 34.07 MB / 318.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) inputSignal.nextEventScaled = $START.inputSignal.nextEventScaled ($RES_SRT_68) slice: {}; Notification: Performance of Causalize: time 0.003752/0.01786, allocations: 3.842 MB / 414.1 MB, free: 30.16 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007948/0.01867, allocations: 1.329 MB / 415.5 MB, free: 28.64 MB / 318.1 MB Notification: Performance of Initialization: time 8.01e-07/0.01868, allocations: 4 kB / 415.5 MB, free: 28.64 MB / 318.1 MB Notification: Performance of Tearing: time 5.66e-06/0.01869, allocations: 0 / 415.5 MB, free: 28.64 MB / 318.1 MB Notification: Performance of Categorize: time 2.265e-05/0.01872, allocations: 3.938 kB / 415.5 MB, free: 28.63 MB / 318.1 MB Notification: Performance of Solve: time 0.0002131/0.01894, allocations: 138.1 kB / 415.6 MB, free: 28.5 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0002235/0.01917, allocations: 350 kB / 416 MB, free: 28.12 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 7 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 2 (2) {leadLagPositiveGain.gain_fb.u, leadLagNegativeGain.gain_fb.u} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 19 (19) {inputSignal.a, inputSignal.b, inputSignal.last, inputSignal.nextEvent, inputSignal.nextEventScaled, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 30 (scalar:30, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 32 (scalar:32, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 36 (scalar:36, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 0.0001088/0.01928, allocations: 49.28 kB / 416 MB, free: 28.07 MB / 318.1 MB Notification: Performance of SimCode: time 0.001409/0.0207, allocations: 1.882 MB / 417.9 MB, free: 26.16 MB / 318.1 MB Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SerializeModelInfo.mo:116:9-116:84:writable] Error: Internal error SerializeModelInfo.serialize failed [CodegenCFunctions.tpl:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR.