Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_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_release_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.001495/0.001496, allocations: 168.2 kB / 16.1 MB, free: 5.691 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.443/1.443, allocations: 223.3 MB / 240.1 MB, free: 11.67 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.0007966/0.0007966, allocations: 97.11 kB / 291.3 MB, free: 10.75 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4405/0.4405, allocations: 78.62 MB / 421 MB, free: 9.121 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.000391, allocations: 15.94 kB / 0.4894 GB, free: 9.301 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2983, allocations: 69.35 MB / 0.5571 GB, free: 18.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.005066/0.3034, allocations: 6.588 MB / 0.5636 GB, free: 12.2 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00391/0.3074, allocations: 2.048 MB / 0.5656 GB, free: 10.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.3086, allocations: 12 kB / 0.5656 GB, free: 10.13 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009311/0.3095, allocations: 186.8 kB / 0.5658 GB, free: 9.949 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002383/0.3119, allocations: 0.709 MB / 0.5665 GB, free: 9.238 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.0014/0.3133, allocations: 0.6149 MB / 0.5671 GB, free: 8.629 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001762/0.3151, allocations: 1.522 MB / 0.5685 GB, free: 7.102 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005266/0.3156, allocations: 309.1 kB / 0.5688 GB, free: 6.789 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008899/0.3165, allocations: 0.5714 MB / 0.5694 GB, free: 6.215 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.3176, allocations: 0.7542 MB / 0.5701 GB, free: 5.457 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000337/0.3179, allocations: 60 kB / 0.5702 GB, free: 5.398 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006341/0.3186, allocations: 191.8 kB / 0.5704 GB, free: 5.211 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003348/0.3189, allocations: 262.6 kB / 0.5706 GB, free: 4.953 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007427/0.3197, allocations: 0.6344 MB / 0.5712 GB, free: 4.309 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.3208, allocations: 1.245 MB / 0.5725 GB, free: 3.062 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3208, allocations: 0 / 0.5725 GB, free: 3.062 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.3208, allocations: 0 / 0.5725 GB, free: 3.062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.669e-05/0.3209, allocations: 3.938 kB / 0.5725 GB, free: 3.059 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.007706/0.3286, allocations: 2.513 MB / 0.5749 GB, free: 492 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3287, allocations: 8.031 kB / 0.5749 GB, free: 484 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005003/0.3337, allocations: 0.7865 MB / 0.5757 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002027/0.3357, allocations: 0.9079 MB / 0.5766 GB, free: 14.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003781/0.3361, allocations: 272.2 kB / 0.5768 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003502/0.3365, allocations: 84 kB / 0.5769 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003165/0.3397, allocations: 1.475 MB / 0.5784 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.3397, allocations: 0 / 0.5784 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.3398, allocations: 35.98 kB / 0.5784 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/0.3399, allocations: 20 kB / 0.5784 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002247/0.3421, allocations: 1.059 MB / 0.5794 GB, free: 11.72 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.006753/0.3489, allocations: 3.763 MB / 0.5831 GB, free: 7.766 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008121/0.357, allocations: 3.108 MB / 0.5862 GB, free: 4.531 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/0.3587, allocations: 0.8356 MB / 0.587 GB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.3588, allocations: 20.67 kB / 0.587 GB, free: 3.672 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001569/0.3604, allocations: 0.8095 MB / 0.5878 GB, free: 2.836 MB / 394.7 MB Notification: Performance of pre-optimization done (n=115): time 4.629e-06/0.3604, allocations: 0 / 0.5878 GB, free: 2.836 MB / 394.7 MB Notification: Performance of matching and sorting (n=115): time 0.03114/0.3916, allocations: 8.707 MB / 0.5963 GB, free: 10.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002141/0.3918, allocations: 190.9 kB / 0.5965 GB, free: 9.844 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00217/0.394, allocations: 1.091 MB / 0.5975 GB, free: 8.738 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002964/0.3943, allocations: 53.7 kB / 0.5976 GB, free: 8.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004887/0.3948, allocations: 477.2 kB / 0.598 GB, free: 8.207 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005669/0.3954, allocations: 335.6 kB / 0.5984 GB, free: 7.875 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003974/0.3958, allocations: 153.6 kB / 0.5985 GB, free: 7.719 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.396, allocations: 305.1 kB / 0.5988 GB, free: 7.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001935/0.3979, allocations: 0.816 MB / 0.5996 GB, free: 6.602 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.4, allocations: 1.159 MB / 0.6007 GB, free: 5.312 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.02401/0.424, allocations: 6.39 MB / 0.607 GB, free: 14.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.062e-05/0.4241, allocations: 7.938 kB / 0.607 GB, free: 14.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01576/0.4399, allocations: 5.372 MB / 0.6122 GB, free: 9.297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.93e-05/0.44, allocations: 59.41 kB / 0.6123 GB, free: 9.227 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/0.44, allocations: 12 kB / 0.6123 GB, free: 9.215 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006586/0.4466, allocations: 1.916 MB / 0.6142 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.4479, allocations: 303.5 kB / 0.6144 GB, free: 6.996 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0226/0.4705, allocations: 10.62 MB / 0.6248 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002012/0.4725, allocations: 242.6 kB / 0.625 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002943/0.4729, allocations: 71.92 kB / 0.6251 GB, free: 11.78 MB / 442.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 sytem: $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.001077/0.4739, allocations: 369 kB / 0.6255 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002412/0.4764, allocations: 0.7001 MB / 0.6261 GB, free: 10.69 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/0.4913, allocations: 5.003 MB / 0.631 GB, free: 5.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/0.4914, allocations: 19.94 kB / 0.6311 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.636e-05/0.4914, allocations: 8 kB / 0.6311 GB, free: 5.633 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.936e-05/0.4915, allocations: 3.984 kB / 0.6311 GB, free: 5.629 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.01716/0.5086, allocations: 6.552 MB / 0.6375 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/0.5087, allocations: 4 kB / 0.6375 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007314/0.5094, allocations: 111.8 kB / 0.6376 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006801/0.5163, allocations: 2.004 MB / 0.6395 GB, free: 12.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.5164, allocations: 27.98 kB / 0.6396 GB, free: 12.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02312/0.5396, allocations: 12.05 MB / 0.6513 GB, free: 360 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5396, allocations: 0 / 0.6513 GB, free: 360 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01716/0.5568, allocations: 6.041 MB / 0.6572 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005379/0.5574, allocations: 235 kB / 0.6574 GB, free: 10.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/0.5577, allocations: 31.98 kB / 0.6575 GB, free: 9.988 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.559, allocations: 151.8 kB / 0.6576 GB, free: 9.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000569/0.5596, allocations: 172.6 kB / 0.6578 GB, free: 9.672 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.5598, allocations: 35.98 kB / 0.6578 GB, free: 9.637 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001391/0.5612, allocations: 0.7317 MB / 0.6585 GB, free: 8.898 MB / 474.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5612, allocations: 0 / 0.6585 GB, free: 8.898 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002022/0.5632, allocations: 495.6 kB / 0.659 GB, free: 8.414 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003388/0.5636, allocations: 151.1 kB / 0.6592 GB, free: 8.254 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007178/0.5708, allocations: 3.036 MB / 0.6621 GB, free: 5.156 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.5708, allocations: 4 kB / 0.6621 GB, free: 5.152 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004202/0.575, allocations: 1.59 MB / 0.6637 GB, free: 3.531 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.577, allocations: 0.6009 MB / 0.6643 GB, free: 2.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.582, allocations: 2.957 MB / 0.6671 GB, free: 15.92 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008738/0.5829, allocations: 1.152 MB / 0.6683 GB, free: 14.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/0.5832, allocations: 87.41 kB / 0.6684 GB, free: 14.65 MB / 490.7 MB Notification: Performance of SimCode: time 4.1e-07/0.5832, allocations: 4 kB / 0.6684 GB, free: 14.64 MB / 490.7 MB Notification: Performance of Templates: time 0.2794/0.8627, allocations: 30.9 MB / 0.6985 GB, free: 109.9 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)