Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_2.0.0_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_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00163/0.00163, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 221.8 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001311/0.001311, allocations: 100.2 kB / 269.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.081/0.081, allocations: 12.59 MB / 329.1 MB, free: 12.41 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3135/0.3135, allocations: 78.52 MB / 457.8 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 118.9 kB / 0.5254 GB, free: 19.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1391, allocations: 68.13 MB / 0.592 GB, free: 15.64 MB / 394.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.009253/0.1484, allocations: 7.112 MB / 0.5989 GB, free: 8.488 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.004586/0.153, allocations: 2.018 MB / 0.6009 GB, free: 6.461 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.1542, allocations: 15.94 kB / 0.6009 GB, free: 6.445 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.1553, allocations: 194.8 kB / 0.6011 GB, free: 6.254 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002813/0.1582, allocations: 0.7212 MB / 0.6018 GB, free: 5.535 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001717/0.1599, allocations: 0.6153 MB / 0.6024 GB, free: 4.93 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002402/0.1624, allocations: 1.538 MB / 0.6039 GB, free: 3.387 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000547/0.1629, allocations: 309.3 kB / 0.6042 GB, free: 3.074 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009363/0.1639, allocations: 0.6065 MB / 0.6048 GB, free: 2.465 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007806/0.1647, allocations: 0.7932 MB / 0.6056 GB, free: 1.668 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001434/0.1648, allocations: 72 kB / 0.6056 GB, free: 1.598 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004791/0.1653, allocations: 203.9 kB / 0.6058 GB, free: 1.398 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000245/0.1656, allocations: 286.6 kB / 0.6061 GB, free: 1.117 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005798/0.1661, allocations: 0.6327 MB / 0.6067 GB, free: 492 kB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.1676, allocations: 1.619 MB / 0.6083 GB, free: 14.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1676, allocations: 0 / 0.6083 GB, free: 14.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1676, allocations: 0 / 0.6083 GB, free: 14.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.1676, allocations: 0 / 0.6083 GB, free: 14.86 MB / 410.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.008784/0.1764, allocations: 2.715 MB / 0.611 GB, free: 12.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1764, allocations: 11.98 kB / 0.611 GB, free: 12.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004627/0.1811, allocations: 0.7787 MB / 0.6117 GB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001618/0.1827, allocations: 0.9118 MB / 0.6126 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002758/0.183, allocations: 260.2 kB / 0.6129 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.1832, allocations: 84 kB / 0.6129 GB, free: 9.941 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002596/0.1858, allocations: 1.404 MB / 0.6143 GB, free: 8.512 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.1858, allocations: 0 / 0.6143 GB, free: 8.512 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.106e-05/0.1859, allocations: 32 kB / 0.6143 GB, free: 8.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.1859, allocations: 16 kB / 0.6144 GB, free: 8.465 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/0.1879, allocations: 0.9967 MB / 0.6153 GB, free: 7.465 MB / 410.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.006112/0.1941, allocations: 3.692 MB / 0.6189 GB, free: 3.582 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007787/0.2019, allocations: 2.576 MB / 0.6215 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001847/0.2038, allocations: 0.7639 MB / 0.6222 GB, free: 108 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001535/0.2039, allocations: 24.7 kB / 0.6222 GB, free: 84 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001605/0.2056, allocations: 0.747 MB / 0.623 GB, free: 15.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=115): time 6.011e-06/0.2056, allocations: 0 / 0.623 GB, free: 15.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.03003/0.2356, allocations: 7.168 MB / 0.63 GB, free: 8.078 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001792/0.2359, allocations: 202.7 kB / 0.6301 GB, free: 7.844 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001843/0.2377, allocations: 1.087 MB / 0.6312 GB, free: 6.742 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002201/0.2379, allocations: 45.7 kB / 0.6313 GB, free: 6.691 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004311/0.2384, allocations: 485.3 kB / 0.6317 GB, free: 6.211 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004612/0.2389, allocations: 331.5 kB / 0.632 GB, free: 5.883 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006755/0.2395, allocations: 311.4 kB / 0.6323 GB, free: 5.574 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2397, allocations: 301.1 kB / 0.6326 GB, free: 5.277 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.2413, allocations: 0.7496 MB / 0.6333 GB, free: 4.527 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.2432, allocations: 1.108 MB / 0.6344 GB, free: 3.285 MB / 426.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.2905/0.5337, allocations: 5.955 MB / 0.6402 GB, free: 49.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/0.5337, allocations: 7.281 kB / 0.6403 GB, free: 49.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.0152/0.5489, allocations: 4.529 MB / 0.6447 GB, free: 48.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.218e-05/0.549, allocations: 66.55 kB / 0.6447 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.069e-05/0.5491, allocations: 10.72 kB / 0.6447 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006495/0.5556, allocations: 1.628 MB / 0.6463 GB, free: 48.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.557, allocations: 302.1 kB / 0.6466 GB, free: 48.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02104/0.578, allocations: 9.629 MB / 0.656 GB, free: 43.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.58, allocations: 208.2 kB / 0.6562 GB, free: 43.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.5801, allocations: 69.12 kB / 0.6563 GB, free: 43 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.000697/0.5808, allocations: 362.4 kB / 0.6566 GB, free: 42.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001836/0.5827, allocations: 0.6628 MB / 0.6573 GB, free: 42.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01328/0.596, allocations: 4.16 MB / 0.6613 GB, free: 41.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/0.596, allocations: 17.48 kB / 0.6614 GB, free: 41.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/0.5961, allocations: 7.844 kB / 0.6614 GB, free: 41.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.236e-05/0.5961, allocations: 3.984 kB / 0.6614 GB, free: 41.14 MB / 426.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.01446/0.6106, allocations: 5.694 MB / 0.6669 GB, free: 37.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/0.6106, allocations: 3.938 kB / 0.6669 GB, free: 37.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000544/0.6112, allocations: 112.4 kB / 0.667 GB, free: 37.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005573/0.6168, allocations: 1.722 MB / 0.6687 GB, free: 36.85 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.6169, allocations: 24 kB / 0.6688 GB, free: 36.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01897/0.6359, allocations: 11.13 MB / 0.6796 GB, free: 25.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6359, allocations: 4 kB / 0.6796 GB, free: 25.31 MB / 426.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.03013/0.666, allocations: 10.21 MB / 0.6896 GB, free: 15.01 MB / 426.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.