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.001085/0.001085, allocations: 112.3 kB / 17.74 MB, free: 5.328 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.001065/0.001065, allocations: 183.1 kB / 18.67 MB, free: 4.406 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.33/1.33, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1793/0.1793, allocations: 37.98 MB / 309.9 MB, free: 5.953 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.001412/0.001412, allocations: 67.91 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 55.24 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007669/0.1195, allocations: 5.383 MB / 493.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006922/0.1265, allocations: 4.203 MB / 497.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005841/0.1271, allocations: 15.94 kB / 497.4 MB, free: 14.68 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.0187/0.1458, allocations: 4.835 MB / 0.4905 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.147, allocations: 338.3 kB / 0.4908 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007773/0.1478, allocations: 247.5 kB / 0.491 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002575/0.1504, allocations: 1.567 MB / 0.4925 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000709/0.1511, allocations: 384.2 kB / 0.4929 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006848/0.1518, allocations: 378.5 kB / 0.4933 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000834/0.1527, allocations: 446.4 kB / 0.4937 GB, free: 6.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000166/0.1529, allocations: 48 kB / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004328/0.1533, allocations: 127.8 kB / 0.4939 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003588/0.1537, allocations: 279.2 kB / 0.4941 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005163/0.1542, allocations: 314.4 kB / 0.4944 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001033/0.1553, allocations: 0.7552 MB / 0.4952 GB, free: 4.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1553, allocations: 0 / 0.4952 GB, free: 4.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1553, allocations: 0 / 0.4952 GB, free: 4.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.967e-05/0.1553, 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.002092/0.1574, allocations: 0.9094 MB / 0.4961 GB, free: 4.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.1575, allocations: 15.83 kB / 0.4961 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005238/0.158, allocations: 100 kB / 0.4962 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.1593, allocations: 0.5567 MB / 0.4967 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.1593, allocations: 29 kB / 0.4967 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.1594, allocations: 47.91 kB / 0.4968 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009726/0.1604, allocations: 0.6531 MB / 0.4974 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.1605, allocations: 7.938 kB / 0.4974 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/0.1605, allocations: 16 kB / 0.4974 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001331/0.1606, allocations: 44.97 kB / 0.4975 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007743/0.1614, allocations: 495.6 kB / 0.498 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003926/0.1654, allocations: 2.523 MB / 0.5004 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.1659, allocations: 311.7 kB / 0.5007 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.1662, allocations: 186.5 kB / 0.5009 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.442e-05/0.1663, allocations: 7.984 kB / 0.5009 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.1663, allocations: 38.5 kB / 0.5009 GB, free: 14.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.564e-06/0.1664, allocations: 0 / 0.5009 GB, free: 14.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003042/0.1694, allocations: 1.637 MB / 0.5025 GB, free: 13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.1695, allocations: 106.8 kB / 0.5026 GB, free: 12.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005131/0.17, allocations: 425.8 kB / 0.503 GB, free: 12.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.1701, allocations: 37.64 kB / 0.5031 GB, free: 12.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/0.1703, allocations: 307.7 kB / 0.5034 GB, free: 12.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.1704, allocations: 122.2 kB / 0.5035 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.1706, allocations: 90.23 kB / 0.5036 GB, free: 11.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1708, allocations: 362.7 kB / 0.5039 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.171, allocations: 165 kB / 0.5041 GB, free: 11.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003387/0.1714, allocations: 297.8 kB / 0.5044 GB, free: 11.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006407/0.172, allocations: 491.7 kB / 0.5048 GB, free: 10.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1721, allocations: 0 / 0.5048 GB, free: 10.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001364/0.1734, allocations: 0.8072 MB / 0.5056 GB, free: 9.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/0.1735, allocations: 8 kB / 0.5056 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.1735, allocations: 4 kB / 0.5056 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006562/0.1741, allocations: 205.5 kB / 0.5058 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003295/0.1745, allocations: 80.11 kB / 0.5059 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004957/0.1795, allocations: 4.23 MB / 0.51 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.1799, allocations: 27.83 kB / 0.5101 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.18, allocations: 27.98 kB / 0.5101 GB, free: 4.762 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.0004128/0.1804, allocations: 221.7 kB / 0.5103 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.1806, allocations: 47.44 kB / 0.5103 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009738/0.1816, allocations: 0.6371 MB / 0.511 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.1816, allocations: 4 kB / 0.511 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1816, allocations: 4 kB / 0.511 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1816, allocations: 3.984 kB / 0.511 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.1835, allocations: 1.183 MB / 0.5121 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.1835, allocations: 4 kB / 0.5121 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004468/0.184, allocations: 71.94 kB / 0.5122 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001802/0.1842, allocations: 53.62 kB / 0.5123 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.751e-05/0.1842, allocations: 11.98 kB / 0.5123 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.1864, allocations: 2.839 MB / 0.515 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.1864, allocations: 3.938 kB / 0.515 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.1876, allocations: 0.9533 MB / 0.516 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002498/0.1879, allocations: 144.5 kB / 0.5161 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.244e-05/0.188, allocations: 11.94 kB / 0.5161 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.1883, allocations: 15.98 kB / 0.5161 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.127e-05/0.1884, allocations: 27.97 kB / 0.5162 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.92e-05/0.1884, allocations: 12 kB / 0.5162 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003556/0.1887, allocations: 295.1 kB / 0.5165 GB, free: 13.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1888, allocations: 0 / 0.5165 GB, free: 13.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006495/0.1894, allocations: 128 kB / 0.5166 GB, free: 13.57 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.0001394/0.1896, allocations: 111.2 kB / 0.5167 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.191, allocations: 0.7474 MB / 0.5174 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.191, allocations: 4.062 kB / 0.5174 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005477/0.1915, allocations: 425.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.0007681/0.1923, allocations: 110.1 kB / 0.5179 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.1949, allocations: 1.521 MB / 0.5194 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.1955, allocations: 0.9443 MB / 0.5203 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.1957, allocations: 43.42 kB / 0.5204 GB, free: 9.555 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1957, allocations: 0 / 0.5204 GB, free: 9.555 MB / 414.1 MB Notification: Performance of Templates: time 0.2416/0.4373, allocations: 11.39 MB / 0.5315 GB, free: 51.78 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)