Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_dev_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.007199/0.007199, 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.335/1.335, allocations: 223.2 MB / 239 MB, free: 1.785 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.0008445/0.0008444, allocations: 96.06 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.477/0.477, allocations: 79.44 MB / 420.7 MB, free: 43.64 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004117/0.0004119, allocations: 19.98 kB / 0.4891 GB, free: 1.922 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4303/0.4308, allocations: 69.49 MB / 0.557 GB, free: 39 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1429/0.5737, allocations: 100.6 MB / 0.6552 GB, free: 4.984 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.5741, allocations: 83.94 kB / 0.6553 GB, free: 4.902 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1781/0.7523, allocations: 68.08 MB / 0.7218 GB, free: 464 kB / 0.5105 GB Notification: Performance of FrontEnd: time 1.833e-06/0.7523, allocations: 0 / 0.7218 GB, free: 464 kB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003223/0.7526, allocations: 56 kB / 0.7218 GB, free: 408 kB / 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.0152/0.7678, allocations: 4.594 MB / 0.7263 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.7679, allocations: 12.03 kB / 0.7263 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00112/0.769, allocations: 295.1 kB / 0.7266 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/0.7793, allocations: 1.615 MB / 0.7282 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004898/0.7843, allocations: 1.697 MB / 0.7299 GB, free: 8.023 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007259/0.785, allocations: 0.6905 MB / 0.7305 GB, free: 7.23 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008794/0.7859, allocations: 211.9 kB / 0.7307 GB, free: 7.023 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008226/0.7941, allocations: 3.224 MB / 0.7339 GB, free: 3.715 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.24e-05/0.7942, allocations: 0 / 0.7339 GB, free: 3.715 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004541/0.7947, allocations: 80 kB / 0.734 GB, free: 3.637 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.654e-05/0.7947, allocations: 48 kB / 0.734 GB, free: 3.59 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006663/0.8014, allocations: 3.026 MB / 0.737 GB, free: 0.5469 MB / 0.5261 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.02054/0.822, allocations: 10.01 MB / 0.7467 GB, free: 6.09 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01106/0.8331, allocations: 4.743 MB / 0.7514 GB, free: 1.199 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002901/0.8334, allocations: 38.05 kB / 0.7514 GB, free: 1.164 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/0.8334, allocations: 64.48 kB / 0.7515 GB, free: 1.094 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=242): time 5.701e-06/0.8335, allocations: 4 kB / 0.7515 GB, free: 1.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=242): time 0.4437/1.277, allocations: 28.47 MB / 0.7793 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.161e-05/1.277, allocations: 237.5 kB / 0.7795 GB, free: 119.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003245/1.281, allocations: 1.896 MB / 0.7814 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006764/1.281, allocations: 72.27 kB / 0.7814 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009805/1.282, allocations: 1.198 MB / 0.7826 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009969/1.283, allocations: 0.8324 MB / 0.7834 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/1.283, allocations: 44.56 kB / 0.7835 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001181/1.284, allocations: 392.2 kB / 0.7838 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003566/1.287, allocations: 1.866 MB / 0.7856 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003754/1.291, allocations: 2.18 MB / 0.7878 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003657/1.295, allocations: 2.095 MB / 0.7898 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/1.295, allocations: 2.625 kB / 0.7898 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.04165/1.336, allocations: 14.33 MB / 0.8038 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005939/1.337, allocations: 2.872 MB / 0.8066 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/1.337, allocations: 6.781 kB / 0.8066 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/1.358, allocations: 6.318 MB / 0.8128 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/1.36, allocations: 374.1 kB / 0.8132 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05668/1.416, allocations: 26.02 MB / 0.8386 GB, free: 107.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004237/1.421, allocations: 0.5182 MB / 0.8391 GB, free: 107.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000361/1.421, allocations: 78.64 kB / 0.8391 GB, free: 107.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/1.421, allocations: 11.84 kB / 0.8392 GB, free: 107.3 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03801/1.459, allocations: 14 MB / 0.8528 GB, free: 104 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.559e-05/1.459, allocations: 4 kB / 0.8528 GB, free: 104 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0178/1.477, allocations: 6.315 MB / 0.859 GB, free: 99.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/1.479, allocations: 358.8 kB / 0.8593 GB, free: 98.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05524/1.534, allocations: 26.02 MB / 0.8847 GB, free: 76.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004109/1.538, allocations: 498.9 kB / 0.8852 GB, free: 76.35 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004434/1.539, allocations: 91.55 kB / 0.8853 GB, free: 76.27 MB / 0.5573 GB Warning: Assuming fixed start value for the following 7 variables: order4_1.e1d:VARIABLE(start = order4_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4_1.e1q:VARIABLE(start = order4_1.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4_1.w:VARIABLE(start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(start = 1.0 fixed = true ) "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 () * Number of clocked 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.001669/1.541, allocations: 0.5932 MB / 0.8859 GB, free: 75.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009066/1.542, allocations: 288.4 kB / 0.8862 GB, free: 75.41 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03792/1.579, allocations: 14.51 MB / 0.9003 GB, free: 64.18 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.068e-05/1.58, allocations: 24 kB / 0.9004 GB, free: 64.16 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.638e-05/1.58, allocations: 20 kB / 0.9004 GB, free: 64.14 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.851e-05/1.58, allocations: 14.16 kB / 0.9004 GB, free: 64.14 MB / 0.5573 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.0432/1.623, allocations: 18.24 MB / 0.9182 GB, free: 47.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.085e-05/1.623, allocations: 8 kB / 0.9182 GB, free: 47.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/1.625, allocations: 279.6 kB / 0.9185 GB, free: 47.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01642/1.641, allocations: 6.037 MB / 0.9244 GB, free: 41.62 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007322/1.642, allocations: 51.98 kB / 0.9244 GB, free: 41.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04811/1.69, allocations: 22.67 MB / 0.9466 GB, free: 18.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.69, allocations: 8 kB / 0.9466 GB, free: 18.76 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04361/1.734, allocations: 17.08 MB / 0.9632 GB, free: 1.621 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/1.735, allocations: 416.9 kB / 0.9636 GB, free: 1.191 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006773/1.736, allocations: 44 kB / 0.9637 GB, free: 1.148 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/1.739, allocations: 399.7 kB / 0.9641 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001937/1.741, allocations: 0.5488 MB / 0.9646 GB, free: 216 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001914/1.741, allocations: 63.98 kB / 0.9647 GB, free: 152 kB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002656/1.744, allocations: 1.472 MB / 0.9661 GB, free: 14.67 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.11e-07/1.744, allocations: 0 / 0.9661 GB, free: 14.67 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006455/1.75, allocations: 1.758 MB / 0.9678 GB, free: 12.92 MB / 0.573 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 () * Number of clocked 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.04767/1.798, allocations: 17.86 MB / 0.9852 GB, free: 11 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.3169/2.115, allocations: 11.92 MB / 0.9969 GB, free: 143 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.115, allocations: 4.031 kB / 0.9969 GB, free: 143 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0159/2.131, allocations: 4.767 MB / 1.002 GB, free: 142.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/2.133, allocations: 241.2 kB / 1.002 GB, free: 142.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/2.148, allocations: 11.94 MB / 1.013 GB, free: 134.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/2.149, allocations: 1.892 MB / 1.015 GB, free: 133.8 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.00151/2.151, allocations: 273.5 kB / 1.016 GB, free: 133.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001725/2.153, allocations: 1.172 MB / 1.017 GB, free: 133.8 MB / 0.5886 GB Notification: Performance of SimCode: time 1.232e-06/2.153, allocations: 3.5 kB / 1.017 GB, free: 133.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1516/2.304, allocations: 94.5 MB / 1.109 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/2.304, allocations: 209.4 kB / 1.109 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.399/7.704, allocations: 0 / 1.109 GB, free: 106.5 MB / 0.5886 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRI.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRI.pipe 2>&1)