Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.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/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/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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001165/0.001165, allocations: 175.1 kB / 12.73 MB, free: 2.59 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.304/1.304, allocations: 205.2 MB / 218.5 MB, free: 9.219 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.0008158/0.0008158, allocations: 74.67 kB / 266.6 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06091/0.06091, allocations: 12.19 MB / 326.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2785/0.2785, allocations: 78.02 MB / 455.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.85e-05/2.852e-05, allocations: 4 kB / 0.5213 GB, free: 24.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1166, allocations: 69.25 MB / 0.5889 GB, free: 2.938 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4005/0.5172, allocations: 100.6 MB / 0.6872 GB, free: 15.65 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001796/0.5174, allocations: 82.25 kB / 0.6873 GB, free: 15.61 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1627/0.6801, allocations: 64.72 MB / 0.7505 GB, free: 9.012 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6802, allocations: 0 / 0.7505 GB, free: 9.012 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001797/0.6804, allocations: 63.88 kB / 0.7506 GB, free: 8.949 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.01222/0.6926, allocations: 3.998 MB / 0.7545 GB, free: 5.188 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.6926, allocations: 11.98 kB / 0.7545 GB, free: 5.176 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007998/0.6935, allocations: 293.1 kB / 0.7548 GB, free: 5.016 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009687/0.7032, allocations: 1.605 MB / 0.7563 GB, free: 3.449 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004159/0.7074, allocations: 1.635 MB / 0.7579 GB, free: 1.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006674/0.7081, allocations: 0.6944 MB / 0.7586 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005625/0.7086, allocations: 203.9 kB / 0.7588 GB, free: 0.7539 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004662/0.7133, allocations: 2.553 MB / 0.7613 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.891e-05/0.7134, allocations: 4 kB / 0.7613 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002521/0.7136, allocations: 80 kB / 0.7614 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.609e-05/0.7137, allocations: 52 kB / 0.7614 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00423/0.7179, allocations: 2.32 MB / 0.7637 GB, free: 11.64 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.01814/0.7361, allocations: 9.992 MB / 0.7734 GB, free: 1.207 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008911/0.745, allocations: 4.017 MB / 0.7774 GB, free: 13.04 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002577/0.7476, allocations: 1.519 MB / 0.7788 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002864/0.7479, allocations: 37.97 kB / 0.7789 GB, free: 11.49 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.748, allocations: 68.55 kB / 0.7789 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=241): time 4.148e-06/0.748, allocations: 3.938 kB / 0.7789 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=241): time 0.03664/0.7846, allocations: 12.29 MB / 0.7909 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/0.7848, allocations: 235.6 kB / 0.7912 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/0.7884, allocations: 1.842 MB / 0.793 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006518/0.7891, allocations: 65.7 kB / 0.793 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008519/0.7899, allocations: 1.216 MB / 0.7942 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001015/0.7909, allocations: 0.8315 MB / 0.795 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.7911, allocations: 44 kB / 0.7951 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.7913, allocations: 398.5 kB / 0.7955 GB, free: 10.37 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002108/0.7934, allocations: 1.219 MB / 0.7966 GB, free: 9.148 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00229/0.7957, allocations: 1.535 MB / 0.7981 GB, free: 7.508 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002294/0.798, allocations: 1.439 MB / 0.7995 GB, free: 6.008 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.798, allocations: 4 kB / 0.7995 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.03687/0.8349, allocations: 12.42 MB / 0.8117 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009835/0.8359, allocations: 2.865 MB / 0.8145 GB, free: 6.402 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.836, allocations: 12 kB / 0.8145 GB, free: 6.391 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01618/0.8522, allocations: 5.11 MB / 0.8195 GB, free: 1.273 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/0.8543, allocations: 367.5 kB / 0.8198 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04113/0.8954, allocations: 17.51 MB / 0.8369 GB, free: 15.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004109/0.8996, allocations: 0.521 MB / 0.8374 GB, free: 14.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004444/0.9001, allocations: 87.97 kB / 0.8375 GB, free: 14.64 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.9001, allocations: 4 kB / 0.8375 GB, free: 14.64 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03561/0.9357, allocations: 12.15 MB / 0.8494 GB, free: 2.406 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.478e-05/0.9358, allocations: 4 kB / 0.8494 GB, free: 2.402 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01578/0.9516, allocations: 5.11 MB / 0.8544 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/0.9536, allocations: 363.5 kB / 0.8547 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3003/1.254, allocations: 17.5 MB / 0.8718 GB, free: 152.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003888/1.258, allocations: 0.491 MB / 0.8723 GB, free: 152.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004081/1.258, allocations: 84.66 kB / 0.8724 GB, free: 152.7 MB / 0.5886 GB Warning: Assuming fixed start value for the following 6 variables: order3_1.e1q:VARIABLE(start = order3_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order3_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3_1.delta:VARIABLE(start = order3_1.delta0 unit = "rad" ) "Rotor angle" type: Real order2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(start = order2.delta0 unit = "rad" ) "Rotor angle" type: Real order3_2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 4 * 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 {63 26} Notification: Performance of prepare postOptimizeDAE: time 0.0006154/1.259, allocations: 291.8 kB / 0.8727 GB, free: 152.6 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007076/1.26, allocations: 293.8 kB / 0.873 GB, free: 152.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03629/1.296, allocations: 12.62 MB / 0.8853 GB, free: 152.2 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.738e-05/1.296, allocations: 27.62 kB / 0.8853 GB, free: 152.2 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.31e-05/1.296, allocations: 23.44 kB / 0.8853 GB, free: 152.2 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.98e-05/1.296, allocations: 12.64 kB / 0.8853 GB, free: 152.2 MB / 0.5886 GB Warning: The model contains alias variables with conflicting start and/or 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.0417/1.338, allocations: 16.33 MB / 0.9013 GB, free: 151.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/1.338, allocations: 2.625 kB / 0.9013 GB, free: 151.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/1.34, allocations: 273.5 kB / 0.9015 GB, free: 151.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01361/1.353, allocations: 4.856 MB / 0.9063 GB, free: 151.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007595/1.354, allocations: 48.5 kB / 0.9063 GB, free: 151.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03155/1.386, allocations: 15.37 MB / 0.9213 GB, free: 147.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/1.386, allocations: 2.812 kB / 0.9213 GB, free: 147.9 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03793/1.424, allocations: 14.54 MB / 0.9355 GB, free: 144.2 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/1.425, allocations: 416.3 kB / 0.9359 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007998/1.426, allocations: 47.81 kB / 0.936 GB, free: 143.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003102/1.429, allocations: 396.8 kB / 0.9364 GB, free: 143.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002201/1.431, allocations: 0.5433 MB / 0.9369 GB, free: 143.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002663/1.431, allocations: 62.66 kB / 0.937 GB, free: 143.7 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002241/1.434, allocations: 1.409 MB / 0.9383 GB, free: 143.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.51e-07/1.434, allocations: 0 / 0.9383 GB, free: 143.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006956/1.441, allocations: 1.759 MB / 0.9401 GB, free: 142.4 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.firstOrder.y,Exc1.firstOrder2.y,Exc1.transferFunction.x_scaled[1],Exc1.transferFunction.x_scaled[2],Exc2.firstOrder.y,Exc2.firstOrder2.y,Exc2.transferFunction.x_scaled[1],Exc2.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 159 * 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: 1 {(65,7.8%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03914/1.48, allocations: 15.32 MB / 0.955 GB, free: 129.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0256/1.505, allocations: 9.998 MB / 0.9648 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.506, allocations: 0.5 kB / 0.9648 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01148/1.517, allocations: 4.076 MB / 0.9688 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/1.519, allocations: 230.9 kB / 0.969 GB, free: 117 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008842/1.528, allocations: 4.574 MB / 0.9735 GB, free: 112.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001091/1.529, allocations: 1.897 MB / 0.9753 GB, free: 111.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001764/1.531, allocations: 445.7 kB / 0.9757 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/1.532, allocations: 1.17 MB / 0.9769 GB, free: 110.1 MB / 0.5886 GB Notification: Performance of SimCode: time 1.142e-06/1.532, allocations: 0 / 0.9769 GB, free: 110.1 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1291/1.661, allocations: 99.75 MB / 1.074 GB, free: 17.87 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/1.662, allocations: 202.5 kB / 1.074 GB, free: 17.64 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.175/6.836, allocations: 0 / 1.074 GB, free: 17.64 MB / 0.5886 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe 2>&1)