Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.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.TestFirstOrderWithNonWindupLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="firstOrderAnalyticSolution.y|firstOrderNegativeGain.G.k|firstOrderNegativeGain.G.u|firstOrderNegativeGain.G.y|firstOrderNegativeGain.Gk.k|firstOrderNegativeGain.Gk.u|firstOrderNegativeGain.Gk.y|firstOrderNegativeGain.I.initType|firstOrderNegativeGain.I.k|firstOrderNegativeGain.I.u|firstOrderNegativeGain.I.y|firstOrderNegativeGain.I.y_start|firstOrderNegativeGain.T|firstOrderNegativeGain.feedback.y|firstOrderNegativeGain.initType|firstOrderNegativeGain.k|firstOrderNegativeGain.lim.homotopyType|firstOrderNegativeGain.lim.limitsAtInit|firstOrderNegativeGain.lim.strict|firstOrderNegativeGain.lim.u|firstOrderNegativeGain.lim.uMax|firstOrderNegativeGain.lim.uMin|firstOrderNegativeGain.lim.y|firstOrderNegativeGain.strict|firstOrderNegativeGain.u|firstOrderNegativeGain.y|firstOrderNegativeGain.yMax|firstOrderNegativeGain.yMin|firstOrderNegativeGain.yStart|firstOrderPositiveGain.G.k|firstOrderPositiveGain.G.u|firstOrderPositiveGain.G.y|firstOrderPositiveGain.Gk.k|firstOrderPositiveGain.Gk.u|firstOrderPositiveGain.Gk.y|firstOrderPositiveGain.I.initType|firstOrderPositiveGain.I.k|firstOrderPositiveGain.I.u|firstOrderPositiveGain.I.y|firstOrderPositiveGain.I.y_start|firstOrderPositiveGain.T|firstOrderPositiveGain.feedback.y|firstOrderPositiveGain.initType|firstOrderPositiveGain.k|firstOrderPositiveGain.lim.homotopyType|firstOrderPositiveGain.lim.limitsAtInit|firstOrderPositiveGain.lim.strict|firstOrderPositiveGain.lim.u|firstOrderPositiveGain.lim.uMax|firstOrderPositiveGain.lim.uMin|firstOrderPositiveGain.lim.y|firstOrderPositiveGain.strict|firstOrderPositiveGain.u|firstOrderPositiveGain.y|firstOrderPositiveGain.yMax|firstOrderPositiveGain.yMin|firstOrderPositiveGain.yStart|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|negativeGain.k|negativeGain.u|negativeGain.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter") translateModel(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="firstOrderAnalyticSolution.y|firstOrderNegativeGain.G.k|firstOrderNegativeGain.G.u|firstOrderNegativeGain.G.y|firstOrderNegativeGain.Gk.k|firstOrderNegativeGain.Gk.u|firstOrderNegativeGain.Gk.y|firstOrderNegativeGain.I.initType|firstOrderNegativeGain.I.k|firstOrderNegativeGain.I.u|firstOrderNegativeGain.I.y|firstOrderNegativeGain.I.y_start|firstOrderNegativeGain.T|firstOrderNegativeGain.feedback.y|firstOrderNegativeGain.initType|firstOrderNegativeGain.k|firstOrderNegativeGain.lim.homotopyType|firstOrderNegativeGain.lim.limitsAtInit|firstOrderNegativeGain.lim.strict|firstOrderNegativeGain.lim.u|firstOrderNegativeGain.lim.uMax|firstOrderNegativeGain.lim.uMin|firstOrderNegativeGain.lim.y|firstOrderNegativeGain.strict|firstOrderNegativeGain.u|firstOrderNegativeGain.y|firstOrderNegativeGain.yMax|firstOrderNegativeGain.yMin|firstOrderNegativeGain.yStart|firstOrderPositiveGain.G.k|firstOrderPositiveGain.G.u|firstOrderPositiveGain.G.y|firstOrderPositiveGain.Gk.k|firstOrderPositiveGain.Gk.u|firstOrderPositiveGain.Gk.y|firstOrderPositiveGain.I.initType|firstOrderPositiveGain.I.k|firstOrderPositiveGain.I.u|firstOrderPositiveGain.I.y|firstOrderPositiveGain.I.y_start|firstOrderPositiveGain.T|firstOrderPositiveGain.feedback.y|firstOrderPositiveGain.initType|firstOrderPositiveGain.k|firstOrderPositiveGain.lim.homotopyType|firstOrderPositiveGain.lim.limitsAtInit|firstOrderPositiveGain.lim.strict|firstOrderPositiveGain.lim.u|firstOrderPositiveGain.lim.uMax|firstOrderPositiveGain.lim.uMin|firstOrderPositiveGain.lim.y|firstOrderPositiveGain.strict|firstOrderPositiveGain.u|firstOrderPositiveGain.y|firstOrderPositiveGain.yMax|firstOrderPositiveGain.yMin|firstOrderPositiveGain.yStart|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|negativeGain.k|negativeGain.u|negativeGain.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001446, allocations: 108 kB / 16.42 MB, free: 6.52 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.001484/0.001484, allocations: 187.7 kB / 17.36 MB, free: 5.727 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.495/1.495, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06135/0.06135, allocations: 14.17 MB / 284.8 MB, free: 13.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.75e-05, allocations: 2.281 kB / 399.2 MB, free: 42.72 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter): time 0.003872/0.003912, allocations: 2.028 MB / 401.2 MB, free: 41.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.005754, allocations: 0.8856 MB / 402.1 MB, free: 40.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.006144, allocations: 8.719 kB / 402.1 MB, free: 40.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002854/0.006437, allocations: 59.72 kB / 402.2 MB, free: 40.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003821/0.006828, allocations: 66.61 kB / 402.3 MB, free: 40.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009071/0.007796, allocations: 247.2 kB / 402.5 MB, free: 40.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005656/0.00837, allocations: 338.4 kB / 402.8 MB, free: 40.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.008603, allocations: 85.89 kB / 402.9 MB, free: 40.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.008836, allocations: 128.8 kB / 403 MB, free: 40.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.009101, allocations: 136.6 kB / 403.2 MB, free: 39.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.649e-05/0.009184, allocations: 25.66 kB / 403.2 MB, free: 39.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.009399, allocations: 97.75 kB / 403.3 MB, free: 39.91 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0003032/0.009711, allocations: 429 kB / 403.7 MB, free: 39.59 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.000144/0.009861, allocations: 251.5 kB / 404 MB, free: 39.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.009969, allocations: 50.25 kB / 404 MB, free: 39.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.33e-05/0.01007, allocations: 17.81 kB / 404 MB, free: 39.37 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: 42 (38) * Number of variables: 42 (42) Notification: Performance of Bindings: time 0.001237/0.01131, allocations: 1.202 MB / 405.2 MB, free: 38.38 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001361/0.01146, allocations: 65.64 kB / 405.3 MB, free: 38.32 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0005301/0.012, allocations: 0.5652 MB / 405.8 MB, free: 37.88 MB / 318.1 MB Notification: Performance of simplify1: time 6.106e-05/0.01207, allocations: 43.83 kB / 405.9 MB, free: 37.84 MB / 318.1 MB Notification: Performance of Alias: time 0.00134/0.01341, allocations: 1.021 MB / 406.9 MB, free: 37.04 MB / 318.1 MB Notification: Performance of simplify2: time 6.476e-05/0.01349, allocations: 31.06 kB / 406.9 MB, free: 37.02 MB / 318.1 MB Notification: Performance of Events: time 0.0003205/0.01382, allocations: 229.2 kB / 407.2 MB, free: 36.86 MB / 318.1 MB Notification: Performance of Detect States: time 0.0003159/0.01414, allocations: 241.4 kB / 407.4 MB, free: 36.66 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003286/0.01448, allocations: 273.1 kB / 407.7 MB, free: 36.46 MB / 318.1 MB Notification: Performance of Causalize: time 0.001206/0.01569, allocations: 0.8718 MB / 408.5 MB, free: 35.98 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004105/0.01612, allocations: 0.5887 MB / 409.1 MB, free: 35.37 MB / 318.1 MB Notification: Performance of Inline: time 0.0007695/0.0169, allocations: 0.9315 MB / 410.1 MB, free: 34.41 MB / 318.1 MB Notification: Performance of Partitioning: time 5.768e-05/0.01696, allocations: 54.31 kB / 410.1 MB, free: 34.34 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001207/0.01709, allocations: 125 kB / 410.2 MB, free: 34.22 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_70) slice: {}; Notification: Performance of Causalize: time 0.004289/0.02138, allocations: 4.209 MB / 414.4 MB, free: 29.95 MB / 318.1 MB Notification: Performance of Tearing: time 0.0006227/0.02202, allocations: 0.7808 MB / 415.2 MB, free: 29.07 MB / 318.1 MB Notification: Performance of Initialization: time 1.382e-06/0.02204, allocations: 4 kB / 415.2 MB, free: 29.07 MB / 318.1 MB Notification: Performance of Tearing: time 7.845e-06/0.02205, allocations: 0 / 415.2 MB, free: 29.07 MB / 318.1 MB Notification: Performance of Categorize: time 2.305e-05/0.02208, allocations: 8.047 kB / 415.2 MB, free: 29.06 MB / 318.1 MB Notification: Performance of Solve: time 0.0002959/0.02238, allocations: 186 kB / 415.4 MB, free: 28.88 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0002681/0.02266, allocations: 399.4 kB / 415.8 MB, free: 28.45 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: ......... 5 * 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) {firstOrderPositiveGain.lim.simplifiedExpr, firstOrderNegativeGain.lim.simplifiedExpr} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 28 (28) {inputSignal.a, inputSignal.b, inputSignal.last, inputSignal.nextEvent, inputSignal.nextEventScaled, $SEV_21, $SEV_20, $SEV_19, $SEV_18, $SEV_17, $SEV_16, $SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_1, $SEV_0, $TEV_4, $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: ........... 40 (scalar:40, 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: ........... 54 (scalar:54, 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: Performance of backend: time 0.0001584/0.02282, allocations: 35.31 kB / 415.8 MB, free: 28.42 MB / 318.1 MB Notification: Performance of SimCode: time 0.001727/0.02456, allocations: 1.892 MB / 417.7 MB, free: 26.5 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.