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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 177.4 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.031/1.031, allocations: 221.4 MB / 229.3 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009105/0.0009105, allocations: 97.05 kB / 280.1 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3476/0.3476, allocations: 78.1 MB / 409 MB, free: 15.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.729e-06/4.748e-06, allocations: 0 / 484.4 MB, free: 4.543 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2095, allocations: 69.35 MB / 0.5408 GB, free: 21.41 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09428/0.3038, allocations: 99.46 MB / 0.6379 GB, free: 5.461 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001857/0.304, allocations: 83.95 kB / 0.638 GB, free: 5.379 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.2539/0.5579, allocations: 41.58 MB / 0.6786 GB, free: 107.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.513e-05/0.558, allocations: 25.69 kB / 0.6786 GB, free: 107.6 MB / 490.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.003303/0.5613, allocations: 1.777 MB / 0.6803 GB, free: 106.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.622e-05/0.5613, allocations: 6.781 kB / 0.6803 GB, free: 106.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00304/0.5644, allocations: 0.5822 MB / 0.6809 GB, free: 106.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009837/0.5654, allocations: 0.7964 MB / 0.6817 GB, free: 106.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.5656, allocations: 239.7 kB / 0.6819 GB, free: 106.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.5657, allocations: 59.14 kB / 0.682 GB, free: 106.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001156/0.5668, allocations: 0.8129 MB / 0.6828 GB, free: 106.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.5683, allocations: 1.121 MB / 0.6839 GB, free: 106.1 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.5683, allocations: 0 / 0.6839 GB, free: 106.1 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.926e-05/0.5684, allocations: 3.062 kB / 0.6839 GB, free: 106.1 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.5685, allocations: 18.47 kB / 0.6839 GB, free: 106.1 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004534/0.573, allocations: 3.601 MB / 0.6874 GB, free: 104.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.5741, allocations: 0.8583 MB / 0.6882 GB, free: 104.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006701/0.5748, allocations: 0.5897 MB / 0.6888 GB, free: 104.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.505e-05/0.5749, allocations: 27.06 kB / 0.6888 GB, free: 104.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006589/0.5755, allocations: 0.5711 MB / 0.6894 GB, free: 104.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=115): time 2.124e-06/0.5756, allocations: 0 / 0.6894 GB, free: 104.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=115): time 0.01117/0.5867, allocations: 4.284 MB / 0.6936 GB, free: 103.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.5868, allocations: 186.1 kB / 0.6937 GB, free: 103.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007551/0.5876, allocations: 0.8146 MB / 0.6945 GB, free: 103.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.128e-05/0.5876, allocations: 25.7 kB / 0.6946 GB, free: 103.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.762e-05/0.5878, allocations: 311.8 kB / 0.6949 GB, free: 103 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002163/0.588, allocations: 312.6 kB / 0.6952 GB, free: 102.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.588, allocations: 0 / 0.6952 GB, free: 102.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.057e-05/0.5881, allocations: 344.8 kB / 0.6955 GB, free: 102.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005773/0.5887, allocations: 432.2 kB / 0.6959 GB, free: 102.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006499/0.5893, allocations: 0.7231 MB / 0.6966 GB, free: 101.7 MB / 490.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.aVRTypeII.firstOrder2.y = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.aVRTypeII.derivativeBlock.x = 0.0 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2186:7-2186:76:writable] Error: Internal error function solveEquation failed Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2186:7-2186:76:writable] Error: Internal error function solveEquation failed Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.591, allocations: 1.068 MB / 0.6977 GB, free: 100.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.591, allocations: 2.906 kB / 0.6977 GB, free: 100.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01223/0.6032, allocations: 4.262 MB / 0.7018 GB, free: 100 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.6033, allocations: 5.188 kB / 0.7018 GB, free: 100 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.6033, allocations: 9.094 kB / 0.7018 GB, free: 100 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004698/0.608, allocations: 1.51 MB / 0.7033 GB, free: 99.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007238/0.6087, allocations: 201.9 kB / 0.7035 GB, free: 99.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/0.6198, allocations: 5.856 MB / 0.7092 GB, free: 96.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.6212, allocations: 192.6 kB / 0.7094 GB, free: 96.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.6213, allocations: 54.56 kB / 0.7095 GB, free: 96.57 MB / 490.7 MB Warning: Assuming fixed start value for the following 3 variables: order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "Rotor angle" type: Real Warning: Assuming redundant initial conditions for the following 4 initial equations: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.simpleLagLim.state = 0.0 aVRTypeII.ExcitationSystem.y = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002805/0.6216, allocations: 166.7 kB / 0.7096 GB, free: 96.42 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/0.6232, allocations: 0.6573 MB / 0.7103 GB, free: 96.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/0.6348, allocations: 4.564 MB / 0.7147 GB, free: 92.83 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.6348, allocations: 12 kB / 0.7147 GB, free: 92.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.6348, allocations: 8 kB / 0.7147 GB, free: 92.81 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.6349, allocations: 15.41 kB / 0.7147 GB, free: 92.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.6465, allocations: 5.412 MB / 0.72 GB, free: 88.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.6465, allocations: 0 / 0.72 GB, free: 88.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005167/0.647, allocations: 107.8 kB / 0.7201 GB, free: 88.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00444/0.6515, allocations: 1.653 MB / 0.7217 GB, free: 86.47 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.939e-05/0.6516, allocations: 15.89 kB / 0.7218 GB, free: 86.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/0.6649, allocations: 9.397 MB / 0.7309 GB, free: 76.74 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.6649, allocations: 7.938 kB / 0.7309 GB, free: 76.73 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01242/0.6774, allocations: 5.403 MB / 0.7362 GB, free: 71.29 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002194/0.6776, allocations: 235.1 kB / 0.7364 GB, free: 71.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.6778, allocations: 4 kB / 0.7364 GB, free: 71.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.679, allocations: 143.9 kB / 0.7366 GB, free: 70.89 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.6792, allocations: 100.6 kB / 0.7367 GB, free: 70.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.925e-05/0.6793, allocations: 31.98 kB / 0.7367 GB, free: 70.76 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.000604/0.6799, allocations: 0.6179 MB / 0.7373 GB, free: 70.14 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001063/0.681, allocations: 395.5 kB / 0.7377 GB, free: 69.75 MB / 490.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(19,24.4%) 13} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002079/0.6812, allocations: 138.8 kB / 0.7378 GB, free: 69.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.6851, allocations: 2.002 MB / 0.7398 GB, free: 67.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.6851, allocations: 0 / 0.7398 GB, free: 67.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/0.6881, allocations: 1.298 MB / 0.741 GB, free: 66.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.6892, allocations: 0.523 MB / 0.7416 GB, free: 65.73 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.6924, allocations: 1.789 MB / 0.7433 GB, free: 63.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005843/0.693, allocations: 1.231 MB / 0.7445 GB, free: 62.66 MB / 490.7 MB Notification: Performance of SimCode: time 2.71e-07/0.693, allocations: 3.938 kB / 0.7445 GB, free: 62.66 MB / 490.7 MB Notification: Performance of Templates: time 0.02169/0.7147, allocations: 19.57 MB / 0.7636 GB, free: 43.34 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)