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.0008004/0.0008005, allocations: 177.4 kB / 15.45 MB, free: 6.23 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.168/1.168, allocations: 223.3 MB / 239.5 MB, free: 15.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007452/0.0007453, allocations: 90.28 kB / 290.6 MB, free: 4.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4184/0.4184, allocations: 78.62 MB / 420.4 MB, free: 36.46 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003327, allocations: 16 kB / 0.4888 GB, free: 6.844 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 69.36 MB / 0.5565 GB, free: 1.422 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005301/0.1104, allocations: 6.4 MB / 0.5628 GB, free: 10.99 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1134, allocations: 1.99 MB / 0.5647 GB, free: 8.992 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003276/0.1138, allocations: 12 kB / 0.5647 GB, free: 8.98 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004636/0.1142, allocations: 182.8 kB / 0.5649 GB, free: 8.801 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001449/0.1157, allocations: 0.7108 MB / 0.5656 GB, free: 8.09 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.001051/0.1167, allocations: 0.5916 MB / 0.5662 GB, free: 7.504 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.118, allocations: 1.495 MB / 0.5676 GB, free: 6.004 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004083/0.1184, allocations: 281.3 kB / 0.5679 GB, free: 5.719 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005577/0.119, allocations: 0.5714 MB / 0.5685 GB, free: 5.145 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000656/0.1197, allocations: 0.7464 MB / 0.5692 GB, free: 4.395 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.1198, allocations: 60 kB / 0.5692 GB, free: 4.336 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003517/0.1201, allocations: 187.9 kB / 0.5694 GB, free: 4.152 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.1204, allocations: 258.7 kB / 0.5697 GB, free: 3.898 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004423/0.1208, allocations: 0.6267 MB / 0.5703 GB, free: 3.262 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.122, allocations: 1.557 MB / 0.5718 GB, free: 1.699 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.122, allocations: 0 / 0.5718 GB, free: 1.699 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.122, allocations: 0 / 0.5718 GB, free: 1.699 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.122, allocations: 0 / 0.5718 GB, free: 1.699 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.1963/0.3184, allocations: 2.486 MB / 0.5742 GB, free: 44.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3184, allocations: 11.44 kB / 0.5742 GB, free: 44.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00463/0.323, allocations: 0.78 MB / 0.575 GB, free: 44.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.3242, allocations: 0.8802 MB / 0.5759 GB, free: 44.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.3244, allocations: 270.4 kB / 0.5761 GB, free: 43.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.3246, allocations: 90.52 kB / 0.5762 GB, free: 43.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001798/0.3264, allocations: 1.149 MB / 0.5773 GB, free: 43.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.3264, allocations: 2.406 kB / 0.5773 GB, free: 43.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.877e-05/0.3265, allocations: 33.91 kB / 0.5774 GB, free: 43.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.3265, allocations: 19.31 kB / 0.5774 GB, free: 43.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/0.3283, allocations: 1.047 MB / 0.5784 GB, free: 43.87 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.005187/0.3335, allocations: 3.903 MB / 0.5822 GB, free: 42.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007085/0.3406, allocations: 2.916 MB / 0.5851 GB, free: 42.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.3418, allocations: 0.7391 MB / 0.5858 GB, free: 42.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.3419, allocations: 21.77 kB / 0.5858 GB, free: 42.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.3434, allocations: 0.8776 MB / 0.5867 GB, free: 42.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.966e-06/0.3434, allocations: 0 / 0.5867 GB, free: 42.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.02599/0.3694, allocations: 8.673 MB / 0.5951 GB, free: 41.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.3694, allocations: 118 kB / 0.5952 GB, free: 41.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.3706, allocations: 1.088 MB / 0.5963 GB, free: 40.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.973e-05/0.3707, allocations: 44.95 kB / 0.5964 GB, free: 40.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.371, allocations: 494 kB / 0.5968 GB, free: 40.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.3712, allocations: 359.7 kB / 0.5972 GB, free: 40.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.3713, allocations: 145.4 kB / 0.5973 GB, free: 39.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.31e-05/0.3714, allocations: 301.1 kB / 0.5976 GB, free: 39.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.3727, allocations: 0.8249 MB / 0.5984 GB, free: 39.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/0.3741, allocations: 0.998 MB / 0.5994 GB, free: 38.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01962/0.3938, allocations: 6.023 MB / 0.6053 GB, free: 37.17 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3938, allocations: 3.938 kB / 0.6053 GB, free: 37.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01213/0.4059, allocations: 5.161 MB / 0.6103 GB, free: 35.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.031e-05/0.406, allocations: 58.34 kB / 0.6104 GB, free: 35.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.406, allocations: 7.297 kB / 0.6104 GB, free: 35.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005008/0.411, allocations: 1.791 MB / 0.6121 GB, free: 35.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.4122, allocations: 297 kB / 0.6124 GB, free: 35.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01708/0.4293, allocations: 8.603 MB / 0.6208 GB, free: 31.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.431, allocations: 240.8 kB / 0.621 GB, free: 31.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.4311, allocations: 56.44 kB / 0.6211 GB, free: 31.73 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 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.0004808/0.4316, allocations: 304.8 kB / 0.6214 GB, free: 31.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.4318, allocations: 126.2 kB / 0.6215 GB, free: 31.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/0.4445, allocations: 4.72 MB / 0.6261 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.4446, allocations: 11.66 kB / 0.6261 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.4446, allocations: 10.33 kB / 0.6261 GB, free: 30.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.4446, allocations: 10 kB / 0.6261 GB, free: 30.37 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.01278/0.4574, allocations: 6.299 MB / 0.6323 GB, free: 26.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4574, allocations: 0 / 0.6323 GB, free: 26.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004731/0.4579, allocations: 100.8 kB / 0.6324 GB, free: 26.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004885/0.4628, allocations: 1.897 MB / 0.6342 GB, free: 24.19 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.121e-05/0.4629, allocations: 24 kB / 0.6343 GB, free: 24.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01592/0.4788, allocations: 9.663 MB / 0.6437 GB, free: 14.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4788, allocations: 12.48 kB / 0.6437 GB, free: 14.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/0.4914, allocations: 5.645 MB / 0.6492 GB, free: 8.559 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002754/0.4917, allocations: 223.3 kB / 0.6494 GB, free: 8.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.4918, allocations: 24 kB / 0.6494 GB, free: 8.297 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.4928, allocations: 143.9 kB / 0.6496 GB, free: 8.156 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005432/0.4934, allocations: 193.2 kB / 0.6498 GB, free: 7.969 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.651e-05/0.4935, allocations: 24 kB / 0.6498 GB, free: 7.945 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008005/0.4943, allocations: 0.7313 MB / 0.6505 GB, free: 7.207 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4943, allocations: 0 / 0.6505 GB, free: 7.207 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001091/0.4954, allocations: 480.4 kB / 0.651 GB, free: 6.738 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 (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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001972/0.4956, allocations: 129.9 kB / 0.6511 GB, free: 6.605 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005112/0.5007, allocations: 2.788 MB / 0.6538 GB, free: 3.793 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5007, allocations: 0 / 0.6538 GB, free: 3.793 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003584/0.5043, allocations: 1.819 MB / 0.6556 GB, free: 1.934 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007195/0.505, allocations: 112.5 kB / 0.6557 GB, free: 1.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.508, allocations: 2.783 MB / 0.6584 GB, free: 15.06 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005299/0.5086, allocations: 1.124 MB / 0.6595 GB, free: 13.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003798/0.509, allocations: 115.9 kB / 0.6596 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.5092, allocations: 79.42 kB / 0.6597 GB, free: 13.71 MB / 458.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5092, allocations: 0 / 0.6597 GB, free: 13.71 MB / 458.7 MB Notification: Performance of Templates: time 0.02816/0.5374, allocations: 20.97 MB / 0.6802 GB, free: 8.895 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)