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/ModelicaServices 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/Complex 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009419, allocations: 92.55 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.3 MB / 240 MB, free: 5.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 175.6 kB / 291.3 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5375/0.5375, allocations: 91.92 MB / 434.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003834, allocations: 12 kB / 0.5054 GB, free: 7.27 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.4104, allocations: 72.47 MB / 0.5762 GB, free: 36.94 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.005657/0.4161, allocations: 6.616 MB / 0.5826 GB, free: 32.5 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004026/0.4202, allocations: 2.044 MB / 0.5846 GB, free: 31.06 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007661/0.421, allocations: 15.16 kB / 0.5847 GB, free: 31.05 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006781/0.4217, allocations: 195.1 kB / 0.5848 GB, free: 30.98 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001763/0.4235, allocations: 0.7021 MB / 0.5855 GB, free: 30.52 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.4247, allocations: 0.6161 MB / 0.5861 GB, free: 30.2 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.4261, allocations: 1.516 MB / 0.5876 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003952/0.4265, allocations: 301.6 kB / 0.5879 GB, free: 29.35 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000644/0.4271, allocations: 0.5705 MB / 0.5885 GB, free: 29.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006353/0.4278, allocations: 0.7626 MB / 0.5892 GB, free: 28.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.4279, allocations: 57.75 kB / 0.5893 GB, free: 28.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004389/0.4284, allocations: 185.9 kB / 0.5894 GB, free: 28.71 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002132/0.4286, allocations: 266.8 kB / 0.5897 GB, free: 28.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004323/0.429, allocations: 0.634 MB / 0.5903 GB, free: 28.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.4301, allocations: 1.242 MB / 0.5915 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4301, allocations: 1.156 kB / 0.5915 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4301, allocations: 0 / 0.5915 GB, free: 27.76 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.4301, allocations: 0 / 0.5915 GB, free: 27.76 MB / 430.1 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.008229/0.4384, allocations: 2.51 MB / 0.594 GB, free: 26.62 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.4384, allocations: 9.5 kB / 0.594 GB, free: 26.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00511/0.4435, allocations: 0.7889 MB / 0.5947 GB, free: 26.46 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.4452, allocations: 0.9047 MB / 0.5956 GB, free: 25.86 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003034/0.4455, allocations: 271.3 kB / 0.5959 GB, free: 25.63 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.4457, allocations: 88.62 kB / 0.596 GB, free: 25.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/0.4484, allocations: 1.473 MB / 0.5974 GB, free: 25.01 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.4485, allocations: 1.062 kB / 0.5974 GB, free: 25.01 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.872e-05/0.4486, allocations: 30.53 kB / 0.5974 GB, free: 24.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.4486, allocations: 19.09 kB / 0.5975 GB, free: 24.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002183/0.4508, allocations: 1.063 MB / 0.5985 GB, free: 24.64 MB / 430.1 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.006511/0.4573, allocations: 3.792 MB / 0.6022 GB, free: 22.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008593/0.4659, allocations: 3.108 MB / 0.6052 GB, free: 21.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001692/0.4676, allocations: 0.8341 MB / 0.6061 GB, free: 21.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.96e-05/0.4677, allocations: 19.55 kB / 0.6061 GB, free: 21.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001648/0.4694, allocations: 0.8128 MB / 0.6069 GB, free: 20.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 4.178e-06/0.4694, allocations: 0 / 0.6069 GB, free: 20.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.0338/0.5032, allocations: 8.872 MB / 0.6155 GB, free: 19.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.5034, allocations: 204.7 kB / 0.6157 GB, free: 18.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.5053, allocations: 1.089 MB / 0.6168 GB, free: 18.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.5054, allocations: 51.61 kB / 0.6168 GB, free: 18.36 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000336/0.5058, allocations: 487 kB / 0.6173 GB, free: 17.98 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003326/0.5061, allocations: 327.7 kB / 0.6176 GB, free: 17.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.5063, allocations: 159.2 kB / 0.6178 GB, free: 17.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.356e-05/0.5064, allocations: 302.2 kB / 0.6181 GB, free: 17.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/0.508, allocations: 0.8161 MB / 0.6189 GB, free: 16.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.5098, allocations: 1.159 MB / 0.62 GB, free: 16.15 MB / 430.1 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.02142/0.5313, allocations: 6.382 MB / 0.6262 GB, free: 9.547 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.199e-05/0.5313, allocations: 4 kB / 0.6262 GB, free: 9.543 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01378/0.5451, allocations: 5.364 MB / 0.6315 GB, free: 4.148 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.505e-05/0.5452, allocations: 71.34 kB / 0.6315 GB, free: 4.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.5452, allocations: 8 kB / 0.6315 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006043/0.5513, allocations: 1.907 MB / 0.6334 GB, free: 2.145 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.5524, allocations: 303.5 kB / 0.6337 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02282/0.5753, allocations: 10.63 MB / 0.6441 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/0.5775, allocations: 242.8 kB / 0.6443 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002679/0.5777, allocations: 75.91 kB / 0.6444 GB, free: 6.613 MB / 446.1 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.001023/0.5788, allocations: 363.9 kB / 0.6447 GB, free: 6.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002243/0.581, allocations: 0.6924 MB / 0.6454 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01539/0.5964, allocations: 5 MB / 0.6503 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.402e-05/0.5965, allocations: 15.94 kB / 0.6503 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.089e-05/0.5965, allocations: 8 kB / 0.6503 GB, free: 500 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.68e-05/0.5966, allocations: 11.97 kB / 0.6503 GB, free: 488 kB / 446.1 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.01803/0.6146, allocations: 6.556 MB / 0.6567 GB, free: 9.816 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.6146, allocations: 8.031 kB / 0.6567 GB, free: 9.809 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/0.6153, allocations: 107.8 kB / 0.6568 GB, free: 9.703 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006609/0.6219, allocations: 2.005 MB / 0.6588 GB, free: 7.688 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/0.6221, allocations: 27.98 kB / 0.6588 GB, free: 7.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02423/0.6463, allocations: 12.03 MB / 0.6706 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6464, allocations: 7.875 kB / 0.6706 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01715/0.6635, allocations: 6.041 MB / 0.6765 GB, free: 5.125 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005894/0.6642, allocations: 235.2 kB / 0.6767 GB, free: 4.875 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003286/0.6645, allocations: 31.98 kB / 0.6767 GB, free: 4.844 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.666, allocations: 143.9 kB / 0.6769 GB, free: 4.703 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005436/0.6665, allocations: 172.6 kB / 0.677 GB, free: 4.535 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.6666, allocations: 35.98 kB / 0.6771 GB, free: 4.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001293/0.6679, allocations: 0.7317 MB / 0.6778 GB, free: 3.762 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.668, allocations: 0 / 0.6778 GB, free: 3.762 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002006/0.67, allocations: 0.4917 MB / 0.6782 GB, free: 3.27 MB / 478.1 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.000334/0.6703, allocations: 143.1 kB / 0.6784 GB, free: 3.121 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007329/0.6776, allocations: 3.04 MB / 0.6814 GB, free: 20 kB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6777, allocations: 0.75 kB / 0.6814 GB, free: 20 kB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00437/0.682, allocations: 1.586 MB / 0.6829 GB, free: 14.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00199/0.6841, allocations: 0.6044 MB / 0.6835 GB, free: 13.78 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004825/0.6889, allocations: 2.958 MB / 0.6864 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008063/0.6897, allocations: 1.16 MB / 0.6875 GB, free: 9.594 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.6901, allocations: 83.41 kB / 0.6876 GB, free: 9.512 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.6901, allocations: 0 / 0.6876 GB, free: 9.512 MB / 494.1 MB Notification: Performance of Templates: time 0.03929/0.7294, allocations: 30.91 MB / 0.7178 GB, free: 10.6 MB / 0.5137 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)