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.006442/0.006442, 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.389/1.389, allocations: 223.2 MB / 239 MB, free: 1.812 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.0009719/0.0009718, allocations: 96.67 kB / 290.2 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4759/0.4759, allocations: 78.52 MB / 419.8 MB, free: 44.04 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003824, allocations: 12 kB / 499.8 MB, free: 2.688 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4129, allocations: 69.34 MB / 0.5558 GB, free: 38.48 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.159/0.572, allocations: 99.9 MB / 0.6534 GB, free: 6.387 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.5723, allocations: 79.95 kB / 0.6534 GB, free: 6.309 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1691/0.7415, allocations: 66.85 MB / 0.7187 GB, free: 3.082 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.534e-06/0.7415, allocations: 0 / 0.7187 GB, free: 3.082 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001542/0.7417, allocations: 56 kB / 0.7188 GB, free: 3.027 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.01387/0.7556, allocations: 4.598 MB / 0.7233 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.7556, allocations: 12.03 kB / 0.7233 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000949/0.7566, allocations: 299.1 kB / 0.7236 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01026/0.7669, allocations: 1.607 MB / 0.7251 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005032/0.7719, allocations: 1.697 MB / 0.7268 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006787/0.7726, allocations: 0.6906 MB / 0.7275 GB, free: 9.855 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005671/0.7732, allocations: 207.8 kB / 0.7277 GB, free: 9.652 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006905/0.7801, allocations: 3.22 MB / 0.7308 GB, free: 6.348 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.7802, allocations: 4 kB / 0.7308 GB, free: 6.344 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002574/0.7805, allocations: 84 kB / 0.7309 GB, free: 6.262 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.253e-05/0.7805, allocations: 48 kB / 0.7309 GB, free: 6.215 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006266/0.7868, allocations: 3.022 MB / 0.7339 GB, free: 3.176 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.01953/0.8063, allocations: 9.985 MB / 0.7436 GB, free: 8.746 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01143/0.8178, allocations: 4.754 MB / 0.7483 GB, free: 3.844 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005495/0.8184, allocations: 42.03 kB / 0.7483 GB, free: 3.805 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.438e-05/0.8185, allocations: 64.5 kB / 0.7484 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=242): time 4.709e-06/0.8185, allocations: 0 / 0.7484 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of matching and sorting (n=242): time 0.4234/1.242, allocations: 28.47 MB / 0.7762 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/1.242, allocations: 234.8 kB / 0.7764 GB, free: 118.9 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/1.245, allocations: 1.902 MB / 0.7783 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007584/1.246, allocations: 63.98 kB / 0.7783 GB, free: 118.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009316/1.247, allocations: 1.199 MB / 0.7795 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001025/1.248, allocations: 0.8323 MB / 0.7803 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/1.248, allocations: 45 kB / 0.7804 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001301/1.249, allocations: 392.1 kB / 0.7807 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00375/1.252, allocations: 1.876 MB / 0.7826 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003905/1.256, allocations: 2.179 MB / 0.7847 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003883/1.26, allocations: 2.094 MB / 0.7867 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/1.26, allocations: 3.75 kB / 0.7867 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.04153/1.302, allocations: 14.32 MB / 0.8007 GB, free: 116.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007247/1.302, allocations: 2.871 MB / 0.8035 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/1.302, allocations: 7.312 kB / 0.8035 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02058/1.323, allocations: 6.308 MB / 0.8097 GB, free: 112.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002268/1.325, allocations: 384.4 kB / 0.8101 GB, free: 112.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06222/1.388, allocations: 26.02 MB / 0.8355 GB, free: 108 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004317/1.392, allocations: 0.5162 MB / 0.836 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006928/1.393, allocations: 86.7 kB / 0.8361 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/1.393, allocations: 3.844 kB / 0.8361 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04085/1.434, allocations: 14 MB / 0.8497 GB, free: 105.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-05/1.434, allocations: 6.469 kB / 0.8497 GB, free: 105.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01803/1.452, allocations: 6.309 MB / 0.8559 GB, free: 102 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/1.454, allocations: 364.2 kB / 0.8563 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06029/1.514, allocations: 26.01 MB / 0.8817 GB, free: 79.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004937/1.519, allocations: 0.4927 MB / 0.8821 GB, free: 79.19 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/1.52, allocations: 79.42 kB / 0.8822 GB, free: 79.12 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.002618/1.523, allocations: 0.5903 MB / 0.8828 GB, free: 78.55 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/1.524, allocations: 294 kB / 0.8831 GB, free: 78.26 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0395/1.564, allocations: 14.51 MB / 0.8972 GB, free: 67.04 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.234e-05/1.564, allocations: 30.56 kB / 0.8973 GB, free: 67.01 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.745e-05/1.564, allocations: 16 kB / 0.8973 GB, free: 67 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-05/1.564, allocations: 15.77 kB / 0.8973 GB, free: 66.99 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.04674/1.611, allocations: 18.23 MB / 0.9151 GB, free: 51.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.801e-05/1.611, allocations: 0 / 0.9151 GB, free: 51.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/1.613, allocations: 279.6 kB / 0.9154 GB, free: 50.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01702/1.63, allocations: 6.043 MB / 0.9213 GB, free: 44.85 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007344/1.631, allocations: 47.98 kB / 0.9213 GB, free: 44.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05229/1.683, allocations: 22.66 MB / 0.9435 GB, free: 22 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/1.683, allocations: 0 / 0.9435 GB, free: 22 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04442/1.727, allocations: 17.08 MB / 0.9601 GB, free: 4.863 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/1.729, allocations: 424.8 kB / 0.9605 GB, free: 4.426 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00118/1.73, allocations: 46.56 kB / 0.9606 GB, free: 4.383 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003714/1.734, allocations: 391.7 kB / 0.961 GB, free: 4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002206/1.736, allocations: 0.5526 MB / 0.9615 GB, free: 3.449 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004748/1.736, allocations: 63.98 kB / 0.9616 GB, free: 3.387 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002777/1.739, allocations: 1.472 MB / 0.963 GB, free: 1.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.433e-06/1.739, allocations: 4 kB / 0.963 GB, free: 1.906 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007365/1.746, allocations: 1.757 MB / 0.9647 GB, free: 156 kB / 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 () * 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.05046/1.797, allocations: 17.86 MB / 0.9822 GB, free: 14.23 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03354/1.831, allocations: 11.93 MB / 0.9938 GB, free: 2.195 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.831, allocations: 0 / 0.9938 GB, free: 2.195 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.2948/2.125, allocations: 4.767 MB / 0.9985 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003521/2.129, allocations: 233.5 kB / 0.9987 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/2.145, allocations: 11.96 MB / 1.01 GB, free: 135.2 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001484/2.147, allocations: 1.89 MB / 1.012 GB, free: 134.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001532/2.148, allocations: 272.8 kB / 1.012 GB, free: 134.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/2.15, allocations: 1.175 MB / 1.014 GB, free: 134.4 MB / 0.5886 GB Notification: Performance of SimCode: time 1.673e-06/2.15, allocations: 0 / 1.014 GB, free: 134.4 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1525/2.302, allocations: 94.49 MB / 1.106 GB, free: 109.4 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/2.303, allocations: 214.5 kB / 1.106 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.57/7.872, allocations: 0 / 1.106 GB, free: 109.2 MB / 0.5886 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)