Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0077/0.0077, allocations: 170.7 kB / 15.12 MB, free: 5.559 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.289/1.289, 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.0008621/0.0008621, allocations: 96.17 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.5273/0.5273, allocations: 78.59 MB / 419.9 MB, free: 44.2 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003658, allocations: 16 kB / 499.8 MB, free: 2.934 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3418, allocations: 69.35 MB / 0.5558 GB, free: 38.8 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005059/0.3469, allocations: 5.728 MB / 0.5614 GB, free: 37.75 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.003552/0.3505, allocations: 1.939 MB / 0.5633 GB, free: 36.37 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.3517, allocations: 15.03 kB / 0.5633 GB, free: 36.36 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000767/0.3525, allocations: 171.7 kB / 0.5634 GB, free: 36.29 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002349/0.3548, allocations: 0.7196 MB / 0.5641 GB, free: 35.81 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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.3561, allocations: 0.5178 MB / 0.5646 GB, free: 35.57 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.3577, allocations: 1.001 MB / 0.5656 GB, free: 35.02 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003722/0.358, allocations: 260.5 kB / 0.5659 GB, free: 34.91 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000632/0.3587, allocations: 0.5658 MB / 0.5664 GB, free: 34.65 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006777/0.3594, allocations: 0.7134 MB / 0.5671 GB, free: 34.35 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3595, allocations: 58.31 kB / 0.5672 GB, free: 34.35 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003862/0.3599, allocations: 171.8 kB / 0.5673 GB, free: 34.31 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.3601, allocations: 249.4 kB / 0.5676 GB, free: 34.18 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.3603, allocations: 228.7 kB / 0.5678 GB, free: 34.03 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008343/0.3611, allocations: 1.189 MB / 0.569 GB, free: 33.68 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.3611, allocations: 0 / 0.569 GB, free: 33.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3611, allocations: 2.656 kB / 0.569 GB, free: 33.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3611, allocations: 0 / 0.569 GB, free: 33.68 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007465/0.3686, allocations: 2.503 MB / 0.5714 GB, free: 32.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.3687, allocations: 12.12 kB / 0.5714 GB, free: 32.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004563/0.3732, allocations: 0.7875 MB / 0.5722 GB, free: 32.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.3746, allocations: 0.8364 MB / 0.573 GB, free: 31.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.3748, allocations: 278.8 kB / 0.5733 GB, free: 31.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.375, allocations: 79.84 kB / 0.5733 GB, free: 31.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.3769, allocations: 1.138 MB / 0.5745 GB, free: 31.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.3769, allocations: 0 / 0.5745 GB, free: 31.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.079e-05/0.377, allocations: 33.88 kB / 0.5745 GB, free: 31.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.377, allocations: 21.67 kB / 0.5745 GB, free: 31.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.3789, allocations: 1.051 MB / 0.5755 GB, free: 30.8 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.005554/0.3845, allocations: 4.104 MB / 0.5795 GB, free: 28.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00741/0.3919, allocations: 2.912 MB / 0.5824 GB, free: 27.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.286e-05/0.392, allocations: 17.52 kB / 0.5824 GB, free: 27.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00141/0.3934, allocations: 0.8763 MB / 0.5833 GB, free: 27.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.815e-06/0.3934, allocations: 3.938 kB / 0.5833 GB, free: 27.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02924/0.4227, allocations: 8.631 MB / 0.5917 GB, free: 25.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.4228, allocations: 118.2 kB / 0.5918 GB, free: 25.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.4243, allocations: 1.075 MB / 0.5928 GB, free: 24.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.4245, allocations: 45.83 kB / 0.5929 GB, free: 24.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000275/0.4248, allocations: 493.8 kB / 0.5934 GB, free: 24.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002918/0.4251, allocations: 353.6 kB / 0.5937 GB, free: 24.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.33e-05/0.4252, allocations: 30.88 kB / 0.5937 GB, free: 24.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.855e-05/0.4252, allocations: 367.3 kB / 0.5941 GB, free: 23.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.4268, allocations: 0.8141 MB / 0.5949 GB, free: 23.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001712/0.4285, allocations: 0.9919 MB / 0.5958 GB, free: 23.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.4302, allocations: 0.953 MB / 0.5968 GB, free: 22.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.4302, allocations: 9.922 kB / 0.5968 GB, free: 22.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01474/0.445, allocations: 5.16 MB / 0.6018 GB, free: 21.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.352e-05/0.445, allocations: 61.53 kB / 0.6019 GB, free: 21.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.4451, allocations: 3.156 kB / 0.6019 GB, free: 21.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006675/0.4517, allocations: 1.897 MB / 0.6037 GB, free: 21.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001487/0.4532, allocations: 298.3 kB / 0.604 GB, free: 21.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02058/0.4738, allocations: 9.451 MB / 0.6132 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.4757, allocations: 242.6 kB / 0.6135 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.4758, allocations: 59.97 kB / 0.6135 GB, free: 14.61 MB / 426.7 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.0004728/0.4763, allocations: 302 kB / 0.6138 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.4765, allocations: 130.4 kB / 0.614 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/0.4891, allocations: 4.701 MB / 0.6185 GB, free: 9.441 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.4891, allocations: 8 kB / 0.6185 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.495e-06/0.4891, allocations: 8 kB / 0.6186 GB, free: 9.426 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.4891, allocations: 7.938 kB / 0.6186 GB, free: 9.418 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 postOpt removeSimpleEquations (simulation): time 0.01391/0.503, allocations: 6.351 MB / 0.6248 GB, free: 2.941 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.503, allocations: 0 / 0.6248 GB, free: 2.941 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005266/0.5036, allocations: 95.91 kB / 0.6249 GB, free: 2.848 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00526/0.5088, allocations: 1.895 MB / 0.6267 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.629e-05/0.5089, allocations: 27.92 kB / 0.6267 GB, free: 0.918 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02058/0.5295, allocations: 10.09 MB / 0.6366 GB, free: 6.547 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5296, allocations: 3.953 kB / 0.6366 GB, free: 6.543 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/0.5451, allocations: 5.642 MB / 0.6421 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004401/0.5455, allocations: 231.2 kB / 0.6423 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.5457, allocations: 16 kB / 0.6423 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.5469, allocations: 147.8 kB / 0.6425 GB, free: 464 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004764/0.5474, allocations: 196.7 kB / 0.6427 GB, free: 268 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.661e-05/0.5475, allocations: 31.98 kB / 0.6427 GB, free: 236 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001039/0.5485, allocations: 0.7236 MB / 0.6434 GB, free: 15.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5485, allocations: 0 / 0.6434 GB, free: 15.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001296/0.5498, allocations: 475.4 kB / 0.6439 GB, free: 15.03 MB / 458.7 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.00024/0.5501, allocations: 131.8 kB / 0.644 GB, free: 14.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006409/0.5565, allocations: 2.78 MB / 0.6467 GB, free: 12.08 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5565, allocations: 0 / 0.6467 GB, free: 12.08 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004452/0.561, allocations: 1.827 MB / 0.6485 GB, free: 10.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006149/0.5616, allocations: 98.8 kB / 0.6486 GB, free: 10.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.5652, allocations: 2.672 MB / 0.6512 GB, free: 7.426 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.5658, allocations: 1.147 MB / 0.6523 GB, free: 6.246 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004241/0.5662, allocations: 124 kB / 0.6524 GB, free: 6.121 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.5665, allocations: 71.42 kB / 0.6525 GB, free: 6.051 MB / 458.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5665, allocations: 0 / 0.6525 GB, free: 6.051 MB / 458.7 MB Notification: Performance of Templates: time 0.03074/0.5972, allocations: 21.27 MB / 0.6733 GB, free: 0.8125 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)