Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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 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_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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.001182/0.001182, allocations: 112.2 kB / 16.41 MB, free: 6.008 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.364/1.364, allocations: 222.9 MB / 240.1 MB, free: 4.566 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.001498/0.001498, allocations: 188.5 kB / 290.4 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5175/0.5175, allocations: 91.9 MB / 432.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 79.38 kB / 0.5734 GB, free: 33.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1527, allocations: 71.28 MB / 0.643 GB, free: 3.609 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.007063/0.1598, allocations: 6.581 MB / 0.6494 GB, free: 13 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004128/0.164, allocations: 1.958 MB / 0.6513 GB, free: 11.04 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006384/0.1647, allocations: 8 kB / 0.6514 GB, free: 11.03 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.1654, allocations: 238 kB / 0.6516 GB, free: 10.79 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.1674, allocations: 0.8117 MB / 0.6524 GB, free: 9.98 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001328/0.1687, allocations: 0.6289 MB / 0.653 GB, free: 9.355 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.1704, allocations: 1.592 MB / 0.6545 GB, free: 7.758 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004591/0.1709, allocations: 326.4 kB / 0.6549 GB, free: 7.43 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007827/0.1717, allocations: 0.6496 MB / 0.6555 GB, free: 6.777 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008551/0.1725, allocations: 0.8245 MB / 0.6563 GB, free: 5.949 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.1727, allocations: 120 kB / 0.6564 GB, free: 5.832 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005229/0.1732, allocations: 259.8 kB / 0.6567 GB, free: 5.578 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002972/0.1736, allocations: 330.6 kB / 0.657 GB, free: 5.254 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005682/0.1741, allocations: 0.6719 MB / 0.6576 GB, free: 4.578 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001598/0.1757, allocations: 1.658 MB / 0.6592 GB, free: 2.914 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.1758, allocations: 0 / 0.6592 GB, free: 2.914 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1758, allocations: 0 / 0.6592 GB, free: 2.914 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.819e-05/0.1758, allocations: 0 / 0.6592 GB, free: 2.914 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008659/0.1845, allocations: 2.692 MB / 0.6619 GB, free: 156 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.1845, allocations: 8.031 kB / 0.6619 GB, free: 148 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00489/0.1894, allocations: 0.7748 MB / 0.6626 GB, free: 15.37 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/0.191, allocations: 0.8786 MB / 0.6635 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002786/0.1913, allocations: 264.1 kB / 0.6637 GB, free: 14.14 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.1915, allocations: 87.91 kB / 0.6638 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002033/0.1935, allocations: 1.09 MB / 0.6649 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.1935, allocations: 0 / 0.6649 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.435e-05/0.1936, allocations: 32 kB / 0.6649 GB, free: 12.92 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.1937, allocations: 16 kB / 0.6649 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/0.1956, allocations: 0.9916 MB / 0.6659 GB, free: 11.91 MB / 478.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.006782/0.2024, allocations: 3.828 MB / 0.6697 GB, free: 7.898 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007432/0.2099, allocations: 2.365 MB / 0.672 GB, free: 5.438 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.2113, allocations: 0.6839 MB / 0.6726 GB, free: 4.75 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.412e-05/0.2114, allocations: 16.98 kB / 0.6726 GB, free: 4.734 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001537/0.213, allocations: 0.8137 MB / 0.6734 GB, free: 3.902 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.835e-06/0.213, allocations: 0 / 0.6734 GB, free: 3.902 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02877/0.2418, allocations: 7.081 MB / 0.6804 GB, free: 12.76 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/0.2419, allocations: 119.8 kB / 0.6805 GB, free: 12.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.2438, allocations: 1.083 MB / 0.6815 GB, free: 11.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002657/0.244, allocations: 45.7 kB / 0.6816 GB, free: 11.47 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.2445, allocations: 492.8 kB / 0.682 GB, free: 10.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004271/0.2449, allocations: 355.1 kB / 0.6824 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000512/0.2454, allocations: 283.4 kB / 0.6826 GB, free: 10.35 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.2455, allocations: 305.1 kB / 0.6829 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.2471, allocations: 0.7613 MB / 0.6837 GB, free: 9.285 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.2488, allocations: 0.9381 MB / 0.6846 GB, free: 8.309 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02335/0.2721, allocations: 5.583 MB / 0.6901 GB, free: 2.641 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.2722, allocations: 0 / 0.6901 GB, free: 2.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01346/0.2856, allocations: 4.332 MB / 0.6943 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-05/0.2858, allocations: 59.41 kB / 0.6943 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.2858, allocations: 8 kB / 0.6943 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005332/0.2911, allocations: 1.505 MB / 0.6958 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.2927, allocations: 295.6 kB / 0.6961 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0192/0.3119, allocations: 8.276 MB / 0.7042 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/0.314, allocations: 202.8 kB / 0.7044 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001984/0.3143, allocations: 55.98 kB / 0.7044 GB, free: 3.719 MB / 0.4981 GB 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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007421/0.315, allocations: 294.3 kB / 0.7047 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003318/0.3153, allocations: 134.3 kB / 0.7048 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/0.3283, allocations: 3.865 MB / 0.7086 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.16e-05/0.3283, allocations: 16 kB / 0.7086 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.561e-05/0.3284, allocations: 11.94 kB / 0.7086 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.957e-05/0.3284, allocations: 3.984 kB / 0.7086 GB, free: 15.36 MB / 0.5137 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.01583/0.3442, allocations: 5.467 MB / 0.714 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.3443, allocations: 0 / 0.714 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.345, allocations: 99.89 kB / 0.7141 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00558/0.3506, allocations: 1.594 MB / 0.7156 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002109/0.3509, allocations: 20 kB / 0.7156 GB, free: 8.062 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02062/0.3715, allocations: 9.636 MB / 0.7251 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3716, allocations: 0 / 0.7251 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/0.3863, allocations: 4.735 MB / 0.7297 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008249/0.3872, allocations: 219.3 kB / 0.7299 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000599/0.3878, allocations: 24 kB / 0.7299 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001687/0.3895, allocations: 107.9 kB / 0.73 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008491/0.3904, allocations: 196.8 kB / 0.7302 GB, free: 8.812 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001755/0.3906, allocations: 31.98 kB / 0.7302 GB, free: 8.781 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001629/0.3923, allocations: 0.7235 MB / 0.7309 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/0.3923, allocations: 4 kB / 0.7309 GB, free: 8.047 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002031/0.3943, allocations: 471.5 kB / 0.7314 GB, free: 7.586 MB / 0.5294 GB 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 (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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003932/0.3947, allocations: 140 kB / 0.7315 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006659/0.4014, allocations: 2.505 MB / 0.734 GB, free: 4.895 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4014, allocations: 4 kB / 0.734 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004398/0.4058, allocations: 1.575 MB / 0.7355 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.4071, allocations: 117.2 kB / 0.7356 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004967/0.4121, allocations: 2.292 MB / 0.7379 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009615/0.4131, allocations: 1.12 MB / 0.739 GB, free: 15.69 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.4135, allocations: 87.41 kB / 0.739 GB, free: 15.61 MB / 0.545 GB Notification: Performance of SimCode: time 2.745e-06/0.4135, allocations: 0 / 0.739 GB, free: 15.61 MB / 0.545 GB Notification: Performance of Templates: time 0.03414/0.4477, allocations: 23.5 MB / 0.762 GB, free: 8.082 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)