Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000942/0.000959, allocations: 89.95 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.423/0.423, allocations: 78.48 MB / 418.5 MB, free: 8.875 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 63.91 kB / 497.4 MB, free: 10.7 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2769, allocations: 68.12 MB / 0.5523 GB, free: 20.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.005064/0.282, allocations: 7.066 MB / 0.5592 GB, free: 13.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002957/0.285, allocations: 2.068 MB / 0.5612 GB, free: 11.05 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005573/0.2856, allocations: 12 kB / 0.5612 GB, free: 11.04 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005219/0.2861, allocations: 190.7 kB / 0.5614 GB, free: 10.85 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.2876, allocations: 0.704 MB / 0.5621 GB, free: 10.14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.2887, allocations: 0.6261 MB / 0.5627 GB, free: 9.523 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.2897, allocations: 1.534 MB / 0.5642 GB, free: 7.984 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.29, allocations: 315.3 kB / 0.5645 GB, free: 7.668 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005995/0.2906, allocations: 0.6104 MB / 0.5651 GB, free: 7.055 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005963/0.2912, allocations: 0.7932 MB / 0.5659 GB, free: 6.258 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.2914, allocations: 72 kB / 0.566 GB, free: 6.188 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003756/0.2918, allocations: 199.9 kB / 0.5661 GB, free: 5.992 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000184/0.292, allocations: 286.6 kB / 0.5664 GB, free: 5.711 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003693/0.2923, allocations: 0.6327 MB / 0.567 GB, free: 5.074 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.2934, allocations: 1.615 MB / 0.5686 GB, free: 3.453 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2934, allocations: 0 / 0.5686 GB, free: 3.453 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2934, allocations: 0 / 0.5686 GB, free: 3.453 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.2934, allocations: 0 / 0.5686 GB, free: 3.453 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.008094/0.3015, allocations: 2.718 MB / 0.5713 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.3015, allocations: 8.031 kB / 0.5713 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004652/0.3062, allocations: 0.7826 MB / 0.572 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/0.3077, allocations: 0.904 MB / 0.5729 GB, free: 14.92 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000257/0.308, allocations: 260.2 kB / 0.5732 GB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.3081, allocations: 87.91 kB / 0.5733 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002575/0.3107, allocations: 1.417 MB / 0.5746 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.3108, allocations: 0 / 0.5746 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.109e-05/0.3109, allocations: 32 kB / 0.5747 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.3109, allocations: 23.98 kB / 0.5747 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/0.3129, allocations: 0.9967 MB / 0.5757 GB, free: 12.05 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005728/0.3186, allocations: 3.692 MB / 0.5793 GB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007669/0.3263, allocations: 2.567 MB / 0.5818 GB, free: 5.473 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/0.3279, allocations: 0.7725 MB / 0.5825 GB, free: 4.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.328, allocations: 24.7 kB / 0.5826 GB, free: 4.668 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.3295, allocations: 0.747 MB / 0.5833 GB, free: 3.895 MB / 394.7 MB Notification: Performance of pre-optimization done (n=115): time 2.956e-06/0.3295, allocations: 0 / 0.5833 GB, free: 3.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=115): time 0.02914/0.3586, allocations: 7.172 MB / 0.5903 GB, free: 12.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.3588, allocations: 206.6 kB / 0.5905 GB, free: 12.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001601/0.3604, allocations: 1.087 MB / 0.5915 GB, free: 11.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002012/0.3606, allocations: 45.7 kB / 0.5916 GB, free: 11.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/0.361, allocations: 485.2 kB / 0.5921 GB, free: 10.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003522/0.3613, allocations: 335.5 kB / 0.5924 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004872/0.3618, allocations: 307.4 kB / 0.5927 GB, free: 10.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.083e-05/0.3619, allocations: 309.1 kB / 0.593 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00157/0.3635, allocations: 0.7535 MB / 0.5937 GB, free: 9.094 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.3652, allocations: 1.1 MB / 0.5948 GB, free: 7.859 MB / 410.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0236/0.3888, allocations: 5.949 MB / 0.6006 GB, free: 1.695 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.697e-05/0.3889, allocations: 4 kB / 0.6006 GB, free: 1.691 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01477/0.4037, allocations: 4.536 MB / 0.605 GB, free: 13.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.152e-05/0.4038, allocations: 59.41 kB / 0.6051 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/0.4038, allocations: 12 kB / 0.6051 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006305/0.4101, allocations: 1.634 MB / 0.6067 GB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.4114, allocations: 303.5 kB / 0.607 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02121/0.4326, allocations: 9.636 MB / 0.6164 GB, free: 1.184 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.4345, allocations: 202.8 kB / 0.6166 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.4347, allocations: 67.92 kB / 0.6166 GB, free: 0.918 MB / 426.7 MB Warning: Assuming fixed start value for the following 3 variables: order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.simpleLagLim.state = aVRTypeII.simpleLagLim.y_start order4.delta0 = Modelica.Math.atan3(order4.Vt0.im + (order4.ra * order4.I0.im + order4.xq0 * order4.I0.re) * order4.Z_MBtoSB, order4.Vt0.re + (order4.ra * order4.I0.re - order4.xq0 * order4.I0.im) * order4.Z_MBtoSB, 0.0). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.simpleLagLim.state,aVRTypeII.derivativeBlock.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006296/0.4353, allocations: 370.5 kB / 0.617 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001881/0.4372, allocations: 0.6728 MB / 0.6176 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/0.4515, allocations: 4.136 MB / 0.6217 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/0.4516, allocations: 15.94 kB / 0.6217 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/0.4516, allocations: 8 kB / 0.6217 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.808e-05/0.4516, allocations: 11.92 kB / 0.6217 GB, free: 11.66 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01588/0.4675, allocations: 5.689 MB / 0.6273 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.4676, allocations: 0 / 0.6273 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006/0.4682, allocations: 111.8 kB / 0.6274 GB, free: 5.754 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006148/0.4743, allocations: 1.732 MB / 0.6291 GB, free: 4.012 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/0.4745, allocations: 27.98 kB / 0.6291 GB, free: 3.984 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02223/0.4968, allocations: 11.14 MB / 0.64 GB, free: 8.426 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4968, allocations: 3.938 kB / 0.64 GB, free: 8.422 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "(aVRTypeII.ExcitationSystem.x_scaled[1] - previous(aVRTypeII.ExcitationSystem.x_scaled[1])) / interval() = if firstTick() then 0.0 else $DER.aVRTypeII.ExcitationSystem.x_scaled[1]" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0343/0.5311, allocations: 10.19 MB / 0.6499 GB, free: 14.13 MB / 474.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.