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/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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005532/0.005532, allocations: 169.5 kB / 15.11 MB, free: 5.973 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.307/1.307, allocations: 223.2 MB / 239 MB, free: 1.781 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.0008479/0.000848, allocations: 100.5 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4661/0.4661, allocations: 79.44 MB / 420.7 MB, free: 43.69 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003764, allocations: 12 kB / 0.4891 GB, free: 1.938 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4018, allocations: 69.51 MB / 0.557 GB, free: 38.95 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1382/0.54, allocations: 101 MB / 0.6556 GB, free: 4.598 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.5404, allocations: 75.97 kB / 0.6557 GB, free: 4.523 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1214/0.6618, allocations: 43.48 MB / 0.6981 GB, free: 8.789 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6618, allocations: 0 / 0.6981 GB, free: 8.789 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.308e-05/0.6619, allocations: 27.94 kB / 0.6981 GB, free: 8.762 MB / 0.4948 GB 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.005315/0.6672, allocations: 2.01 MB / 0.7001 GB, free: 6.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.6673, allocations: 15.97 kB / 0.7001 GB, free: 6.664 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002305/0.6675, allocations: 130.9 kB / 0.7003 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003474/0.671, allocations: 0.568 MB / 0.7008 GB, free: 5.957 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001838/0.6729, allocations: 0.8269 MB / 0.7016 GB, free: 5.078 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003209/0.6732, allocations: 260.2 kB / 0.7019 GB, free: 4.785 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.6734, allocations: 91.98 kB / 0.702 GB, free: 4.695 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002913/0.6763, allocations: 1.457 MB / 0.7034 GB, free: 3.207 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.6763, allocations: 3.938 kB / 0.7034 GB, free: 3.203 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.6764, allocations: 32 kB / 0.7034 GB, free: 3.172 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.6765, allocations: 20 kB / 0.7034 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002157/0.6786, allocations: 1.051 MB / 0.7045 GB, free: 2.098 MB / 0.4948 GB 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.007059/0.6857, allocations: 3.701 MB / 0.7081 GB, free: 14.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008247/0.694, allocations: 3.092 MB / 0.7111 GB, free: 11 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001621/0.6942, allocations: 25.14 kB / 0.7111 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001631/0.6958, allocations: 0.7983 MB / 0.7119 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=115): time 4.188e-06/0.6958, allocations: 0 / 0.7119 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of matching and sorting (n=115): time 0.0326/0.7284, allocations: 8.97 MB / 0.7207 GB, free: 1.117 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002015/0.7287, allocations: 198.7 kB / 0.7208 GB, free: 0.8867 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.7305, allocations: 0.9061 MB / 0.7217 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002038/0.7308, allocations: 58.56 kB / 0.7218 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004495/0.7312, allocations: 0.4939 MB / 0.7223 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004055/0.7316, allocations: 319.5 kB / 0.7226 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.275e-05/0.7317, allocations: 24 kB / 0.7226 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.7319, allocations: 353.9 kB / 0.7229 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.7332, allocations: 0.6272 MB / 0.7235 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.7348, allocations: 0.9522 MB / 0.7245 GB, free: 13 MB / 0.5261 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2449:7-2449:76:writable] Error: Internal error function solveEquation failed 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. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2449:7-2449:76:writable] Error: Internal error function solveEquation failed 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.002578/0.7374, allocations: 1.331 MB / 0.7258 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.7374, allocations: 7.938 kB / 0.7258 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01383/0.7512, allocations: 4.789 MB / 0.7305 GB, free: 6.754 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.845e-05/0.7513, allocations: 68.8 kB / 0.7305 GB, free: 6.676 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/0.7514, allocations: 8 kB / 0.7305 GB, free: 6.668 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006024/0.7574, allocations: 1.848 MB / 0.7323 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009349/0.7583, allocations: 203.7 kB / 0.7325 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0204/0.7788, allocations: 9.226 MB / 0.7415 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.7805, allocations: 203.1 kB / 0.7417 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.984e-05/0.7806, allocations: 51.98 kB / 0.7418 GB, free: 11 MB / 0.5417 GB Warning: Assuming fixed start value for the following 3 variables: order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 = 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 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.simpleLagLim.state) * 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.0007292/0.7813, allocations: 333.6 kB / 0.7421 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001912/0.7833, allocations: 0.6731 MB / 0.7428 GB, free: 9.969 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01404/0.7973, allocations: 5.014 MB / 0.7477 GB, free: 4.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.7974, allocations: 12 kB / 0.7477 GB, free: 4.918 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.7974, allocations: 11.94 kB / 0.7477 GB, free: 4.906 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.7974, allocations: 3.984 kB / 0.7477 GB, free: 4.902 MB / 0.5417 GB 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.8119, allocations: 6.055 MB / 0.7536 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/0.8119, allocations: 4 kB / 0.7536 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006845/0.8126, allocations: 107.8 kB / 0.7537 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006144/0.8188, allocations: 2.005 MB / 0.7557 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001815/0.819, allocations: 27.98 kB / 0.7557 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3027/1.122, allocations: 12.51 MB / 0.7679 GB, free: 143.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.122, allocations: 1.156 kB / 0.7679 GB, free: 143.4 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0178/1.14, allocations: 6.071 MB / 0.7738 GB, free: 143.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000579/1.14, allocations: 234.2 kB / 0.7741 GB, free: 143 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/1.14, allocations: 22.75 kB / 0.7741 GB, free: 143 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/1.142, allocations: 147.9 kB / 0.7742 GB, free: 143 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005547/1.142, allocations: 182 kB / 0.7744 GB, free: 143 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.527e-05/1.142, allocations: 40.2 kB / 0.7744 GB, free: 143 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001077/1.143, allocations: 0.7179 MB / 0.7751 GB, free: 142.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.8e-07/1.143, allocations: 0 / 0.7751 GB, free: 142.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001464/1.145, allocations: 457.2 kB / 0.7756 GB, free: 142.9 MB / 0.5573 GB 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 (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,(20,23.0%) 12} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01571/1.161, allocations: 6.883 MB / 0.7823 GB, free: 141.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005722/1.166, allocations: 2.542 MB / 0.7848 GB, free: 141.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.166, allocations: 0 / 0.7848 GB, free: 141.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003905/1.17, allocations: 1.608 MB / 0.7863 GB, free: 141.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/1.172, allocations: 0.5788 MB / 0.7869 GB, free: 140.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005914/1.178, allocations: 10.06 MB / 0.7967 GB, free: 132.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005664/1.179, allocations: 1.18 MB / 0.7979 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003955/1.179, allocations: 103.3 kB / 0.798 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000536/1.18, allocations: 479.6 kB / 0.7984 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of SimCode: time 1.533e-06/1.18, allocations: 4 kB / 0.7984 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0605/1.24, allocations: 30.96 MB / 0.8287 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/1.24, allocations: 252.8 kB / 0.8289 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.268/4.508, allocations: 0 / 0.8289 GB, free: 129.8 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)