Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.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.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 109.6 kB / 16.42 MB, free: 6.469 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.001296/0.001296, allocations: 187.1 kB / 17.35 MB, free: 5.707 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.54/1.54, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05888/0.05888, allocations: 14.16 MB / 284.8 MB, free: 13.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.429e-05/5.455e-05, allocations: 5.938 kB / 399.3 MB, free: 42.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01687/0.01694, allocations: 15.95 MB / 415.2 MB, free: 29.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01853/0.03556, allocations: 6.843 MB / 422.1 MB, free: 22.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006742/0.04238, allocations: 75.56 kB / 422.1 MB, free: 22.63 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00446/0.04688, allocations: 0.8182 MB / 422.9 MB, free: 21.81 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01194/0.05886, allocations: 2.546 MB / 425.5 MB, free: 19.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004717/0.0636, allocations: 1.544 MB / 427 MB, free: 17.73 MB / 318.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2652:11-2652:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.01054/0.07415, allocations: 5.836 MB / 432.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001661/0.07584, allocations: 0.743 MB / 433.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004278/0.08014, allocations: 1.844 MB / 435.5 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00444/0.0846, allocations: 2.007 MB / 437.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007979/0.08543, allocations: 248 kB / 437.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003118/0.08856, allocations: 0.734 MB / 438.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.004759/0.09334, allocations: 5.961 MB / 444.4 MB, free: 252 kB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.003988/0.09735, allocations: 3.611 MB / 448 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.09943, allocations: 0.5062 MB / 448.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 0.001535/0.101, allocations: 227.2 kB / 448.7 MB, free: 11.86 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 507 (422) * Number of variables: 507 (507) Notification: Performance of Bindings: time 0.02524/0.1262, allocations: 17.43 MB / 466.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FunctionAlias: time 0.002313/0.1286, allocations: 1.725 MB / 467.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of Early Inline: time 0.01132/0.1399, allocations: 9.685 MB / 477.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simplify1: time 0.0008095/0.1408, allocations: 0.593 MB / 478.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of Alias: time 0.01511/0.1559, allocations: 10.4 MB / 488.6 MB, free: 2.527 MB / 366.1 MB Notification: Performance of simplify2: time 0.001235/0.1572, allocations: 0.5189 MB / 489.1 MB, free: 2.008 MB / 366.1 MB Notification: Performance of Events: time 0.001663/0.1588, allocations: 1.487 MB / 490.6 MB, free: 0.5 MB / 366.1 MB Notification: Performance of Detect States: time 0.002049/0.1609, allocations: 1.812 MB / 492.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of DAE-Mode: time 2.012e-05/0.1609, allocations: 3.938 kB / 492.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of Partitioning: time 0.003233/0.1642, allocations: 2.413 MB / 494.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of Causalize: time 0.01435/0.1785, allocations: 9.975 MB / 0.4929 GB, free: 1.898 MB / 382.1 MB Notification: Performance of After Index Reduction Inline: time 0.005962/0.1845, allocations: 5.202 MB / 0.498 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Inline: time 0.01659/0.2012, allocations: 12.71 MB / 0.5104 GB, free: 15.75 MB / 414.1 MB Notification: Performance of Partitioning: time 0.001252/0.2025, allocations: 0.6113 MB / 0.511 GB, free: 15.09 MB / 414.1 MB Notification: Performance of Cleanup: time 0.00231/0.2048, allocations: 1.152 MB / 0.5122 GB, free: 13.91 MB / 414.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) GRID.eSource.re = 0.0 ($RES_SIM_840) slice: {}; [SCAL] (1) GRID.Ssc.re = (GRID.SSC * cos(atan(1/GRID.R_X))) / GRID.c ($RES_SIM_846) slice: {}; Notification: Performance of Causalize: time 0.3777/0.5825, allocations: 61.17 MB / 0.5719 GB, free: 59.4 MB / 414.1 MB Notification: Performance of Tearing: time 0.00663/0.5892, allocations: 9.763 MB / 0.5814 GB, free: 50.98 MB / 414.1 MB Notification: Performance of Initialization: time 3.637e-06/0.5892, allocations: 4.031 kB / 0.5814 GB, free: 50.98 MB / 414.1 MB Notification: Performance of Tearing: time 0.00257/0.5918, allocations: 2.926 MB / 0.5843 GB, free: 49.21 MB / 414.1 MB Notification: Performance of Categorize: time 9.299e-05/0.5919, allocations: 12 kB / 0.5843 GB, free: 49.2 MB / 414.1 MB Notification: Performance of Solve: time 0.005955/0.5979, allocations: 4.984 MB / 0.5892 GB, free: 44.73 MB / 414.1 MB Notification: Performance of Jacobian: time 0.01806/0.616, allocations: 17.22 MB / 0.606 GB, free: 28.44 MB / 414.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: ......... 12 * 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: ............................. 16 (16) {GEN.theta, TGOV.omegaPu, GEN.lambdafPu, GEN.lambdaDPu, GEN.lambdaQ1Pu, GEN.lambdaQ2Pu, TGOV.firstOrderLim.lim.simplifiedExpr, TGOV.leadLag.firstOrder.y, AVR.leadLag.firstOrder.y, AVR.firstOrderLim.lim.simplifiedExpr, PSS.firstWashoutVsi1.integrator.y, PSS.secondWashoutVsi1.integrator.y, PSS.firstWashoutVsi2.integrator.y, PSS.leadLag1.firstOrder.y, PSS.leadLag2.firstOrder.y, PSS.add2.u2} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 35 (35) {$SEV_33, $SEV_32, $SEV_31, $SEV_30, $SEV_29, $SEV_28, $SEV_27, $SEV_26, $SEV_25, $SEV_24, $SEV_23, $SEV_22, $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_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 274 (scalar:274, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:6) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 5 (linear: 0, nonlinear:5) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 442 (scalar:442, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:16) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 16 (linear: 0, nonlinear:16) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 484 (scalar:484, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:16) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 17 (linear: 0, nonlinear:17) Notification: Performance of backend: time 0.0003139/0.6164, allocations: 188.3 kB / 0.6062 GB, free: 28.41 MB / 414.1 MB Notification: Performance of SimCode: time 0.01447/0.6308, allocations: 12.97 MB / 0.6188 GB, free: 17.28 MB / 414.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.