Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI",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.0009432/0.0009432, allocations: 180.9 kB / 7.65 MB, free: 1.422 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.342/1.342, allocations: 221.5 MB / 229.6 MB, free: 7.586 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.0009668/0.0009668, allocations: 92.81 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4499/0.4499, allocations: 78.08 MB / 409.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.527e-05/1.529e-05, allocations: 3.938 kB / 485 MB, free: 12.19 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1319, allocations: 69.36 MB / 0.5414 GB, free: 6.762 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.39/0.522, allocations: 99.16 MB / 0.6382 GB, free: 260 kB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.5222, allocations: 75.97 kB / 0.6383 GB, free: 184 kB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1709/0.6932, allocations: 65.79 MB / 0.7025 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6932, allocations: 0 / 0.7025 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002017/0.6935, allocations: 55.94 kB / 0.7026 GB, free: 14.21 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.01252/0.706, allocations: 3.995 MB / 0.7065 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.706, allocations: 9.062 kB / 0.7065 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01069/0.7167, allocations: 1.604 MB / 0.7081 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004361/0.7211, allocations: 1.635 MB / 0.7097 GB, free: 6.82 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007112/0.7219, allocations: 0.6124 MB / 0.7103 GB, free: 6.105 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007063/0.7226, allocations: 127.9 kB / 0.7104 GB, free: 5.98 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004802/0.7274, allocations: 2.215 MB / 0.7126 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004564/0.732, allocations: 2.279 MB / 0.7148 GB, free: 1.402 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.337e-05/0.7321, allocations: 0 / 0.7148 GB, free: 1.402 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002222/0.7323, allocations: 4 kB / 0.7148 GB, free: 1.398 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/0.7324, allocations: 48 kB / 0.7148 GB, free: 1.352 MB / 0.5105 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.02062/0.753, allocations: 9.666 MB / 0.7243 GB, free: 7.262 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009539/0.7625, allocations: 3.94 MB / 0.7281 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002467/0.765, allocations: 1.46 MB / 0.7295 GB, free: 1.715 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003291/0.7654, allocations: 50.03 kB / 0.7296 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/0.7654, allocations: 64.45 kB / 0.7297 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=242): time 4.258e-06/0.7655, allocations: 0 / 0.7297 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of matching and sorting (n=242): time 0.03834/0.8038, allocations: 12.06 MB / 0.7414 GB, free: 5.504 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.8039, allocations: 235.6 kB / 0.7417 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002768/0.8067, allocations: 1.688 MB / 0.7433 GB, free: 3.531 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005901/0.8073, allocations: 25.7 kB / 0.7433 GB, free: 3.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00095/0.8083, allocations: 1.207 MB / 0.7445 GB, free: 2.281 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001096/0.8094, allocations: 0.8081 MB / 0.7453 GB, free: 1.461 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.8096, allocations: 0 / 0.7453 GB, free: 1.461 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001888/0.8098, allocations: 390.6 kB / 0.7457 GB, free: 1.074 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/0.8119, allocations: 1.172 MB / 0.7468 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002237/0.8142, allocations: 1.48 MB / 0.7483 GB, free: 14.32 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00219/0.8164, allocations: 1.306 MB / 0.7495 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.8164, allocations: 4 kB / 0.7495 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.03829/0.8547, allocations: 12.11 MB / 0.7614 GB, free: 0.8047 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.2751/1.13, allocations: 2.864 MB / 0.7642 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.273e-05/1.13, allocations: 10.73 kB / 0.7642 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01583/1.146, allocations: 4.847 MB / 0.7689 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/1.148, allocations: 377.9 kB / 0.7693 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04206/1.19, allocations: 17.17 MB / 0.786 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004318/1.194, allocations: 475.1 kB / 0.7865 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006827/1.195, allocations: 83.61 kB / 0.7866 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/1.195, allocations: 7.094 kB / 0.7866 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03799/1.233, allocations: 11.79 MB / 0.7981 GB, free: 108.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.872e-05/1.233, allocations: 7.5 kB / 0.7981 GB, free: 108.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01661/1.25, allocations: 4.852 MB / 0.8028 GB, free: 108.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002094/1.252, allocations: 366.8 kB / 0.8032 GB, free: 108.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03996/1.292, allocations: 17.16 MB / 0.8199 GB, free: 104.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004099/1.296, allocations: 461.1 kB / 0.8204 GB, free: 104 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007249/1.297, allocations: 79 kB / 0.8205 GB, free: 104 MB / 0.5573 GB Warning: Assuming fixed start value for the following 7 variables: order4_1.e1d:VARIABLE(start = order4_1.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4_1.e1q:VARIABLE(start = order4_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(start = order4_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 (208): * Single equations (assignments): 203 * 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.000875/1.298, allocations: 211.4 kB / 0.8207 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03504/1.333, allocations: 12.07 MB / 0.8324 GB, free: 101.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002045/1.335, allocations: 294.2 kB / 0.8327 GB, free: 101.4 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03481/1.37, allocations: 12.34 MB / 0.8448 GB, free: 98.95 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.65e-05/1.37, allocations: 26.84 kB / 0.8448 GB, free: 98.95 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-05/1.37, allocations: 19.09 kB / 0.8448 GB, free: 98.95 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.149e-05/1.37, allocations: 14.12 kB / 0.8448 GB, free: 98.94 MB / 0.5573 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.04063/1.411, allocations: 15.85 MB / 0.8603 GB, free: 93.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/1.411, allocations: 1.938 kB / 0.8603 GB, free: 93.38 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/1.412, allocations: 275.8 kB / 0.8606 GB, free: 93.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01369/1.426, allocations: 4.783 MB / 0.8652 GB, free: 89.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005831/1.427, allocations: 22.33 kB / 0.8653 GB, free: 89.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03061/1.457, allocations: 15.17 MB / 0.8801 GB, free: 75.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.457, allocations: 7.969 kB / 0.8801 GB, free: 75.91 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03736/1.495, allocations: 14.28 MB / 0.894 GB, free: 64.25 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009461/1.496, allocations: 418.4 kB / 0.8944 GB, free: 63.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007045/1.496, allocations: 4.562 kB / 0.8944 GB, free: 63.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00318/1.5, allocations: 353.7 kB / 0.8948 GB, free: 63.61 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001754/1.501, allocations: 0.547 MB / 0.8953 GB, free: 63.32 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/1.502, allocations: 62.95 kB / 0.8954 GB, free: 63.27 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001713/1.503, allocations: 1.259 MB / 0.8966 GB, free: 62.11 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.6e-07/1.503, allocations: 3.719 kB / 0.8966 GB, free: 62.11 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005632/1.509, allocations: 1.602 MB / 0.8982 GB, free: 60.58 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (163): * Single equations (assignments): 160 * 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 {(64,8.0%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03776/1.547, allocations: 15.02 MB / 0.9128 GB, free: 48.16 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.025/1.572, allocations: 9.712 MB / 0.9223 GB, free: 39.36 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.572, allocations: 0 / 0.9223 GB, free: 39.36 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01093/1.583, allocations: 3.972 MB / 0.9262 GB, free: 35.84 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/1.585, allocations: 191.1 kB / 0.9264 GB, free: 35.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008541/1.593, allocations: 4.45 MB / 0.9307 GB, free: 31.72 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/1.594, allocations: 1.897 MB / 0.9326 GB, free: 30.25 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001902/1.596, allocations: 455.6 kB / 0.933 GB, free: 29.96 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/1.597, allocations: 1.152 MB / 0.9341 GB, free: 28.91 MB / 0.5573 GB Notification: Performance of SimCode: time 6.92e-07/1.597, allocations: 0 / 0.9341 GB, free: 28.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4592/2.057, allocations: 93.25 MB / 1.025 GB, free: 127.1 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/2.057, allocations: 141.1 kB / 1.025 GB, free: 127 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.163/7.22, allocations: 0 / 1.025 GB, free: 127 MB / 0.573 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe 2>&1)