Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008432/0.0008431, allocations: 92 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.3 MB / 239 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 176.5 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4548/0.4548, allocations: 78.55 MB / 419.9 MB, free: 4.316 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003713, allocations: 19.98 kB / 499.8 MB, free: 6.363 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1395, allocations: 69.36 MB / 0.5558 GB, free: 0.957 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2884/0.4279, allocations: 5.999 MB / 0.5617 GB, free: 37.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00516/0.4331, allocations: 1.905 MB / 0.5635 GB, free: 36.94 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008065/0.434, allocations: 10.97 kB / 0.5635 GB, free: 36.94 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007074/0.4347, allocations: 168.1 kB / 0.5637 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001979/0.4367, allocations: 0.6596 MB / 0.5643 GB, free: 36.69 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.438, allocations: 0.5237 MB / 0.5649 GB, free: 36.66 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001425/0.4394, allocations: 1.412 MB / 0.5662 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004739/0.4399, allocations: 261.8 kB / 0.5665 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006521/0.4405, allocations: 0.5556 MB / 0.567 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007478/0.4413, allocations: 0.724 MB / 0.5677 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.4414, allocations: 58.53 kB / 0.5678 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004526/0.4419, allocations: 195.4 kB / 0.568 GB, free: 35.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002483/0.4422, allocations: 247.4 kB / 0.5682 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002942/0.4425, allocations: 227.6 kB / 0.5684 GB, free: 35.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.4438, allocations: 1.232 MB / 0.5696 GB, free: 35.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.4438, allocations: 3.375 kB / 0.5696 GB, free: 35.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4438, allocations: 2.906 kB / 0.5696 GB, free: 35.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.4438, allocations: 0.6562 kB / 0.5696 GB, free: 35.57 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007166/0.451, allocations: 2.501 MB / 0.5721 GB, free: 34.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.451, allocations: 8.844 kB / 0.5721 GB, free: 34.64 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004535/0.4556, allocations: 0.7806 MB / 0.5728 GB, free: 34.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.457, allocations: 0.847 MB / 0.5737 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/0.4573, allocations: 268.6 kB / 0.5739 GB, free: 33.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.4574, allocations: 89.36 kB / 0.574 GB, free: 33.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001989/0.4594, allocations: 1.138 MB / 0.5751 GB, free: 33.88 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.4595, allocations: 0 / 0.5751 GB, free: 33.88 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.759e-05/0.4596, allocations: 29.72 kB / 0.5752 GB, free: 33.86 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.4596, allocations: 20.16 kB / 0.5752 GB, free: 33.86 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00179/0.4614, allocations: 1.05 MB / 0.5762 GB, free: 33.52 MB / 430.1 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.005421/0.4668, allocations: 3.903 MB / 0.58 GB, free: 31.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006851/0.4737, allocations: 2.911 MB / 0.5829 GB, free: 30.42 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.4752, allocations: 0.7408 MB / 0.5836 GB, free: 30.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001327/0.4753, allocations: 19.23 kB / 0.5836 GB, free: 30.13 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001664/0.477, allocations: 0.8758 MB / 0.5845 GB, free: 29.81 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.725e-06/0.477, allocations: 0 / 0.5845 GB, free: 29.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02799/0.505, allocations: 8.633 MB / 0.5929 GB, free: 28.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.5051, allocations: 126.3 kB / 0.593 GB, free: 28.11 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001929/0.5071, allocations: 1.068 MB / 0.594 GB, free: 27.67 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.5073, allocations: 51.17 kB / 0.5941 GB, free: 27.62 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.5076, allocations: 498.5 kB / 0.5946 GB, free: 27.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003551/0.508, allocations: 351.9 kB / 0.5949 GB, free: 26.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.215e-05/0.5081, allocations: 30.88 kB / 0.5949 GB, free: 26.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.5082, allocations: 365.3 kB / 0.5953 GB, free: 26.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.5098, allocations: 0.818 MB / 0.5961 GB, free: 26.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001711/0.5115, allocations: 0.996 MB / 0.5971 GB, free: 25.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00172/0.5132, allocations: 0.9594 MB / 0.598 GB, free: 25.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.5133, allocations: 3.953 kB / 0.598 GB, free: 25.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01394/0.5272, allocations: 5.159 MB / 0.603 GB, free: 24.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.159e-05/0.5273, allocations: 58.7 kB / 0.6031 GB, free: 24.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.5273, allocations: 2.656 kB / 0.6031 GB, free: 24.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006424/0.5338, allocations: 1.906 MB / 0.605 GB, free: 23.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.5354, allocations: 296.8 kB / 0.6052 GB, free: 23.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01887/0.5542, allocations: 9.01 MB / 0.614 GB, free: 18.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.5561, allocations: 240.2 kB / 0.6143 GB, free: 17.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.5562, allocations: 56.91 kB / 0.6143 GB, free: 17.87 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * 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: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005494/0.5568, allocations: 308.2 kB / 0.6146 GB, free: 17.56 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.557, allocations: 126.4 kB / 0.6147 GB, free: 17.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/0.5679, allocations: 4.709 MB / 0.6193 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.568, allocations: 12 kB / 0.6193 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.568, allocations: 4 kB / 0.6193 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.268e-05/0.568, allocations: 11.94 kB / 0.6194 GB, free: 12.66 MB / 430.1 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 postOpt removeSimpleEquations (simulation): time 0.01289/0.5809, allocations: 6.29 MB / 0.6255 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.581, allocations: 0 / 0.6255 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005251/0.5815, allocations: 103.8 kB / 0.6256 GB, free: 6.164 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004885/0.5864, allocations: 1.89 MB / 0.6274 GB, free: 4.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/0.5865, allocations: 25.19 kB / 0.6275 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01851/0.6051, allocations: 9.638 MB / 0.6369 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.6051, allocations: 3.953 kB / 0.6369 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/0.6199, allocations: 5.643 MB / 0.6424 GB, free: 4.648 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005764/0.6205, allocations: 219.3 kB / 0.6426 GB, free: 4.414 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003464/0.6209, allocations: 27.95 kB / 0.6426 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.6222, allocations: 149.7 kB / 0.6428 GB, free: 4.242 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006126/0.6228, allocations: 189.7 kB / 0.643 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.6229, allocations: 37.06 kB / 0.643 GB, free: 4.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001333/0.6242, allocations: 0.7157 MB / 0.6437 GB, free: 3.297 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6243, allocations: 0 / 0.6437 GB, free: 3.297 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001899/0.6262, allocations: 483.4 kB / 0.6442 GB, free: 2.824 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000324/0.6265, allocations: 131.2 kB / 0.6443 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006531/0.633, allocations: 2.787 MB / 0.647 GB, free: 15.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.6331, allocations: 0 / 0.647 GB, free: 15.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004338/0.6374, allocations: 1.821 MB / 0.6488 GB, free: 14.01 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.6386, allocations: 117.1 kB / 0.6489 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00453/0.6431, allocations: 2.647 MB / 0.6515 GB, free: 11.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007728/0.6439, allocations: 1.12 MB / 0.6526 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004957/0.6444, allocations: 116.1 kB / 0.6527 GB, free: 10 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002749/0.6447, allocations: 79.41 kB / 0.6528 GB, free: 9.922 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6447, allocations: 1.688 kB / 0.6528 GB, free: 9.922 MB / 462.1 MB Notification: Performance of Templates: time 0.03593/0.6807, allocations: 21.3 MB / 0.6736 GB, free: 4.832 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) Environment - environmentSimulation: