Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_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_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.001026/0.001026, allocations: 183.1 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.189/1.189, allocations: 222.9 MB / 239.7 MB, free: 11 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.0009013/0.0009012, allocations: 96.92 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4102/0.4102, allocations: 78.51 MB / 418.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 71.88 kB / 497.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2554, allocations: 68.16 MB / 0.5524 GB, free: 19.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.005209/0.2606, allocations: 7.059 MB / 0.5593 GB, free: 12.82 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002977/0.2637, allocations: 2.064 MB / 0.5613 GB, free: 10.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005108/0.2642, allocations: 15.94 kB / 0.5613 GB, free: 10.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005155/0.2647, allocations: 190.7 kB / 0.5615 GB, free: 10.55 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001309/0.2661, allocations: 0.7111 MB / 0.5622 GB, free: 9.836 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0009919/0.2671, allocations: 0.6215 MB / 0.5628 GB, free: 9.227 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008829/0.2679, allocations: 1.542 MB / 0.5643 GB, free: 7.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003141/0.2683, allocations: 313.2 kB / 0.5646 GB, free: 7.363 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004367/0.2687, allocations: 0.5987 MB / 0.5652 GB, free: 6.762 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000537/0.2693, allocations: 0.7893 MB / 0.566 GB, free: 5.969 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.2694, allocations: 72 kB / 0.5661 GB, free: 5.898 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003289/0.2697, allocations: 207.8 kB / 0.5662 GB, free: 5.695 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.2699, allocations: 286.6 kB / 0.5665 GB, free: 5.414 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003434/0.2703, allocations: 0.6327 MB / 0.5671 GB, free: 4.777 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008665/0.2711, allocations: 1.617 MB / 0.5687 GB, free: 3.156 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2711, allocations: 0 / 0.5687 GB, free: 3.156 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.2711, allocations: 0 / 0.5687 GB, free: 3.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.2712, allocations: 0 / 0.5687 GB, free: 3.156 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.007377/0.2785, allocations: 2.723 MB / 0.5714 GB, free: 376 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.2786, allocations: 8.031 kB / 0.5714 GB, free: 368 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004466/0.2831, allocations: 0.7787 MB / 0.5721 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.2845, allocations: 0.9079 MB / 0.573 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002524/0.2848, allocations: 256.2 kB / 0.5733 GB, free: 14.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.2849, allocations: 87.91 kB / 0.5734 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.2874, allocations: 1.421 MB / 0.5747 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.2874, allocations: 0 / 0.5747 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.798e-05/0.2875, allocations: 32 kB / 0.5748 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.2876, allocations: 19.98 kB / 0.5748 GB, free: 12.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.2895, allocations: 0.9967 MB / 0.5758 GB, free: 11.75 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.005436/0.2949, allocations: 3.685 MB / 0.5794 GB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007381/0.3023, allocations: 2.573 MB / 0.5819 GB, free: 5.172 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001472/0.3038, allocations: 0.7677 MB / 0.5826 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.3039, allocations: 20.72 kB / 0.5827 GB, free: 4.375 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001388/0.3053, allocations: 0.7527 MB / 0.5834 GB, free: 3.598 MB / 394.7 MB Notification: Performance of pre-optimization done (n=115): time 3.196e-06/0.3053, allocations: 3.938 kB / 0.5834 GB, free: 3.594 MB / 394.7 MB Notification: Performance of matching and sorting (n=115): time 0.02789/0.3332, allocations: 7.172 MB / 0.5904 GB, free: 12.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.3334, allocations: 202.7 kB / 0.5906 GB, free: 12.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/0.335, allocations: 1.087 MB / 0.5917 GB, free: 11.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001741/0.3351, allocations: 45.7 kB / 0.5917 GB, free: 10.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003532/0.3355, allocations: 489.2 kB / 0.5922 GB, free: 10.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003232/0.3358, allocations: 331.5 kB / 0.5925 GB, free: 10.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004654/0.3363, allocations: 307.4 kB / 0.5928 GB, free: 9.855 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.17e-05/0.3364, allocations: 301.1 kB / 0.5931 GB, free: 9.559 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.3379, allocations: 0.7535 MB / 0.5938 GB, free: 8.805 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/0.3395, allocations: 1.104 MB / 0.5949 GB, free: 7.566 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.02202/0.3616, allocations: 5.96 MB / 0.6007 GB, free: 1.391 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.3616, allocations: 4 kB / 0.6007 GB, free: 1.387 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01417/0.3758, allocations: 4.528 MB / 0.6051 GB, free: 12.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.989e-05/0.3759, allocations: 67.41 kB / 0.6052 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/0.3759, allocations: 12 kB / 0.6052 GB, free: 12.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006153/0.3821, allocations: 1.63 MB / 0.6068 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.3835, allocations: 295.5 kB / 0.6071 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02334/0.4069, allocations: 9.63 MB / 0.6165 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.4089, allocations: 202.8 kB / 0.6167 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003284/0.4093, allocations: 72.14 kB / 0.6167 GB, free: 0.625 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.001067/0.4103, allocations: 364.5 kB / 0.6171 GB, free: 260 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002044/0.4124, allocations: 0.6727 MB / 0.6177 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/0.4259, allocations: 4.148 MB / 0.6218 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.65e-05/0.4259, allocations: 19.94 kB / 0.6218 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/0.4259, allocations: 4 kB / 0.6218 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.449e-05/0.426, allocations: 19.91 kB / 0.6218 GB, free: 11.35 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.01487/0.4408, allocations: 5.674 MB / 0.6274 GB, free: 5.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.4409, allocations: 4 kB / 0.6274 GB, free: 5.566 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005442/0.4414, allocations: 115.7 kB / 0.6275 GB, free: 5.453 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005708/0.4472, allocations: 1.727 MB / 0.6292 GB, free: 3.719 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.4473, allocations: 23.98 kB / 0.6292 GB, free: 3.695 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02143/0.4688, allocations: 11.14 MB / 0.6401 GB, free: 8.133 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4688, allocations: 0 / 0.6401 GB, free: 8.133 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.03267/0.5015, allocations: 10.19 MB / 0.65 GB, free: 13.84 MB / 474.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.