Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.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: translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008/0.008, allocations: 172.7 kB / 15.12 MB, free: 6.031 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.282/1.282, allocations: 223.2 MB / 239 MB, free: 1.77 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.0008624/0.0008623, allocations: 86.31 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4124/0.4124, allocations: 78.59 MB / 419.9 MB, free: 44.21 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003804/0.0003804, allocations: 19.98 kB / 499.8 MB, free: 2.934 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3472, allocations: 69.34 MB / 0.5558 GB, free: 38.75 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.009584/0.3568, allocations: 12.12 MB / 0.5676 GB, free: 32.95 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.007955/0.3648, allocations: 3.571 MB / 0.5711 GB, free: 30.38 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003218/0.368, allocations: 34.56 kB / 0.5711 GB, free: 30.37 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.3695, allocations: 392.5 kB / 0.5715 GB, free: 30.2 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004525/0.374, allocations: 1.347 MB / 0.5728 GB, free: 29.26 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003192/0.3772, allocations: 1.275 MB / 0.5741 GB, free: 28.61 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004496/0.3817, allocations: 2.374 MB / 0.5764 GB, free: 27.32 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008629/0.3826, allocations: 0.6869 MB / 0.577 GB, free: 26.99 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001696/0.3843, allocations: 1.321 MB / 0.5783 GB, free: 26.36 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.3858, allocations: 1.662 MB / 0.58 GB, free: 25.62 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002811/0.386, allocations: 138.8 kB / 0.5801 GB, free: 25.62 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007531/0.3868, allocations: 261.2 kB / 0.5803 GB, free: 25.59 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003809/0.3872, allocations: 0.5781 MB / 0.5809 GB, free: 25.25 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004296/0.3876, allocations: 0.5219 MB / 0.5814 GB, free: 24.93 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.3897, allocations: 2.819 MB / 0.5842 GB, free: 24.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.3897, allocations: 0 / 0.5842 GB, free: 24.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3897, allocations: 0 / 0.5842 GB, free: 24.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.021e-05/0.3898, allocations: 3 kB / 0.5842 GB, free: 24.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02014/0.41, allocations: 6.154 MB / 0.5902 GB, free: 21.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.41, allocations: 8.156 kB / 0.5902 GB, free: 21.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01436/0.4244, allocations: 2.295 MB / 0.5924 GB, free: 21.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004164/0.4286, allocations: 1.769 MB / 0.5942 GB, free: 20.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006239/0.4293, allocations: 0.7519 MB / 0.5949 GB, free: 19.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004455/0.4297, allocations: 223.7 kB / 0.5951 GB, free: 19.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006186/0.4359, allocations: 3.203 MB / 0.5982 GB, free: 18.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.42e-05/0.436, allocations: 1.25 kB / 0.5982 GB, free: 18.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/0.4362, allocations: 84.97 kB / 0.5983 GB, free: 18.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.082e-05/0.4363, allocations: 54.58 kB / 0.5984 GB, free: 18.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005995/0.4423, allocations: 2.97 MB / 0.6013 GB, free: 17.37 MB / 426.7 MB 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.02133/0.4636, allocations: 10.43 MB / 0.6114 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.4763, allocations: 4.863 MB / 0.6162 GB, free: 9.711 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004521/0.4768, allocations: 40.69 kB / 0.6162 GB, free: 9.703 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004661/0.4814, allocations: 2.422 MB / 0.6186 GB, free: 8.449 MB / 426.7 MB Notification: Performance of pre-optimization done (n=248): time 4.789e-06/0.4815, allocations: 0 / 0.6186 GB, free: 8.449 MB / 426.7 MB Notification: Performance of matching and sorting (n=248): time 0.126/0.6075, allocations: 33.53 MB / 0.6513 GB, free: 7.586 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.638e-05/0.6076, allocations: 180.2 kB / 0.6515 GB, free: 7.371 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003505/0.6112, allocations: 2.261 MB / 0.6537 GB, free: 5.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007416/0.6119, allocations: 73.7 kB / 0.6538 GB, free: 5.012 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008374/0.6128, allocations: 1.16 MB / 0.6549 GB, free: 3.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/0.6138, allocations: 0.8704 MB / 0.6558 GB, free: 2.957 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002287/0.614, allocations: 64 kB / 0.6558 GB, free: 2.895 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.6142, allocations: 432.8 kB / 0.6563 GB, free: 2.465 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004489/0.6187, allocations: 2.142 MB / 0.6583 GB, free: 328 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004776/0.6235, allocations: 2.495 MB / 0.6608 GB, free: 13.73 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004757/0.6283, allocations: 2.407 MB / 0.6631 GB, free: 11.28 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.6283, allocations: 4 kB / 0.6631 GB, free: 11.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04535/0.6736, allocations: 15.16 MB / 0.6779 GB, free: 12.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.883e-05/0.6738, allocations: 119.4 kB / 0.6781 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.6738, allocations: 4 kB / 0.6781 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02159/0.6954, allocations: 6.422 MB / 0.6843 GB, free: 5.477 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003289/0.6988, allocations: 0.5734 MB / 0.6849 GB, free: 4.902 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06962/0.7684, allocations: 26.47 MB / 0.7107 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004945/0.7734, allocations: 0.5947 MB / 0.7113 GB, free: 9.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006674/0.7741, allocations: 116 kB / 0.7114 GB, free: 9.566 MB / 0.5105 GB Warning: Assuming fixed start value for the following 7 variables: Exc2.firstOrder2.y:VARIABLE(flow=false start = Exc2.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real Exc1.firstOrder2.y:VARIABLE(flow=false start = Exc1.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real 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(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.w:VARIABLE(flow=false 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: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (327): * Single equations (assignments): 322 * 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 {65 26} Notification: Performance of prepare postOptimizeDAE: time 0.001769/0.7759, allocations: 0.5439 MB / 0.712 GB, free: 9.004 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008457/0.7767, allocations: 292.3 kB / 0.7122 GB, free: 8.715 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04582/0.8226, allocations: 14.73 MB / 0.7266 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-05/0.8226, allocations: 31.95 kB / 0.7267 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.741e-05/0.8227, allocations: 16 kB / 0.7267 GB, free: 9.891 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001041/0.8228, allocations: 11.95 kB / 0.7267 GB, free: 9.879 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 postOpt removeSimpleEquations (simulation): time 0.05035/0.8732, allocations: 18.43 MB / 0.7447 GB, free: 7.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.8732, allocations: 0 / 0.7447 GB, free: 7.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/0.8749, allocations: 251.6 kB / 0.7449 GB, free: 7.023 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01996/0.8948, allocations: 6.228 MB / 0.751 GB, free: 0.7812 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006521/0.8955, allocations: 51.98 kB / 0.751 GB, free: 0.7305 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2898/1.185, allocations: 26.87 MB / 0.7773 GB, free: 163.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.185, allocations: 3.875 kB / 0.7773 GB, free: 163.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04712/1.232, allocations: 17.33 MB / 0.7942 GB, free: 161.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/1.234, allocations: 414.3 kB / 0.7946 GB, free: 161.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005668/1.234, allocations: 47.5 kB / 0.7947 GB, free: 161.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003087/1.237, allocations: 411.9 kB / 0.795 GB, free: 161.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001842/1.239, allocations: 0.5835 MB / 0.7956 GB, free: 161.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/1.239, allocations: 67.2 kB / 0.7957 GB, free: 161.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002117/1.241, allocations: 1.48 MB / 0.7971 GB, free: 160.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.7e-07/1.241, allocations: 0 / 0.7971 GB, free: 160.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.003412/1.245, allocations: 1.179 MB / 0.7983 GB, free: 160.8 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.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * 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: 3 * 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: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003781/1.245, allocations: 170.7 kB / 0.7984 GB, free: 160.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01902/1.264, allocations: 7.498 MB / 0.8058 GB, free: 158.1 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/1.264, allocations: 0 / 0.8058 GB, free: 158.1 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01379/1.278, allocations: 5.087 MB / 0.8107 GB, free: 156.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/1.28, allocations: 224.1 kB / 0.8109 GB, free: 156.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008126/1.288, allocations: 6.478 MB / 0.8173 GB, free: 152.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/1.289, allocations: 1.869 MB / 0.8191 GB, free: 151.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0009622/1.29, allocations: 260 kB / 0.8193 GB, free: 151.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004902/1.291, allocations: 168.8 kB / 0.8195 GB, free: 151.4 MB / 0.5573 GB Notification: Performance of SimCode: time 6.62e-07/1.291, allocations: 0 / 0.8195 GB, free: 151.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.06848/1.359, allocations: 56.44 MB / 0.8746 GB, free: 99.31 MB / 0.5573 GB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)