Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007908/0.000791, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.358/1.358, allocations: 223.3 MB / 239 MB, free: 5.434 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.001261/0.00126, allocations: 184.5 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5135/0.5135, allocations: 78.56 MB / 419.9 MB, free: 4.328 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005042/0.0005048, allocations: 11.94 kB / 499.8 MB, free: 6.34 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1604, allocations: 69.37 MB / 0.5558 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.3024/0.4628, allocations: 5.99 MB / 0.5617 GB, free: 37.4 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.4662, allocations: 1.904 MB / 0.5635 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003911/0.4666, allocations: 13.81 kB / 0.5635 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005451/0.4672, allocations: 172.2 kB / 0.5637 GB, free: 37.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001415/0.4686, allocations: 0.6553 MB / 0.5643 GB, free: 36.89 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.0009851/0.4696, allocations: 0.525 MB / 0.5649 GB, free: 36.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.4707, allocations: 1.411 MB / 0.5662 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003531/0.4711, allocations: 256.6 kB / 0.5665 GB, free: 36.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005097/0.4716, allocations: 0.5624 MB / 0.567 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006436/0.4722, allocations: 0.7221 MB / 0.5677 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.4724, allocations: 63.16 kB / 0.5678 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003367/0.4727, allocations: 179.2 kB / 0.568 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.4729, allocations: 250 kB / 0.5682 GB, free: 36.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000225/0.4731, allocations: 230.3 kB / 0.5684 GB, free: 35.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008831/0.474, allocations: 1.229 MB / 0.5696 GB, free: 35.78 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.474, allocations: 5.938 kB / 0.5696 GB, free: 35.78 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.474, allocations: 0 / 0.5696 GB, free: 35.78 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.4741, allocations: 1.875 kB / 0.5696 GB, free: 35.78 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.00654/0.4806, allocations: 2.51 MB / 0.5721 GB, free: 34.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.4807, allocations: 10.31 kB / 0.5721 GB, free: 34.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00433/0.485, allocations: 0.7799 MB / 0.5729 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.4862, allocations: 0.8463 MB / 0.5737 GB, free: 34.38 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002236/0.4865, allocations: 271.4 kB / 0.5739 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.4866, allocations: 81.53 kB / 0.574 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.4886, allocations: 1.138 MB / 0.5751 GB, free: 34.08 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.4886, allocations: 0 / 0.5751 GB, free: 34.08 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.577e-05/0.4887, allocations: 32.66 kB / 0.5752 GB, free: 34.05 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.4887, allocations: 18.06 kB / 0.5752 GB, free: 34.05 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.4905, allocations: 1.054 MB / 0.5762 GB, free: 33.71 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.005095/0.4956, allocations: 3.896 MB / 0.58 GB, free: 31.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006459/0.5021, allocations: 2.918 MB / 0.5829 GB, free: 30.61 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.5034, allocations: 0.7377 MB / 0.5836 GB, free: 30.33 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.5035, allocations: 21.25 kB / 0.5836 GB, free: 30.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00158/0.5051, allocations: 0.8716 MB / 0.5845 GB, free: 30.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.385e-06/0.5051, allocations: 0 / 0.5845 GB, free: 30.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02705/0.5322, allocations: 8.644 MB / 0.5929 GB, free: 28.44 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.5323, allocations: 118.1 kB / 0.593 GB, free: 28.31 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.5342, allocations: 1.07 MB / 0.5941 GB, free: 27.87 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.5344, allocations: 42.48 kB / 0.5941 GB, free: 27.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000361/0.5347, allocations: 497.5 kB / 0.5946 GB, free: 27.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003683/0.5351, allocations: 352.7 kB / 0.5949 GB, free: 27.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.986e-05/0.5352, allocations: 30.88 kB / 0.5949 GB, free: 27.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.5353, allocations: 366.4 kB / 0.5953 GB, free: 26.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/0.5369, allocations: 0.818 MB / 0.5961 GB, free: 26.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001743/0.5387, allocations: 0.9981 MB / 0.5971 GB, free: 26.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.5404, allocations: 0.9562 MB / 0.598 GB, free: 25.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.5405, allocations: 3.953 kB / 0.598 GB, free: 25.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01383/0.5543, allocations: 5.161 MB / 0.603 GB, free: 24.36 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.194e-05/0.5544, allocations: 59.11 kB / 0.6031 GB, free: 24.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.5544, allocations: 5.219 kB / 0.6031 GB, free: 24.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006285/0.5607, allocations: 1.9 MB / 0.6049 GB, free: 23.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.5622, allocations: 298.2 kB / 0.6052 GB, free: 23.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/0.5801, allocations: 9.017 MB / 0.614 GB, free: 18.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.5822, allocations: 235.2 kB / 0.6143 GB, free: 17.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.5824, allocations: 59.97 kB / 0.6143 GB, free: 17.83 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.0006786/0.583, allocations: 302.3 kB / 0.6146 GB, free: 17.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.5832, allocations: 131.8 kB / 0.6147 GB, free: 17.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01056/0.5938, allocations: 4.713 MB / 0.6193 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.5938, allocations: 12 kB / 0.6193 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.5938, allocations: 9.438 kB / 0.6194 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.5939, allocations: 9.297 kB / 0.6194 GB, free: 12.62 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.01221/0.6061, allocations: 6.282 MB / 0.6255 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.6061, allocations: 3.938 kB / 0.6255 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005036/0.6066, allocations: 103.8 kB / 0.6256 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004617/0.6112, allocations: 1.891 MB / 0.6275 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.036e-05/0.6113, allocations: 25.03 kB / 0.6275 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01677/0.6281, allocations: 9.64 MB / 0.6369 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.6281, allocations: 3.953 kB / 0.6369 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/0.6418, allocations: 5.639 MB / 0.6424 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006202/0.6424, allocations: 223.3 kB / 0.6426 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.6426, allocations: 29.83 kB / 0.6426 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.6436, allocations: 143.9 kB / 0.6428 GB, free: 4.207 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005999/0.6442, allocations: 196.6 kB / 0.643 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.618e-05/0.6443, allocations: 29.19 kB / 0.643 GB, free: 3.984 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001286/0.6456, allocations: 0.7157 MB / 0.6437 GB, free: 3.262 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6456, allocations: 0 / 0.6437 GB, free: 3.262 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00166/0.6473, allocations: 479.4 kB / 0.6441 GB, free: 2.793 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.0003126/0.6476, allocations: 135.7 kB / 0.6443 GB, free: 2.648 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006413/0.654, allocations: 2.779 MB / 0.647 GB, free: 15.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6541, allocations: 0 / 0.647 GB, free: 15.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004034/0.6581, allocations: 1.828 MB / 0.6488 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008765/0.659, allocations: 113.8 kB / 0.6489 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00399/0.663, allocations: 2.649 MB / 0.6515 GB, free: 11.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008549/0.6639, allocations: 1.12 MB / 0.6526 GB, free: 10.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004439/0.6643, allocations: 115.8 kB / 0.6527 GB, free: 9.961 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002464/0.6646, allocations: 79.41 kB / 0.6528 GB, free: 9.883 MB / 462.1 MB Notification: Performance of SimCode: time 1.322e-06/0.6646, allocations: 0 / 0.6528 GB, free: 9.883 MB / 462.1 MB Notification: Performance of Templates: time 0.03293/0.6975, allocations: 21.3 MB / 0.6736 GB, free: 4.773 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: