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.001217/0.001217, allocations: 171.8 kB / 15.77 MB, free: 6.324 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.493/1.493, allocations: 223.3 MB / 239.8 MB, free: 8 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007878/0.0007878, allocations: 100.2 kB / 290.9 MB, free: 4.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4826/0.4826, allocations: 78.62 MB / 420.7 MB, free: 36.39 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003842/0.0003843, allocations: 8 kB / 0.4888 GB, free: 7.258 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1554, allocations: 69.36 MB / 0.5565 GB, free: 1.832 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.008666/0.1641, allocations: 6.001 MB / 0.5624 GB, free: 11.8 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.005426/0.1696, allocations: 1.901 MB / 0.5642 GB, free: 9.898 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009685/0.1706, allocations: 12 kB / 0.5643 GB, free: 9.887 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007826/0.1714, allocations: 174.7 kB / 0.5644 GB, free: 9.715 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002481/0.1739, allocations: 0.656 MB / 0.5651 GB, free: 9.059 MB / 442.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.001751/0.1757, allocations: 0.5291 MB / 0.5656 GB, free: 8.535 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002613/0.1783, allocations: 1.417 MB / 0.567 GB, free: 7.113 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007027/0.179, allocations: 257.8 kB / 0.5672 GB, free: 6.848 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001289/0.1803, allocations: 0.5561 MB / 0.5678 GB, free: 6.289 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.1818, allocations: 0.7272 MB / 0.5685 GB, free: 5.559 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002582/0.182, allocations: 60 kB / 0.5685 GB, free: 5.5 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006907/0.1828, allocations: 179.9 kB / 0.5687 GB, free: 5.324 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000352/0.1831, allocations: 250.8 kB / 0.5689 GB, free: 5.078 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004227/0.1836, allocations: 233 kB / 0.5692 GB, free: 4.844 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.1854, allocations: 1.223 MB / 0.5703 GB, free: 3.617 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1855, allocations: 0 / 0.5703 GB, free: 3.617 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1855, allocations: 4 kB / 0.5703 GB, free: 3.613 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.1855, allocations: 0 / 0.5703 GB, free: 3.613 MB / 442.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.01209/0.1976, allocations: 2.509 MB / 0.5728 GB, free: 1.035 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.1977, allocations: 12.03 kB / 0.5728 GB, free: 1.023 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0072/0.2049, allocations: 0.7788 MB / 0.5736 GB, free: 248 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2165/0.4214, allocations: 0.8427 MB / 0.5744 GB, free: 44.08 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003459/0.4218, allocations: 264.5 kB / 0.5746 GB, free: 43.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002799/0.4221, allocations: 85.88 kB / 0.5747 GB, free: 43.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.4245, allocations: 1.138 MB / 0.5758 GB, free: 43.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.4245, allocations: 3.844 kB / 0.5758 GB, free: 43.81 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.643e-05/0.4246, allocations: 34.48 kB / 0.5759 GB, free: 43.81 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.4247, allocations: 17.89 kB / 0.5759 GB, free: 43.81 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002059/0.4267, allocations: 1.041 MB / 0.5769 GB, free: 43.8 MB / 442.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.006701/0.4334, allocations: 3.91 MB / 0.5807 GB, free: 42.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008234/0.4417, allocations: 2.905 MB / 0.5836 GB, free: 42.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.4434, allocations: 0.7372 MB / 0.5843 GB, free: 42.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.4436, allocations: 21.53 kB / 0.5843 GB, free: 42.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001805/0.4454, allocations: 0.8775 MB / 0.5852 GB, free: 42.13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 3.907e-06/0.4454, allocations: 0 / 0.5852 GB, free: 42.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.03113/0.4766, allocations: 8.633 MB / 0.5936 GB, free: 41.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.4766, allocations: 117.6 kB / 0.5937 GB, free: 41.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001726/0.4784, allocations: 1.075 MB / 0.5948 GB, free: 41.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002146/0.4786, allocations: 45.38 kB / 0.5948 GB, free: 41.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.4789, allocations: 493 kB / 0.5953 GB, free: 40.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003336/0.4792, allocations: 358.1 kB / 0.5956 GB, free: 40.44 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.449e-05/0.4793, allocations: 30.44 kB / 0.5956 GB, free: 40.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.921e-05/0.4794, allocations: 363 kB / 0.596 GB, free: 40.09 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001492/0.4809, allocations: 0.8201 MB / 0.5968 GB, free: 39.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.4825, allocations: 1.002 MB / 0.5978 GB, free: 39.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.4841, allocations: 0.9459 MB / 0.5987 GB, free: 38.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4841, allocations: 3.5 kB / 0.5987 GB, free: 38.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01396/0.4981, allocations: 5.161 MB / 0.6037 GB, free: 37.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.953e-05/0.4982, allocations: 69.64 kB / 0.6038 GB, free: 37.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.4982, allocations: 3.219 kB / 0.6038 GB, free: 37.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006307/0.5045, allocations: 1.899 MB / 0.6057 GB, free: 37.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.506, allocations: 291.8 kB / 0.6059 GB, free: 37.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/0.5256, allocations: 9.017 MB / 0.6147 GB, free: 33.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002037/0.5277, allocations: 235.7 kB / 0.615 GB, free: 33.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001984/0.5279, allocations: 59.34 kB / 0.615 GB, free: 33.32 MB / 442.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.0005875/0.5285, allocations: 306.9 kB / 0.6153 GB, free: 33.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000225/0.5288, allocations: 126.2 kB / 0.6154 GB, free: 33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01474/0.5435, allocations: 4.716 MB / 0.62 GB, free: 31.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.21e-05/0.5436, allocations: 9.844 kB / 0.62 GB, free: 31.96 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/0.5436, allocations: 7.609 kB / 0.6201 GB, free: 31.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.289e-05/0.5437, allocations: 9.453 kB / 0.6201 GB, free: 31.96 MB / 442.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.018/0.5617, allocations: 6.292 MB / 0.6262 GB, free: 29.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/0.5617, allocations: 0.7031 kB / 0.6262 GB, free: 29.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006871/0.5624, allocations: 103.3 kB / 0.6263 GB, free: 29.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005851/0.5683, allocations: 1.897 MB / 0.6282 GB, free: 29.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/0.5685, allocations: 19.78 kB / 0.6282 GB, free: 29.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/0.5863, allocations: 9.654 MB / 0.6376 GB, free: 21.22 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5864, allocations: 0 / 0.6376 GB, free: 21.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/0.6006, allocations: 5.626 MB / 0.6431 GB, free: 15.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.601, allocations: 227.8 kB / 0.6433 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.6011, allocations: 20 kB / 0.6433 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.6023, allocations: 147.9 kB / 0.6435 GB, free: 15.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004733/0.6027, allocations: 204.6 kB / 0.6437 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.779e-05/0.6028, allocations: 20 kB / 0.6437 GB, free: 14.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000894/0.6037, allocations: 0.7235 MB / 0.6444 GB, free: 14.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6037, allocations: 0 / 0.6444 GB, free: 14.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001261/0.605, allocations: 482.6 kB / 0.6449 GB, free: 13.73 MB / 442.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.000246/0.6052, allocations: 130.2 kB / 0.645 GB, free: 13.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006137/0.6114, allocations: 2.791 MB / 0.6477 GB, free: 10.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.6114, allocations: 0 / 0.6477 GB, free: 10.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0046/0.6161, allocations: 1.821 MB / 0.6495 GB, free: 8.934 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.6173, allocations: 116.6 kB / 0.6496 GB, free: 8.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.621, allocations: 2.686 MB / 0.6522 GB, free: 6.152 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.6214, allocations: 1.128 MB / 0.6533 GB, free: 4.988 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003314/0.6218, allocations: 83.41 kB / 0.6534 GB, free: 4.906 MB / 442.7 MB Notification: Performance of SimCode: time 1.964e-06/0.6218, allocations: 0 / 0.6534 GB, free: 4.906 MB / 442.7 MB Notification: Performance of Templates: time 0.0311/0.6529, allocations: 23.41 MB / 0.6763 GB, free: 13.61 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)