Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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/Complex 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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 111 kB / 17.74 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 188.4 kB / 18.67 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1645/0.1645, allocations: 37.98 MB / 309.9 MB, free: 5.969 MB / 254.1 MB 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: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 71.03 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09132, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007463/0.09881, allocations: 5.383 MB / 493.2 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00659/0.1055, allocations: 4.207 MB / 497.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004983/0.106, allocations: 19.88 kB / 497.4 MB, free: 14.69 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.008854/0.1149, allocations: 4.835 MB / 0.4905 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.1159, allocations: 338.3 kB / 0.4908 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007047/0.1166, allocations: 251.5 kB / 0.491 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001991/0.1186, allocations: 1.563 MB / 0.4925 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006235/0.1193, allocations: 384.2 kB / 0.4929 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005683/0.1199, allocations: 378.6 kB / 0.4933 GB, free: 6.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006651/0.1205, allocations: 446.4 kB / 0.4937 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.1207, allocations: 48 kB / 0.4937 GB, free: 6.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003178/0.121, allocations: 123.8 kB / 0.4939 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002902/0.1213, allocations: 287.2 kB / 0.4941 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004219/0.1217, allocations: 318.4 kB / 0.4944 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008565/0.1226, allocations: 0.7474 MB / 0.4952 GB, free: 5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1226, allocations: 0 / 0.4952 GB, free: 5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1226, allocations: 3.938 kB / 0.4952 GB, free: 4.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.956e-05/0.1227, allocations: 0 / 0.4952 GB, free: 4.996 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001785/0.1245, allocations: 0.9134 MB / 0.4961 GB, free: 4.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1245, allocations: 11.89 kB / 0.4961 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004702/0.125, allocations: 92.05 kB / 0.4962 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.126, allocations: 0.5567 MB / 0.4967 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.377e-05/0.1261, allocations: 37 kB / 0.4967 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.1262, allocations: 51.89 kB / 0.4968 GB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009409/0.1271, allocations: 0.6453 MB / 0.4974 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.1272, allocations: 0 / 0.4974 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.859e-05/0.1272, allocations: 27.97 kB / 0.4974 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/0.1274, allocations: 44.97 kB / 0.4975 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007605/0.1281, allocations: 495.5 kB / 0.498 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003125/0.1313, allocations: 2.523 MB / 0.5004 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004598/0.1317, allocations: 315.6 kB / 0.5007 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.132, allocations: 178.5 kB / 0.5009 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.132, allocations: 4 kB / 0.5009 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1321, allocations: 42.56 kB / 0.5009 GB, free: 14.78 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.693e-06/0.1321, allocations: 0 / 0.5009 GB, free: 14.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002367/0.1344, allocations: 1.637 MB / 0.5025 GB, free: 13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.1345, allocations: 106.8 kB / 0.5026 GB, free: 12.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004584/0.135, allocations: 429.8 kB / 0.5031 GB, free: 12.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.135, allocations: 33.64 kB / 0.5031 GB, free: 12.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.1352, allocations: 307.7 kB / 0.5034 GB, free: 12.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.295e-05/0.1353, allocations: 126.2 kB / 0.5035 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.1354, allocations: 82.25 kB / 0.5036 GB, free: 11.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1356, allocations: 366.7 kB / 0.5039 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.1358, allocations: 165 kB / 0.5041 GB, free: 11.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.1361, allocations: 301.7 kB / 0.5044 GB, free: 11.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005688/0.1367, allocations: 487.7 kB / 0.5048 GB, free: 10.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1367, allocations: 8 kB / 0.5048 GB, free: 10.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001223/0.1379, allocations: 0.8033 MB / 0.5056 GB, free: 9.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.138, allocations: 8 kB / 0.5056 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.138, allocations: 4 kB / 0.5056 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005809/0.1386, allocations: 201.8 kB / 0.5058 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.1389, allocations: 79.88 kB / 0.5059 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/0.1431, allocations: 4.227 MB / 0.51 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.1434, allocations: 27.83 kB / 0.5101 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.1435, allocations: 24 kB / 0.5101 GB, free: 4.773 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002744/0.1438, allocations: 221.7 kB / 0.5103 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1439, allocations: 47.42 kB / 0.5103 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008632/0.1447, allocations: 0.641 MB / 0.511 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1448, allocations: 4 kB / 0.511 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1448, allocations: 96 / 0.511 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.1448, allocations: 7.984 kB / 0.511 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.1464, allocations: 1.187 MB / 0.5121 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1464, allocations: 0 / 0.5121 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004077/0.1468, allocations: 75.89 kB / 0.5122 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.147, allocations: 53.67 kB / 0.5123 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.312e-05/0.1471, allocations: 16.05 kB / 0.5123 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.1488, allocations: 2.827 MB / 0.515 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.1489, allocations: 4.031 kB / 0.515 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.1499, allocations: 0.9494 MB / 0.516 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000168/0.1501, allocations: 144.5 kB / 0.5161 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.009e-05/0.1502, allocations: 19.86 kB / 0.5161 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.1504, allocations: 8 kB / 0.5161 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.1505, allocations: 31.95 kB / 0.5162 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.1505, allocations: 12 kB / 0.5162 GB, free: 14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002837/0.1508, allocations: 291.1 kB / 0.5165 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1508, allocations: 0 / 0.5165 GB, free: 13.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005581/0.1514, allocations: 136 kB / 0.5166 GB, free: 13.58 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001234/0.1515, allocations: 115.1 kB / 0.5167 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.1527, allocations: 0.7473 MB / 0.5174 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.1528, allocations: 8.188 kB / 0.5174 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.1533, allocations: 417.7 kB / 0.5178 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007034/0.154, allocations: 114.1 kB / 0.5179 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.1561, allocations: 1.517 MB / 0.5194 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005077/0.1567, allocations: 0.9365 MB / 0.5203 GB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.1568, allocations: 43.36 kB / 0.5204 GB, free: 9.562 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1568, allocations: 4 kB / 0.5204 GB, free: 9.559 MB / 414.1 MB Notification: Performance of Templates: time 0.1945/0.3513, allocations: 11.4 MB / 0.5315 GB, free: 51.8 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)