Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08029/0.08029, allocations: 12.6 MB / 28.9 MB, free: 0.7188 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.001103/0.001103, allocations: 111.5 kB / 32.5 MB, free: 3.66 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.38/1.38, allocations: 205.1 MB / 241.1 MB, free: 12.37 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.001415/0.001415, allocations: 192.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.4203/0.4203, allocations: 78.51 MB / 420 MB, free: 11.26 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.002591/0.002591, allocations: 148.3 kB / 0.5565 GB, free: 28.39 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1455, allocations: 68.13 MB / 0.6231 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.007739/0.1533, allocations: 6.601 MB / 0.6295 GB, free: 8.785 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004645/0.158, allocations: 1.932 MB / 0.6314 GB, free: 6.848 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.1593, allocations: 8 kB / 0.6314 GB, free: 6.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1604, allocations: 241.9 kB / 0.6316 GB, free: 6.602 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002976/0.1634, allocations: 0.8066 MB / 0.6324 GB, free: 5.797 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001891/0.1653, allocations: 0.631 MB / 0.633 GB, free: 5.172 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003141/0.1685, allocations: 1.585 MB / 0.6346 GB, free: 3.582 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007197/0.1692, allocations: 326.4 kB / 0.6349 GB, free: 3.25 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.1706, allocations: 0.6574 MB / 0.6355 GB, free: 2.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001469/0.1721, allocations: 0.8245 MB / 0.6363 GB, free: 1.762 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005123/0.1726, allocations: 123.9 kB / 0.6365 GB, free: 1.641 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009223/0.1736, allocations: 259.9 kB / 0.6367 GB, free: 1.387 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006071/0.1742, allocations: 326.6 kB / 0.637 GB, free: 1.066 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.1755, allocations: 0.6718 MB / 0.6377 GB, free: 400 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002574/0.1781, allocations: 1.662 MB / 0.6393 GB, free: 14.72 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1781, allocations: 0 / 0.6393 GB, free: 14.72 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1781, allocations: 0 / 0.6393 GB, free: 14.72 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.346e-05/0.1782, allocations: 0 / 0.6393 GB, free: 14.72 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.009787/0.188, allocations: 2.68 MB / 0.6419 GB, free: 11.98 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.188, allocations: 15.97 kB / 0.6419 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005134/0.1932, allocations: 0.771 MB / 0.6427 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.1952, allocations: 0.894 MB / 0.6436 GB, free: 10.24 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003346/0.1955, allocations: 260.2 kB / 0.6438 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002968/0.1958, allocations: 83.98 kB / 0.6439 GB, free: 9.863 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002438/0.1983, allocations: 1.09 MB / 0.645 GB, free: 8.762 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1983, allocations: 4 kB / 0.645 GB, free: 8.758 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.1984, allocations: 28 kB / 0.645 GB, free: 8.73 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.1985, allocations: 24 kB / 0.645 GB, free: 8.707 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/0.2005, allocations: 0.9877 MB / 0.646 GB, free: 7.719 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.006982/0.2075, allocations: 3.8 MB / 0.6497 GB, free: 3.738 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007362/0.2149, allocations: 2.373 MB / 0.652 GB, free: 1.273 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.2164, allocations: 0.6762 MB / 0.6527 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.2166, allocations: 12.98 kB / 0.6527 GB, free: 0.582 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001799/0.2184, allocations: 0.8216 MB / 0.6535 GB, free: 15.74 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 4.639e-06/0.2184, allocations: 0 / 0.6535 GB, free: 15.74 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02901/0.2474, allocations: 7.077 MB / 0.6604 GB, free: 8.602 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.2476, allocations: 123.8 kB / 0.6605 GB, free: 8.457 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.2496, allocations: 1.079 MB / 0.6616 GB, free: 7.363 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002815/0.2499, allocations: 45.7 kB / 0.6616 GB, free: 7.312 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000467/0.2504, allocations: 496.8 kB / 0.6621 GB, free: 6.82 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005806/0.251, allocations: 359 kB / 0.6624 GB, free: 6.465 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007615/0.2518, allocations: 283.4 kB / 0.6627 GB, free: 6.184 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2519, allocations: 305.1 kB / 0.663 GB, free: 5.883 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.2536, allocations: 0.7691 MB / 0.6637 GB, free: 5.113 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.2554, allocations: 0.9304 MB / 0.6646 GB, free: 4.141 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02406/0.2795, allocations: 5.579 MB / 0.6701 GB, free: 14.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/0.2795, allocations: 8 kB / 0.6701 GB, free: 14.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01406/0.2936, allocations: 4.343 MB / 0.6743 GB, free: 10.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.329e-05/0.2937, allocations: 63.41 kB / 0.6744 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.2937, allocations: 0 / 0.6744 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005572/0.2993, allocations: 1.508 MB / 0.6759 GB, free: 8.512 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.3009, allocations: 299.6 kB / 0.6762 GB, free: 8.219 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01986/0.3208, allocations: 8.261 MB / 0.6842 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/0.3228, allocations: 198.8 kB / 0.6844 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003104/0.3231, allocations: 59.97 kB / 0.6845 GB, free: 15.55 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.0008928/0.324, allocations: 304.3 kB / 0.6848 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003824/0.3244, allocations: 126.3 kB / 0.6849 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/0.3373, allocations: 3.873 MB / 0.6887 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-05/0.3374, allocations: 11.98 kB / 0.6887 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.693e-05/0.3374, allocations: 8 kB / 0.6887 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/0.3375, allocations: 7.922 kB / 0.6887 GB, free: 11.18 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.01554/0.353, allocations: 5.448 MB / 0.694 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.3531, allocations: 0 / 0.694 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.3537, allocations: 99.89 kB / 0.6941 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005707/0.3595, allocations: 1.606 MB / 0.6957 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002048/0.3597, allocations: 27.98 kB / 0.6957 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0209/0.3806, allocations: 9.603 MB / 0.7051 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3807, allocations: 3.938 kB / 0.7051 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01475/0.3954, allocations: 4.735 MB / 0.7097 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.396, allocations: 223.2 kB / 0.7099 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003991/0.3964, allocations: 24 kB / 0.7099 GB, free: 4.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.3978, allocations: 107.9 kB / 0.71 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006656/0.3985, allocations: 192.7 kB / 0.7102 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.3986, allocations: 31.98 kB / 0.7103 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001319/0.3999, allocations: 0.7313 MB / 0.711 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4, allocations: 0 / 0.711 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001728/0.4017, allocations: 467.5 kB / 0.7114 GB, free: 3.43 MB / 0.5137 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 {(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.0003687/0.4021, allocations: 139 kB / 0.7115 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006458/0.4085, allocations: 2.521 MB / 0.714 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4086, allocations: 0.75 kB / 0.714 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.321/0.7296, allocations: 1.598 MB / 0.7156 GB, free: 86.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.731, allocations: 112 kB / 0.7157 GB, free: 86.04 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004628/0.7356, allocations: 2.282 MB / 0.7179 GB, free: 85.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008814/0.7365, allocations: 1.124 MB / 0.719 GB, free: 84.47 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004164/0.737, allocations: 82.88 kB / 0.7191 GB, free: 84.46 MB / 0.5137 GB Notification: Performance of SimCode: time 7.51e-07/0.737, allocations: 0 / 0.7191 GB, free: 84.46 MB / 0.5137 GB Notification: Performance of Templates: time 0.04047/0.7775, allocations: 23.54 MB / 0.7421 GB, free: 76.05 MB / 0.5137 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)