Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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/Modelica 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07879/0.07879, allocations: 12.6 MB / 28.9 MB, free: 0.6328 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 111.5 kB / 32.5 MB, free: 3.57 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.1 MB / 241.1 MB, free: 12.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 184.5 kB / 291.4 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4334/0.4334, allocations: 78.5 MB / 420 MB, free: 11.28 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00246/0.00246, allocations: 134 kB / 0.5565 GB, free: 28.56 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1254, allocations: 68.13 MB / 0.6231 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.007068/0.1325, allocations: 6.706 MB / 0.6296 GB, free: 8.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003866/0.1364, allocations: 1.959 MB / 0.6315 GB, free: 6.715 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.1376, allocations: 8 kB / 0.6315 GB, free: 6.707 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009447/0.1385, allocations: 241.9 kB / 0.6318 GB, free: 6.469 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.1409, allocations: 0.8217 MB / 0.6326 GB, free: 5.648 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.1423, allocations: 0.6309 MB / 0.6332 GB, free: 5.023 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001974/0.1443, allocations: 1.643 MB / 0.6348 GB, free: 3.375 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005429/0.1449, allocations: 326.4 kB / 0.6351 GB, free: 3.043 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001062/0.1459, allocations: 0.6769 MB / 0.6358 GB, free: 2.363 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.1472, allocations: 0.8517 MB / 0.6366 GB, free: 1.508 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003697/0.1475, allocations: 128 kB / 0.6367 GB, free: 1.383 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006923/0.1482, allocations: 275.8 kB / 0.637 GB, free: 1.113 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003898/0.1486, allocations: 326.7 kB / 0.6373 GB, free: 0.793 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008991/0.1496, allocations: 0.6991 MB / 0.638 GB, free: 92 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00178/0.1514, allocations: 1.709 MB / 0.6396 GB, free: 14.38 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1514, allocations: 0 / 0.6396 GB, free: 14.38 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1514, allocations: 0 / 0.6396 GB, free: 14.38 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.836e-05/0.1514, allocations: 0 / 0.6396 GB, free: 14.38 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008871/0.1603, allocations: 2.746 MB / 0.6423 GB, free: 11.56 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1604, allocations: 15.92 kB / 0.6423 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004762/0.1651, allocations: 0.7787 MB / 0.6431 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.1667, allocations: 0.9139 MB / 0.644 GB, free: 9.797 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002656/0.167, allocations: 256.2 kB / 0.6442 GB, free: 9.508 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.1672, allocations: 87.91 kB / 0.6443 GB, free: 9.422 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/0.1692, allocations: 1.094 MB / 0.6454 GB, free: 8.316 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.1692, allocations: 11.94 kB / 0.6454 GB, free: 8.305 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.454e-05/0.1693, allocations: 28 kB / 0.6454 GB, free: 8.277 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.1694, allocations: 20 kB / 0.6454 GB, free: 8.258 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.1713, allocations: 0.9994 MB / 0.6464 GB, free: 7.258 MB / 462.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.006342/0.1776, allocations: 3.871 MB / 0.6502 GB, free: 3.207 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007079/0.1847, allocations: 2.384 MB / 0.6525 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.186, allocations: 0.684 MB / 0.6532 GB, free: 44 kB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.019e-05/0.1861, allocations: 24.97 kB / 0.6532 GB, free: 20 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.1876, allocations: 0.8255 MB / 0.654 GB, free: 15.18 MB / 478.1 MB Notification: Performance of pre-optimization done (n=97): time 3.857e-06/0.1876, allocations: 4 kB / 0.654 GB, free: 15.17 MB / 478.1 MB Notification: Performance of matching and sorting (n=97): time 0.02759/0.2152, allocations: 7.225 MB / 0.6611 GB, free: 7.883 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/0.2153, allocations: 111.8 kB / 0.6612 GB, free: 7.75 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/0.2171, allocations: 1.119 MB / 0.6623 GB, free: 6.617 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000149/0.2173, allocations: 53.64 kB / 0.6623 GB, free: 6.559 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/0.2177, allocations: 0.4969 MB / 0.6628 GB, free: 6.055 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003743/0.218, allocations: 362.9 kB / 0.6632 GB, free: 5.695 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005579/0.2186, allocations: 295.4 kB / 0.6634 GB, free: 5.402 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.764e-05/0.2187, allocations: 301.1 kB / 0.6637 GB, free: 5.105 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.2202, allocations: 0.7809 MB / 0.6645 GB, free: 4.324 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.2219, allocations: 0.9538 MB / 0.6654 GB, free: 3.328 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02326/0.2451, allocations: 5.794 MB / 0.6711 GB, free: 13.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.2452, allocations: 3.938 kB / 0.6711 GB, free: 13.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01351/0.2587, allocations: 4.446 MB / 0.6754 GB, free: 8.973 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.575e-05/0.2588, allocations: 67.34 kB / 0.6755 GB, free: 8.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.2589, allocations: 0 / 0.6755 GB, free: 8.895 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005944/0.2648, allocations: 1.638 MB / 0.6771 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.2664, allocations: 291.6 kB / 0.6774 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01923/0.2857, allocations: 8.6 MB / 0.6858 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/0.2877, allocations: 198.7 kB / 0.686 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002537/0.288, allocations: 63.91 kB / 0.686 GB, free: 13.95 MB / 0.4981 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007614/0.2888, allocations: 308.4 kB / 0.6863 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003481/0.2891, allocations: 126.4 kB / 0.6864 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/0.3013, allocations: 3.9 MB / 0.6902 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.3013, allocations: 12 kB / 0.6903 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/0.3014, allocations: 4 kB / 0.6903 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.3014, allocations: 7.969 kB / 0.6903 GB, free: 9.555 MB / 0.4981 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.01395/0.3153, allocations: 5.51 MB / 0.6957 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3154, allocations: 4 kB / 0.6957 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000592/0.316, allocations: 107.8 kB / 0.6958 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005086/0.3211, allocations: 1.583 MB / 0.6973 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.3212, allocations: 23.98 kB / 0.6973 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01912/0.3403, allocations: 9.654 MB / 0.7068 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.3403, allocations: 0 / 0.7068 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/0.3544, allocations: 4.778 MB / 0.7114 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00044/0.3548, allocations: 231.2 kB / 0.7116 GB, free: 3.211 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003103/0.3551, allocations: 31.92 kB / 0.7117 GB, free: 3.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.3565, allocations: 107.9 kB / 0.7118 GB, free: 3.074 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005228/0.357, allocations: 192.7 kB / 0.712 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.3571, allocations: 24 kB / 0.712 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001241/0.3583, allocations: 0.7592 MB / 0.7127 GB, free: 2.094 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3584, allocations: 4 kB / 0.7127 GB, free: 2.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001521/0.3599, allocations: 479.5 kB / 0.7132 GB, free: 1.621 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002978/0.3602, allocations: 136.6 kB / 0.7133 GB, free: 1.477 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.28/0.6402, allocations: 2.599 MB / 0.7159 GB, free: 85.86 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.6402, allocations: 1.969 kB / 0.7159 GB, free: 85.86 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004292/0.6445, allocations: 1.577 MB / 0.7174 GB, free: 85.51 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.6457, allocations: 116.5 kB / 0.7175 GB, free: 85.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004504/0.6502, allocations: 2.394 MB / 0.7198 GB, free: 84.62 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007832/0.651, allocations: 1.13 MB / 0.7209 GB, free: 83.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003604/0.6514, allocations: 83.3 kB / 0.721 GB, free: 83.88 MB / 0.5137 GB Notification: Performance of SimCode: time 9.22e-07/0.6514, allocations: 0 / 0.721 GB, free: 83.88 MB / 0.5137 GB Notification: Performance of Templates: time 0.03664/0.6881, allocations: 24.17 MB / 0.7446 GB, free: 74.77 MB / 0.5137 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)